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
[#42160] fixed service code, satisfy tests
Eric Schuberta00d9cb79ce1
diff --git a/modules/storages/lib/api/v3/file_links/storage_url_helper.rb b/modules/storages/lib/api/v3/file_links/storage_url_helper.rbindex 4536563facf..6d7f80cf27f 100644--- a/modules/storages/lib/api/v3/file_links/storage_url_helper.rb+++ b/modules/storages/lib/api/v3/file_links/storage_url_helper.rb@@ -53,12 +53,14 @@ module API::V3::FileLinks::StorageUrlHelpertoken = parse_direct_download_token body: response.resultif token.blank?- Rails.logger.error "Received unexpected json response: #{response.result.body}"+ Rails.logger.error "Received unexpected json response: #{response.result}"return ServiceResult.failure(result: I18n.t('http.response.unexpected'))end- "#{storage.host}/apps/integration_openproject/direct?token=#{token}&fileName=#{file_link.origin_name}"+ url = "#{storage.host}/apps/integration_openproject/direct?token=#{token}&fileName=#{file_link.origin_name}"+ ServiceResult.success(result: url)end+# rubocop:enable Metrics/AbcSizeprivate