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

Add a comment to drop the fix after /filesinfo update.

Pavel Balashou5d42362feecc
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.rb
index a7bf59cbdfa..8f3a1ec3029 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
@@ -138,6 +138,8 @@ module Storages::Peripherals::StorageInteraction::Nextcloud
return '/' if idx == nil
idx += prefix.length - 1
+ # Remove the following when /filesinfo starts responding with a trailing slash for directory paths
+ # in all supported versions of OpenProjectIntegation Nextcloud App.
file_path << '/' if mimetype == 'application/x-op-directory' && file_path[-1] != '/'
Util.escape_path(file_path[idx..])
end