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

Merge pull request #12328 from opf/bug/47113-direct-download-of-a-storage-file-fails

Eric Schuberta8893c486e4f
diff --cc modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/upload_link_query.rb
index 9fd9bff68a7,dbfb0e80168..030425ef9d0
--- a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/upload_link_query.rb
+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/upload_link_query.rb
@@@ -28,10 -28,11 +28,11 @@@
module Storages::Peripherals::StorageInteraction::Nextcloud
class UploadLinkQuery < Storages::Peripherals::StorageInteraction::StorageQuery
+ include API::V3::Utilities::PathHelper
using Storages::Peripherals::ServiceResultRefinements # use '>>' (bind) operator for ServiceResult
- URI_TOKEN_REQUEST = 'apps/integration_openproject/direct-upload-token'.freeze
- URI_UPLOAD_BASE_PATH = 'apps/integration_openproject/direct-upload'.freeze
+ URI_TOKEN_REQUEST = 'index.php/apps/integration_openproject/direct-upload-token'.freeze
+ URI_UPLOAD_BASE_PATH = 'index.php/apps/integration_openproject/direct-upload'.freeze
def initialize(base_uri:, token:, retry_proc:)
super()