Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[#63686] update health status report documentation (#18907)

Eric Schubert75ecd2064e0d
diff --git a/docs/release-notes/14/14-4-0/README.md b/docs/release-notes/14/14-4-0/README.md
index 598969a4f9f..85043a47b9d 100644
--- a/docs/release-notes/14/14-4-0/README.md
+++ b/docs/release-notes/14/14-4-0/README.md
@@ -76,7 +76,7 @@ Last month, we already released a connection validation feature for OneDrive/Sha
The validations include checking if the external storage server is reachable, verifying for SSL errors, ensuring the server is accessible, confirming that necessary apps are activated on Nextcloud and that their versions are compatible, and validating the app password.
-Read more about connection validation for Nextcloud in our [system admin guide](../../../system-admin-guide/files/external-file-storages/health-status/#connection-validation-for-nextcloud).
+Read more about connection validation for Nextcloud in our [system admin guide](../../../system-admin-guide/files/external-file-storages/health-status/#connection-validation).
### Project lists: Select/Exclude projects in project list explicitly via filter
diff --git a/docs/system-admin-guide/files/external-file-storages/health-status/README.md b/docs/system-admin-guide/files/external-file-storages/health-status/README.md
index c4309129dc0..3d57a6afeca 100644
--- a/docs/system-admin-guide/files/external-file-storages/health-status/README.md
+++ b/docs/system-admin-guide/files/external-file-storages/health-status/README.md
@@ -9,86 +9,109 @@ keywords: file storages, health, health status, error, troubleshooting, Nextclou
# Health status checks and troubleshooting
If a file storage is not working as expected, you can find additional information about possible errors in the details
-view of the file storage. You can access this view by clicking on the file storage's name in the list under *Administration* -> *Files* -> *External file
-storages*. In addition, administrator can manually trigger a connection validation.
+view of the file storage. You can access this view by clicking on the file storage's name in the list under
+*Administration* → *Files* → *External file storages*. There, administrators can manually trigger a connection
+validation and receive a health status report, or review any errors reported by background synchronization workers
+needed for file storages with automatically managed project folders.
## Connection validation
-### Connection validation for OneDrive/SharePoint
+Every file storage is able to run connection checks. This test is triggered manually by clicking on **Run checks now**
+in the sidebar on the right side of the file storage's details view. This check is available from the UI to edit the
+storage.
-Every file storage for OneDrive/SharePoint has the ability to run connection checks. This test is triggered manually by clicking on **Run checks now** in the sidebar on the right side of the file storage's details view. This check is available from the UI to edit the storage.
+![Check connection for a file storage in OpenProject administration](openproject_file_storages_onedrive_run_checks_button.png)
-![Recheck connection for OneDrive/SharePoint in OpenProject administration](openproject_file_storages_onedrive_run_checks_button.png)
+Once the check is finished, a full health report will be generated and a brief summary will be displayed. Click **Open
+full health report** to see the report in full detail and to download it.
-### Health report for OneDrive/SharePoint
+![Link to open full health report for a file storage in OpenProject administration](openproject_file_storages_onedrive_open_full_health_report.png)
-Once the check is finished, a full health report will be generated. Click **open full health report** to see the report in full detail and to download it.
-
-![Link to open full health report for OneDrive/SharePoint file storage in OpenProject administration](openproject_file_storages_onedrive_open_full_health_report.png)
-
-Full health status report will give an overview of all checks that were performed grouped into three categories:
-
-- Basic configuration
-- Authentication
-- Automatically managed project folder configuration (if activated for this file storage)
-
-In the top right corner you can **Re-run all checks** or **download the health (text format)** report by clicking respective buttons.
-
-![Health status report for OneDrive/SharePoint integration in OpenProject administration](openproject_file_storages_onedrive_open_full_health_report_download_button.png)
-
-### Error codes
-There are several possible errors that can occur during the connection test. The following table lists the error codes with a description of the possible reasons and suggested solutions.
-
-| Error code | Error description | Possible reasons | Next steps and solutions |
-| ---------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
-| WRN_NOT_CONFIGURED | The file storage is not fully configured. | Important data is missing, so that the file storage is labelled incomplete. | Check the input fields and fill in the missing data. |
-| ERR_TENANT_INVALID | The configured directory (tenant) id is invalid. | There might be a typo or the tenant name or ID has changed recently. | Go to the correct Microsoft Entra ID overview in the [Azure Portal](https://portal.azure.com/) and copy the correct tenant id to the input field. |
-| ERR_CLIENT_INVALID | The configured client credentials are invalid. | Either the client id or the client secret are invalid. The error descriptions should help you finding the culprit. | Go to the correct application overview in the [Azure Portal](https://portal.azure.com/). Copy the correct client ID to the input field, or check whether the client secret is still valid. Attention: secrets might have an expiration date. If a secret is expired, you will have to generate a new one. |
-| ERR_DRIVE_INVALID | The configured drive cannot be found. | The request for the drive ID failed without finding the drive ID. The drive might be deleted, or your application has no permissions to see it. | Consult the [drive guide](../../../integrations/one-drive/drive-guide/) and fetch the desired drive ID again, to fill out the input field. |
-| WRN_UNEXPECTED_CONTENT | The connection request was successful, but unexpected content was found in the drive. | This warning is only shown, if the file storage is configured to automatically managed project folder permissions. There was data found in the drive, that is not a project folder created by OpenProject. | Go to your drive and migrate or delete the data from the drive root, that was not created by OpenProject. Further information about the unexpected data is found in the server logs. A drive configured for usage with the *Automatically managed project folders* option has a disrupted inheritance chain. Any data in here can only be seen by site owner. It is discouraged to use this drive for other purposes than the OpenProject integration. |
-| ERR_UNKNOWN | An unknown error occurred. | There can be multiple reasons and the error source was not foreseen. | Errors of this kind are logged to the server logs. Look for a log entry starting with `Connection validation failed with unknown error:` |
-
-### Connection validation for Nextcloud
-
-Same as OneDrive/SharePoint, every file storage for Nextcloud has the ability to run a connection test. This test is triggered manually by clicking on **Run checks now** in the sidebar on the right side of the file storage's details view. This check is available from the UI to edit the storage.
-
-![Recheck connection for Nextcloud in OpenProject administration](openproject_file_storages_nextcloud_run_checks_link.png)
-
-### Health report for Nextcloud
-
-Once the check is finished, a full health report will be generated. Click **open full health report** to see the report in full detail and to download it.
-
-![Link to open full health report for Nexctloud file storage in OpenProject administration](openproject_file_storages_nextcloud_open_full_health_report_button.png)
-
-Full health status report will give an overview of all checks that were performed grouped into three categories:
+The full health status report will give an overview of all checks that were performed grouped into three categories:
- Basic configuration
- Authentication
- Automatically managed project folder configuration (if activated for this file storage)
-In the top right corner you can **Re-run all checks** or **download the health (text format)** report by clicking respective buttons.
+In the top right corner you can **Re-run all checks** or **Download** the health report in a text format by clicking the
+respective buttons.
+
+![Health status report for a file storage in OpenProject administration](openproject_file_storages_onedrive_open_full_health_report_download_button.png)
+
+> [!TIP]
+> If you’re experiencing issues with the file storage, please download the **health status report** and include it in
+> your support request. This will help us diagnose the problem more efficiently.
+
+### Error codes
+
+There are several possible errors that can occur during the connection test. While some errors can occur for all types
+of file storages, most errors are quite specific for the provider type. The following table lists the error codes
+that can happen on all files storages.
+
+| Error code | Error description | Possible reasons | Next steps and solutions |
+|--------------------|-------------------------------------------|-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|
+| ERR_NOT_CONFIGURED | The file storage is not fully configured. | Important data is missing, so that the file storage is labelled incomplete. | Check the input fields and fill in the missing data. |
+| ERR_UNKNOWN_ERROR | An unknown error occurred. | There can be multiple reasons and the error source was not foreseen. | Errors of this kind are logged to the server logs. Look for a log entry starting with `Connection validation failed with unknown error:` |
+
+### Error codes specific for OneDrive/SharePoint
+
+The following table lists the error codes of failures specific to OneDrive/SharePoint, with a description of the
+possible reasons and suggested solutions.
+
+| Error code | Error description | Possible reasons | Next steps and solutions |
+|----------------------------------------|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| ERR_CLIENT_ID_INVALID | The configured client id is invalid. | The configured client id is invalid and cannot be used to authenticate against the Microsoft login servers. | Go to the correct application overview in the [Azure Portal](https://portal.azure.com/). Copy the correct client ID to the input field of the file storage configuration form. |
+| ERR_CLIENT_SECRET_INVALID | The configured client secret is invalid. | The configured client secret is invalid and cannot be used to authenticate against the Microsoft login servers. | Go to the correct application overview in the [Azure Portal](https://portal.azure.com/). Check whether the client secret is still valid. Attention: secrets might have an expiration date. If a secret is expired, you will have to generate a new one. |
+| ERR_OD_DRIVE_ID_INVALID | The configured drive id has an invalid format. | There might be a typo in the drive id. | Consult the [drive guide](../../../integrations/one-drive/drive-guide/) and fetch the desired drive ID again, to fill out the input field. |
+| ERR_OD_DRIVE_ID_NOT_FOUND | The configured drive id was not found. | There might be a typo in the drive id, the drive might be deleted, or your application has no permissions to see it. | Consult the [drive guide](../../../integrations/one-drive/drive-guide/) and fetch the desired drive ID again, to fill out the input field. |
+| ERR_OD_TENANT_ID_WRONG | The configured directory (tenant) id is invalid. | There might be a typo or the tenant name or ID has changed recently. | Go to the correct application overview in the [Azure Portal](https://portal.azure.com/) and copy the correct tenant id to the input field. |
+| ERR_OD_OAUTH_REQUEST_NOT_FOUND | ... | ... | ... |
+| ERR_OD_OAUTH_REQUEST_UNAUTHORIZED | ... | ... | ... |
+| ERR_OD_CLIENT_WRITE_PERMISSION_MISSING | The application is missing write permissions. | The application might be missing the API permission `Files.ReadWrite.All`. | Go to the correct application api permissions in the [Azure Portal](https://portal.azure.com/) and set the GRAPH API permission `File.ReadWrite.All` on application level. Do not forget to submit the administrator consent. |
+| ERR_OD_CLIENT_CANT_DELETE_FOLDER | The application is missing permissions to delete. | ... | ... |
+| ERR_OD_TEST_FOLDER_EXISTS | The folder needed for testing already exists. | A folder is created and deleted while testing the setup for automatically managed project folders. The deletion of this folder might have failed in a previous run. | Check the error message for the exact name of the folder. Go to the website of the drive and delete that folder. |
+| WRN_OD_OAUTH_TOKEN_MISSING | The current user has no authentication token. | The current user probably never did a successful login from OpenProject to the file storage, or the token was deleted from the account details. | Visit any work package of a project, where the current file storage is used. Click on the **Login** button in the **Files** tab. |
+| WRN_OD_UNEXPECTED_CONTENT | The connection request was successful, but unexpected content was found in the drive. | This warning is only shown, if the file storage is configured to automatically managed project folder permissions. There was data found in the drive, that is not a project folder created by OpenProject. | Go to your drive and migrate or delete the data from the drive root, that was not created by OpenProject. Further information about the unexpected data is found in the server logs. A drive configured for usage with the *Automatically managed project folders* option has a disrupted inheritance chain. Any data in here can only be seen by site owner. It is discouraged to use this drive for other purposes than the OpenProject integration. |
+
+### Error codes specific for Nextcloud
+
+The following table lists the error codes of failures specific to Nextcloud, with a description of the possible reasons
+and suggested solutions.
+
+| Error code | Error description | Possible reasons | Next steps and solutions |
+|------------------------------------|----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
+| ERR_NC_HOST_NOT_FOUND | No Nextcloud server was found at the configured host URL. | There might be a typo or the URL has changed. | Check the configuration and enter a valid URL. |
+| ERR_NC_DEPENDENCY_MISSING | A required dependency is missing on the file storage. | Either the Integration OpenProject app or the Group Folders app is not enabled in Nextcloud. | Add the missing dependency to the Nextcloud server. |
+| ERR_NC_DEPENDENCY_VERSION_MISMATCH | A required dependency has an outdated version. | Either the Integration OpenProject app or the Group Folders app is outdated or was not updated to the officially minimal supported version. | Update your apps to the latest version. It might be necessary to update your Nextcloud server to the latest version in order to be able to install the latest app versions. |
+| ERR_NC_GROUP_FOLDER_NOT_FOUND | The group folder could not be found. | The group folder used by the Integration OpenProject app was not found. This folder is usually named `OpenProject` and is owned by the group `OpenProject`. | The group folder is used only by the automatically managed project folders mode. Try to disable this option in the Nextcloud administration for the Integration OpenProject app and reenable it afterwards. |
+| ERR_NC_OAUTH_REQUEST_NOT_FOUND | ... | ... | ... |
+| ERR_NC_OAUTH_REQUEST_UNAUTHORIZED | ... | ... | ... |
+| ERR_NC_USERLESS_ACCESS_DENIED | The userless request was unauthorized | The configured app password is invalid. | Generate a new app password in the Nextcloud administration section of the Integration OpenProject app and copy it over to the OpenProject file storage configuration form. |
+| WRN_NC_OAUTH_TOKEN_MISSING | The current user has no authentication token. | The current user probably never did a successful login from OpenProject to the file storage, or the token was deleted from the account details. | Visit any work package of a project, where the current file storage is used. Click on the **Login** button in the **Files** tab. |
+| WRN_NC_UNEXPECTED_CONTENT | The connection request was successful, but unexpected content was found in the group folder. | The group folder `OpenProject` might contain data, that was put there by a user, or there are remnants from projects that no longer have a valid connection in OpenProject. | Go to Nextcloud and migrate or delete the data in the OpenProject group folder, that was not created by OpenProject. Further information about the unexpected data is found in the server logs. |
-![Health status report for Nextcloud integration in OpenProject administration](openproject_file_storages_nextcloud_open_full_health_report_download_button.png)
-
-### Nextcloud integration error codes
+The officially minimal supported app versions are listed in
+the [system admin guide](../../../../system-admin-guide/integrations/nextcloud/#required-system-versions).
-There are several possible errors that can occur during the connection test. The following table lists the error codes
-with a description of the possible reasons and suggested solutions.
+### Error codes specific for file storages with SSO configuration
-| Error code | Error description | Possible reasons | Next steps and solutions |
-| ------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
-| ERR_HOST_NOT_FOUND | No Nextcloud server was found at the configured host URL. | There might be a typo or the URL has changed. | Please check the configuration. |
-| ERR_MISSING_DEPENDENCIES | A required dependency is missing on the file storage. | Either the Integration OpenProject app or the Group Folders app is not enabled in Nextcloud. | Please add the following dependency: %{dependency}. |
-| ERR_UNEXPECTED_VERSION | The Integration OpenProject app version or the Group Folders app version is not supported. | Either the Integration OpenProject app or the Group Folders app is outdated or was not updated to the officially minimal supported version. | Please update your apps to the latest version. It might be necessary to update your Nextcloud server to the latest version in order to be able to install the latest app versions. |
-| ERR_UNKNOWN | An unknown error occurred. | There can be multiple reasons and the error source was not foreseen. | Errors of this kind are logged to the server logs. Look for a log entry starting with `Connection validation failed with unknown error:` |
-| WRN_UNEXPECTED_CONTENT | The connection request was successful, but unexpected content was found in the drive. | This warning is only shown, if the file storage is configured to automatically managed project folder permissions. There was data found in the drive, that is not a project folder created by OpenProject. | Go to your storage and migrate or delete the data in the OpenProject folder, that was not created by OpenProject. Further information about the unexpected data is found in the server logs. |
+Some file storages can be configured to use SSO login methods. There are a few checks run specifically for this type
+of setup. The following table lists the error codes related to those checks.
-The officially minimal supported app versions are listed in
-the [system admin guide](../../../../system-admin-guide/integrations/nextcloud/#required-system-versions).
+| Error code | Error description | Possible reasons | Next steps and solutions |
+|-----------------------------------|------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|
+| ERR_OIDC_TOKEN_ACQUISITION_FAILED | No token could be acquired for accessing the file storage. | The OpenID Connect (OIDC) setup doesn't have the necessary audience, nor does it provide the possibility to exchange tokens. | ... |
+| ERR_OIDC_TOKEN_EXCHANGE_FAILED | The token exchange failed. | ... | ... |
+| ERR_OIDC_TOKEN_REFRESH_FAILED | The expired access token could not get refreshed. | ... | ... |
+| WRN_OIDC_NON_OIDC_USER | The user is not a OIDC user. | The current user is provisioned to OpenProject, but not by an OIDC identity provider. | Log in to an admin user with the correct OIDC identity provider, the same one used by the file storage, and rerun the check. |
+| WRN_OIDC_NON_PROVISIONED_USER | The user is not a provisioned user. | The current user is not provisioned by an OIDC identity provider. | Log in to an admin user with the correct OIDC identity provider, the same one used by the file storage, and rerun the check. |
+| WRN_OFFLINE_ACCESS_SCOPE_MISSING | The OIDC provider has no `offline_access` scope. | The OIDC provider was configured without `offline_access` scope. While this does not cause the integration to break, this scope ensures, that refresh tokens to not expire and OpenProject can maintain a connection. | Add the scope `offline_access` to the OIDC provider configuration. |
## Health checks for automatically managed project folders
-File storages with the *Automatically managed project folders* option will have reoccurring synchronization runs, that update the user permissions on the external system and report possible errors. An additional section is displayed for those file storages in the side bar.
+File storages with the *Automatically managed project folders* option will have reoccurring synchronization runs, that
+update the user permissions on the external system and report possible errors. An additional section is displayed for
+those file storages in the sidebar.
![Health check for automatically managed folders in file storage integrations in OpenProject](openproject_file_storages_health_message.png)
diff --git a/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_nextcloud_open_full_health_report_button.png b/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_nextcloud_open_full_health_report_button.png
deleted file mode 100644
index 1b53cf868de..00000000000
Binary files a/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_nextcloud_open_full_health_report_button.png and /dev/null differ
diff --git a/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_nextcloud_open_full_health_report_download_button.png b/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_nextcloud_open_full_health_report_download_button.png
deleted file mode 100644
index df8fd2dcef6..00000000000
Binary files a/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_nextcloud_open_full_health_report_download_button.png and /dev/null differ
diff --git a/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_nextcloud_run_checks_link.png b/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_nextcloud_run_checks_link.png
deleted file mode 100644
index 1beea0700c8..00000000000
Binary files a/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_nextcloud_run_checks_link.png and /dev/null differ
diff --git a/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_recheck_connection.png b/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_recheck_connection.png
deleted file mode 100644
index a7edc3dc818..00000000000
Binary files a/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_recheck_connection.png and /dev/null differ
diff --git a/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_recheck_connection_nextcloud.png b/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_recheck_connection_nextcloud.png
deleted file mode 100644
index af653a897ce..00000000000
Binary files a/docs/system-admin-guide/files/external-file-storages/health-status/openproject_file_storages_recheck_connection_nextcloud.png and /dev/null differ
diff --git a/modules/storages/app/common/storages/peripherals/connection_validators/nextcloud/authentication_validator.rb b/modules/storages/app/common/storages/peripherals/connection_validators/nextcloud/authentication_validator.rb
index 8c429f2a127..a78ff16f6b6 100644
--- a/modules/storages/app/common/storages/peripherals/connection_validators/nextcloud/authentication_validator.rb
+++ b/modules/storages/app/common/storages/peripherals/connection_validators/nextcloud/authentication_validator.rb
@@ -112,11 +112,11 @@ module Storages
error_code =
case result.failure
in { code: /token_exchange/ | :unable_to_exchange_token }
- :oidc_cant_exchange_token
+ :oidc_token_exchange_failed
in { code: /token_refresh/ }
- :oidc_cant_refresh_token
+ :oidc_token_refresh_failed
in { code: :no_token_for_audience }
- :oidc_cant_acquire_token
+ :oidc_token_acquisition_failed
else
:unknown_error
end
diff --git a/modules/storages/app/common/storages/peripherals/connection_validators/one_drive/ampf_configuration_validator.rb b/modules/storages/app/common/storages/peripherals/connection_validators/one_drive/ampf_configuration_validator.rb
index 3aba33debe4..5ae677a143c 100644
--- a/modules/storages/app/common/storages/peripherals/connection_validators/one_drive/ampf_configuration_validator.rb
+++ b/modules/storages/app/common/storages/peripherals/connection_validators/one_drive/ampf_configuration_validator.rb
@@ -79,7 +79,7 @@ module Storages
.call(storage: @storage, auth_strategy:, folder_name: TEST_FOLDER_NAME, parent_location: ParentFolder.root)
.on_success { pass_check(:client_folder_creation) }
.on_failure do
- code = it.result == :already_exists ? :od_existing_test_folder : :od_client_write_permission_missing
+ code = it.result == :already_exists ? :od_test_folder_exists : :od_client_write_permission_missing
fail_check(:client_folder_creation, code, context: { folder_name: TEST_FOLDER_NAME })
end
end
diff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.yml
index b7139549257..d202e96e2d9 100644
--- a/modules/storages/config/locales/en.yml
+++ b/modules/storages/config/locales/en.yml
@@ -294,18 +294,19 @@ en:
od_client_write_permission_missing: The client seems to have write permissions missing. Please check the setup documentation for your storage.
od_drive_id_invalid: The configured drive id seems invalid. Please check the configuration.
od_drive_id_not_found: The configured drive id could not be found. Please check the configuration.
- od_existing_test_folder: The folder %{folder_name} needed for testing already exists. Please delete it and try again.
od_oauth_request_not_found: OpenProject couldn't find the root folder in the drive using the current logged-in user. Please check the server logs for further information.
od_oauth_request_unauthorized: The current user isn't authorized to see the root folder of OneDrive/SharePoint or we couldn't acquire a token. Please check the server logs for further information.
od_oauth_token_missing: OpenProject cannot test the user level communication with OneDrive/SharePoint as the user did not yet link their Microsoft account.
od_tenant_id_wrong: The configured directory (tenant) id is invalid. Please check the configuration.
+ od_test_folder_exists: The folder %{folder_name} needed for testing already exists. Please delete it and try again.
od_unexpected_content: Unexpected content found in the drive.
offline_access_scope_missing: It is recommended to configure the OpenID Connect provider to request the offline_access scope. The integration may still work anyways, but make sure that refresh tokens do not expire.
- oidc_cant_acquire_token: Your OpenID Connect setup doesn't provide the necessary audience, nor provides token exchange capabilities. Please check out our documentation for more information.
- oidc_cant_exchange_token: There seems to be a problem with the Token Exchange setup on your OpenID Connect Provider. Please check its configuration and try again.
oidc_cant_refresh_token: There was an error while trying to check your access to the storage. Please check the server logs for further information.
oidc_non_oidc_user: The current user, while provisioned, wasn't provisioned by an OpenID Connect (OIDC) Identity Provider. Please re-run the check with an OIDC provisioned user.
oidc_non_provisioned_user: The current user isn't provided by an OpenID Connect Identity Provider. Please re-run the check with a provided user.
+ oidc_token_acquisition_failed: Your OpenID Connect setup doesn't provide the necessary audience, nor does it provide token exchange capabilities. Please check out our documentation for more information.
+ oidc_token_exchange_failed: There seems to be a problem with the Token Exchange setup on your OpenID Connect Provider. Please check its configuration and try again.
+ oidc_token_refresh_failed: There was an error while trying to check your access to the storage. Please check the server logs for further information.
unknown_error: The connection could not be validated. An unknown error occurred. Please check the server logs for further information.
label_error: Error
label_failed: Failed
diff --git a/modules/storages/spec/common/storages/peripherals/connection_validators/nextcloud/authentication_validator_spec.rb b/modules/storages/spec/common/storages/peripherals/connection_validators/nextcloud/authentication_validator_spec.rb
index 8e06bc355f9..b89415600cf 100644
--- a/modules/storages/spec/common/storages/peripherals/connection_validators/nextcloud/authentication_validator_spec.rb
+++ b/modules/storages/spec/common/storages/peripherals/connection_validators/nextcloud/authentication_validator_spec.rb
@@ -135,7 +135,7 @@ module Storages
result = validator.call
expect(result[:token_negotiable]).to be_failure
- expect(result[:token_negotiable].code).to eq(:oidc_cant_acquire_token)
+ expect(result[:token_negotiable].code).to eq(:oidc_token_acquisition_failed)
end
end
@@ -162,7 +162,7 @@ module Storages
result = validator.call
expect(result[:token_negotiable]).to be_failure
- expect(result[:token_negotiable].code).to eq(:oidc_cant_refresh_token)
+ expect(result[:token_negotiable].code).to eq(:oidc_token_refresh_failed)
end
it "fails when refresh fails" do
@@ -173,7 +173,7 @@ module Storages
result = validator.call
expect(result[:token_negotiable]).to be_failure
- expect(result[:token_negotiable].code).to eq(:oidc_cant_refresh_token)
+ expect(result[:token_negotiable].code).to eq(:oidc_token_refresh_failed)
end
context "when the server supports token exchange" do
@@ -199,7 +199,7 @@ module Storages
result = validator.call
expect(result[:token_negotiable]).to be_failure
- expect(result[:token_negotiable].code).to eq(:oidc_cant_exchange_token)
+ expect(result[:token_negotiable].code).to eq(:oidc_token_exchange_failed)
expect(exchange_request).to have_been_requested.once
end
@@ -212,7 +212,7 @@ module Storages
result = validator.call
expect(result[:token_negotiable]).to be_failure
- expect(result[:token_negotiable].code).to eq(:oidc_cant_exchange_token)
+ expect(result[:token_negotiable].code).to eq(:oidc_token_exchange_failed)
expect(exchange_request).to have_been_requested.once
end
end
diff --git a/modules/storages/spec/common/storages/peripherals/connection_validators/one_drive/ampf_configuration_validator_spec.rb b/modules/storages/spec/common/storages/peripherals/connection_validators/one_drive/ampf_configuration_validator_spec.rb
index 0774feb7814..737e0e2c38d 100644
--- a/modules/storages/spec/common/storages/peripherals/connection_validators/one_drive/ampf_configuration_validator_spec.rb
+++ b/modules/storages/spec/common/storages/peripherals/connection_validators/one_drive/ampf_configuration_validator_spec.rb
@@ -77,7 +77,7 @@ module Storages
result = validator.call
expect(result[:client_folder_creation]).to be_a_failure
- expect(result[:client_folder_creation].code).to eq(:od_existing_test_folder)
+ expect(result[:client_folder_creation].code).to eq(:od_test_folder_exists)
expect(result[:client_folder_creation].context[:folder_name]).to eq(folder_name)
ensure
StorageInteraction::OneDrive::DeleteFolderCommand.call(storage:, auth_strategy:, location: created_folder)