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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
WIP - Processing PR: Implemented 403 response to refresh token
Frank Bergmann1d4f233e8641
diff --git a/modules/storages/app/services/storages/file_link_sync_service.rb b/modules/storages/app/services/storages/file_link_sync_service.rbindex 4e21c91e7ff..e4728fdfe4b 100644--- a/modules/storages/app/services/storages/file_link_sync_service.rb+++ b/modules/storages/app/services/storages/file_link_sync_service.rb@@ -209,7 +209,7 @@ class Storages::FileLinkSyncService# or success=false with result=:error or result=:not_authorized.def parse_files_info_response(response)return ServiceResult.failure(result: :error) if files_info_response_error?(response)- return ServiceResult.failure(result: :not_authorized) if response.code == "401" # Nextcloud response if token is not valid+ return ServiceResult.failure(result: :not_authorized) if ["401", "403"].include?(response.code)return ServiceResult.failure(result: :error) unless response.code == "200" # Interpret any other response as an errorbegin