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

Merge pull request #15873 from opf/chore/add-regression-test-for-folders-with-ampersands

Eric Schubert2d0993ff19a4
diff --cc modules/storages/app/common/storages/peripherals/storage_interaction/one_drive/files_query.rb
index e070513df2d,7bf160af071..f9d90395bca
--- a/modules/storages/app/common/storages/peripherals/storage_interaction/one_drive/files_query.rb
+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/one_drive/files_query.rb
@@@ -68,16 -67,13 +67,16 @@@ module Storage
ServiceResult.success(result: response.json(symbolize_keys: true).fetch(map_value))
in { status: 404 }
ServiceResult.failure(result: :not_found,
- errors: Util.storage_error(response:, code: :not_found, source: self))
+ errors: Util.storage_error(response:, code: :not_found, source: self.class))
+ in { status: 403 }
+ ServiceResult.failure(result: :forbidden,
+ errors: Util.storage_error(response:, code: :forbidden, source: self.class))
in { status: 401 }
ServiceResult.failure(result: :unauthorized,
- errors: Util.storage_error(response:, code: :unauthorized, source: self))
+ errors: Util.storage_error(response:, code: :unauthorized, source: self.class))
else
- data = ::Storages::StorageErrorData.new(source: self.class, payload: response)
- ServiceResult.failure(result: :error, errors: ::Storages::StorageError.new(code: :error, data:))
+ data = StorageErrorData.new(source: self.class, payload: response)
+ ServiceResult.failure(result: :error, errors: StorageError.new(code: :error, data:))
end
end