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
[#47113] fixed naming of local variable
Eric Schuberte987715f2282
diff --git a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/download_link_query.rb b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/download_link_query.rbindex b2eff83b29a..51b2d10a416 100644--- a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/download_link_query.rb+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/download_link_query.rb@@ -52,7 +52,7 @@ module Storages::Peripherals::StorageInteraction::Nextclouddef outbound_response(file_link)@retry_proc.call(@token) do |token|begin- response = ServiceResult.success(+ service_result = ServiceResult.success(result: RestClient.post(@uri.to_s,{ fileId: file_link.origin_id },@@ -64,21 +64,21 @@ module Storages::Peripherals::StorageInteraction::Nextcloud))rescue RestClient::Unauthorized => e- response = error(:not_authorized, 'Outbound request not authorized!', e.response)+ service_result = error(:not_authorized, 'Outbound request not authorized!', e.response)rescue RestClient::NotFound => e- response = error(:not_found, 'Outbound request destination not found!', e.response)+ service_result = error(:not_found, 'Outbound request destination not found!', e.response)rescue RestClient::ExceptionWithResponse => e- response = error(:error, 'Outbound request failed!', e.response)+ service_result = error(:error, 'Outbound request failed!', e.response)rescue StandardError- response = error(:error, 'Outbound request failed!')+ service_result = error(:error, 'Outbound request failed!')end- response.bind do |r|+ service_result.bind do |response|# The nextcloud API returns a successful response with empty body if the authorization is missing or expired- if r.body.blank?+ if response.body.blank?error(:not_authorized, 'Outbound request not authorized!')else- ServiceResult.success(result: r)+ ServiceResult.success(result: response)endendend