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
[#49628] Error copying file links while copying projects
Pavel Balashou5dd0a0bfe3f6
diff --git a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/folder_files_file_ids_deep_query.rb b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/folder_files_file_ids_deep_query.rbindex 1b71a7b28b2..b1f1c4ff7b6 100644--- a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/folder_files_file_ids_deep_query.rb+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/folder_files_file_ids_deep_query.rb@@ -36,7 +36,8 @@ module Storages::Peripherals::StorageInteraction::Nextcloud@query.call(depth: 'infinity',path:,- props: %w[oc:fileid]+ # nc:acl-list is only required to avoid https://community.openproject.org/wp/49628. See comment #4.+ props: %w[oc:fileid nc:acl-list])endenddiff --git a/spec/services/projects/copy_service_integration_spec.rb b/spec/services/projects/copy_service_integration_spec.rbindex 64402b25efc..cd049db96c4 100644--- a/spec/services/projects/copy_service_integration_spec.rb+++ b/spec/services/projects/copy_service_integration_spec.rb@@ -302,6 +302,12 @@ RSpec.describe(</d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat>+ <d:propstat>+ <d:prop>+ <nc:acl-list/>+ </d:prop>+ <d:status>HTTP/1.1 404 Not Found</d:status>+ </d:propstat></d:response><d:response><d:href>/remote.php/dav/files/OpenProject/OpenProject/Target%20Project%20Name%20(#{project_id})/#{file_inside_automatic_project_folder_link.origin_name}</d:href>@@ -311,6 +317,12 @@ RSpec.describe(</d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat>+ <d:propstat>+ <d:prop>+ <nc:acl-list/>+ </d:prop>+ <d:status>HTTP/1.1 404 Not Found</d:status>+ </d:propstat></d:response></d:multistatus>XML