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

[#48422] File picker does not work with project folder name containing octothorpe.

Eric Schubert4a8eff1ccb5f
diff --git a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/file_query.rb b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/file_query.rb
index 5128707bcb9..45211ce025b 100644
--- a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/file_query.rb
+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/file_query.rb
@@ -102,6 +102,7 @@ module Storages::Peripherals::StorageInteraction::Nextcloud
file_info_data.dav_permissions)
ServiceResult.success(result: storage_file)
end
+
# rubocop:enable Metrics/AbcSize
def location(files_path)
@@ -111,7 +112,7 @@ module Storages::Peripherals::StorageInteraction::Nextcloud
idx += prefix.length - 1
- files_path[idx..]
+ Util.escape_path(files_path[idx..])
end
end
end