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

Keys were Strings all along

Marcello Rocha9f719b62217d
diff --git a/modules/storages/app/common/storages/peripherals/storage_interaction/one_drive/upload_link_query.rb b/modules/storages/app/common/storages/peripherals/storage_interaction/one_drive/upload_link_query.rb
index 8903bd2c4c0..6db0510a2b6 100644
--- a/modules/storages/app/common/storages/peripherals/storage_interaction/one_drive/upload_link_query.rb
+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/one_drive/upload_link_query.rb
@@ -43,7 +43,7 @@ module Storages
end
def call(user:, data:)
- folder, filename = data.slice(:parent, :fileName).values
+ folder, filename = data.slice('parent', 'fileName').values
Util.using_user_token(@storage, user) do |token|
response = Net::HTTP.start(@uri.host, @uri.port, use_ssl: true) do |http|
diff --git a/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/upload_link_query_spec.rb b/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/upload_link_query_spec.rb
index b3b4868def7..983fd1b46b9 100644
--- a/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/upload_link_query_spec.rb
+++ b/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/upload_link_query_spec.rb
@@ -37,7 +37,7 @@ RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::UploadLinkQu
let(:user) { token.user }
# Need to verify the actual object
- let(:query_payload) { { parent: 'LFHLUDSILANC', fileName: 'it_is_a_trap.flac' } }
+ let(:query_payload) { { 'parent' => 'LFHLUDSILANC', 'fileName' => 'it_is_a_trap.flac' } }
subject(:upload_query) { described_class.new(storage) }