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

[chore] included PR suggestions

Eric Schubert229a1dceb0cb
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 2cf5e285693..8b4b1ae5065 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
@@ -77,16 +77,16 @@ possible reasons and suggested solutions.
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_UNAUTHORIZED | The current user's token is invalid. | The token of the current user could not be used for accessing the remote file storage. | If the file storage is configure to do the *Two-Way OAuth2 authorization code flow* remove the user token from **Account settings → Access tokens** of this file storage. If the storage is configured to use SSO login, please recheck the [SSO configuration guide](../../../integrations/nextcloud/oidc-sso/) for the settings of OpenProject and Nextcloud of your specific setup. |
-| 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. |
+| 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_UNAUTHORIZED | The current user's token is invalid. | The token of the current user could not be used for accessing the remote file storage. | If the file storage is configure to do the *Two-Way OAuth2 authorization code flow* remove the user token from **Account settings → Access tokens** of this file storage and redo the login. If the storage is configured to use SSO login, please recheck the [SSO configuration guide](../../../integrations/nextcloud/oidc-sso/) for the settings of OpenProject and Nextcloud of your specific setup. |
+| 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. |
The officially minimal supported app versions are listed in
the [system admin guide](../../../../system-admin-guide/integrations/nextcloud/#required-system-versions).
@@ -96,14 +96,14 @@ the [system admin guide](../../../../system-admin-guide/integrations/nextcloud/#
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.
-| 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. | Please check if you configured the correct file storage audience in OpenProject. |
-| ERR_OIDC_TOKEN_EXCHANGE_FAILED | The token exchange failed. | The OIDC provider might not allow token exchange, or the exchange failed on the given audience. | Please check if you configured the correct file storage audience in OpenProject, and if the OIDC identity provider allows exchanging tokens for that audience. |
-| ERR_OIDC_TOKEN_REFRESH_FAILED | The expired access token could not get refreshed. | The OIDC provider failed to refresh the token. This might happen due to an expired or revoked refresh token. | Please check the configuration of the OIDC identity provider of refresh tokens for misconfiguration. |
-| 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. |
+| 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. | Please check if you configured the correct file storage audience in OpenProject. |
+| ERR_OIDC_TOKEN_EXCHANGE_FAILED | The token exchange failed or was necessary and not supported. | The exchange failed on the given audience. An exchange might also have been attempted, if no refresh token was available, but the access token was expired. | Please check if you configured the correct file storage audience in OpenProject, and if the OIDC identity provider allows exchanging tokens for that audience. Also make sure that the identity provider is handing out refresh tokens. |
+| ERR_OIDC_TOKEN_REFRESH_FAILED | The expired access token could not get refreshed. | The OIDC provider failed to refresh the token. This might happen due to an expired or revoked refresh token. | Please check the configuration of the OIDC identity provider of refresh tokens for misconfiguration. |
+| 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 | `offline_access` scope is not requested from the OIDC provider. | The OIDC provider was configured without `offline_access` scope. While this does not cause the integration to break, this scope usually ensures, that refresh tokens do not expire and OpenProject can maintain a connection. | Make sure that refresh tokens issued by the identity provider do not expire. Adding the scope `offline_access` to the OIDC provider configuration is one common way to do it. |
## Health checks for automatically managed project folders