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
[#55899] revert uri join path method
Eric Schubertef03d17da957
diff --git a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/util.rb b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/util.rbindex f94717bafb8..5e88a3acc36 100644--- a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/util.rb+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/util.rb@@ -69,8 +69,11 @@ module Storagesenddef join_uri_path(uri, *)- joined = File.join(uri.to_s, *)- joined.tr("\\", "/")+ # We use `File.join` to ensure single `/` in between every part. This API will break if executed on a+ # Windows context, as it used `\` as file separators. But we anticipate that OpenProject+ # Server is not run on a Windows context.+ # URI::join cannot be used, as it behaves very different for the path parts depending on trailing slashes.+ File.join(uri.to_s, *)enddef token(user:, configuration:, &)