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
Fixed failing spec
Andreas Pfohl12d4f6794b37
diff --git a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/files_info_query.rb b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/files_info_query.rbindex 8ab27bd5c35..79364940d54 100644--- a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/files_info_query.rb+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/files_info_query.rb@@ -99,24 +99,44 @@ module Storages::Peripherals::StorageInteraction::Nextclouddef create_storage_file_infos->(response_object) doServiceResult.success(- result: response_object.ocs.data.to_h.map do |_, value|- ::Storages::StorageFileInfo.new(- value.status,- value.statuscode,- value.id,- value.name,- Time.zone.at(value.mtime),- Time.zone.at(value.ctime),- value.mimetype,- value.size,- value.owner_name,- value.owner_id,- value.trashed,- value.modifier_name,- value.modifier_id,- value.dav_permissions,- location(value.path)- )+ result: response_object.ocs.data.to_h.map do |key, value|+ if value.statuscode == 200+ ::Storages::StorageFileInfo.new(+ value.status,+ value.statuscode,+ value.id,+ value.name,+ Time.zone.at(value.mtime),+ Time.zone.at(value.ctime),+ value.mimetype,+ value.size,+ value.owner_name,+ value.owner_id,+ value.trashed,+ value.modifier_name,+ value.modifier_id,+ value.dav_permissions,+ location(value.path)+ )+ else+ ::Storages::StorageFileInfo.new(+ value.status,+ value.statuscode,+ key.to_s.to_i,+ nil,+ nil,+ nil,+ nil,+ nil,+ nil,+ nil,+ nil,+ nil,+ nil,+ nil,+ nil+ )+ endend)enddiff --git a/modules/storages/spec/requests/api/v3/file_links/mixed_case_file_links_integration_spec.rb b/modules/storages/spec/requests/api/v3/file_links/mixed_case_file_links_integration_spec.rbindex 20cfad600fa..3f7ce6ef406 100644--- a/modules/storages/spec/requests/api/v3/file_links/mixed_case_file_links_integration_spec.rb+++ b/modules/storages/spec/requests/api/v3/file_links/mixed_case_file_links_integration_spec.rb@@ -99,7 +99,8 @@ RSpec.describe 'API v3 file links resource' dosize: 12706214,owner_id: "admin",owner_name: "admin",- trashed: false+ trashed: false,+ path: "/Nextcloud Manual.pdf"}endlet(:file_info_trashed) do@@ -114,7 +115,8 @@ RSpec.describe 'API v3 file links resource' dosize: 954123,owner_id: "admin",owner_name: "admin",- trashed: true+ trashed: true,+ path: "/Nextcloud Manual.pdf"}end