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
[#50987] Fix storage connection error
Dominic Bräunlein70b7662fa97c
diff --git 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.rbindex 0867d20d0a6..479b7b640ed 100644--- 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@@ -107,18 +107,21 @@ module Storagesenddef empty_response(folder)- ServiceResult.success(- result: StorageFiles.new(- [],- StorageFile.new(- id: Digest::SHA256.hexdigest(folder),- name: folder.split('/').last,- location: folder,- permissions: %i[readable writeable]- ),- forge_ancestors(path: folder)- )- )+ files_result = if folder.blank?+ StorageFiles.new([], root(Digest::SHA256.hexdigest('i_am_root')), [])+ else+ StorageFiles.new(+ [],+ StorageFile.new(+ id: Digest::SHA256.hexdigest(folder),+ name: folder.split('/').last,+ location: folder,+ permissions: %i[readable writeable]+ ),+ forge_ancestors(path: folder)+ )+ end+ ServiceResult.success(result: files_result)enddef extract_location(parent_reference, file_name = '')