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
[#56495] Location picker opens wrong directory
Eric Schubert98d21bd9cd27
diff --git a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/file_info_query.rb b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/file_info_query.rbindex ec7c8824d4d..6348d609a39 100644--- a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/file_info_query.rb+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/file_info_query.rb@@ -135,7 +135,7 @@ module Storagesdef location(file_path)prefix = "files/"- idx = file_path.rindex(prefix)+ idx = file_path.index(prefix)return "/" if idx == nilidx += prefix.length - 1diff --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.rbindex afbd8acb933..a6a4bbcaa26 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@@ -133,7 +133,7 @@ module Storages::Peripherals::StorageInteraction::Nextclouddef location(file_path, mimetype)prefix = "files/"- idx = file_path.rindex(prefix)+ idx = file_path.index(prefix)return "/" if idx == nilidx += prefix.length - 1diff --git a/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/file_info_query_spec.rb b/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/file_info_query_spec.rbindex 2cdf940a360..045770b52c1 100644--- a/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/file_info_query_spec.rb+++ b/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/file_info_query_spec.rb@@ -61,7 +61,7 @@ RSpec.describe Storages::Peripherals::StorageInteraction::Nextcloud::FileInfoQuelast_modified_by_name: nil,last_modified_by_id: nil,permissions: "RGDNVW",- location: "/Folder/android-studio-linux.tar.gz"+ location: "/My%20files/android-studio-linux.tar.gz")enddiff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/file_info_query_success_file.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/file_info_query_success_file.ymlindex 7076bc1ff7f..e070e1ded7c 100644--- a/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/file_info_query_success_file.yml+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/file_info_query_success_file.yml@@ -14,7 +14,7 @@ http_interactions:Authorization:- Bearer <BEARER TOKEN>User-Agent:- - httpx.rb/1.2.5+ - httpx.rb/1.3.0Accept-Encoding:- gzip, deflateresponse:@@ -31,7 +31,7 @@ http_interactions:Content-Type:- application/json; charset=utf-8Date:- - Mon, 17 Jun 2024 11:43:43 GMT+ - Fri, 19 Jul 2024 09:06:54 GMTExpires:- Thu, 19 Nov 1981 08:52:00 GMTFeature-Policy:@@ -44,19 +44,19 @@ http_interactions:Server:- Apache/2.4.59 (Debian)Set-Cookie:- - oc07ul6b4oaw=2ec4331fc84e5fcb4de0bcf90e349f59; path=/; secure; HttpOnly; SameSite=Lax,- oc_sessionPassphrase=HAGBPvgfdiYH1Tuxr%2FwCUL%2FZYhApHShPQ9tXd%2BOxKH%2BGAnvoku6Weti2giLaF%2BQ24C74t4TIi8CiLlrwmmOf0HhcaSvJ65vElxqvKkRWqrp2reEQJllRikJqRFzrEW%2B7;- path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=2ec4331fc84e5fcb4de0bcf90e349f59;+ - oc07ul6b4oaw=4f7d12e13c12c5157b6c4a62d4472371; path=/; secure; HttpOnly; SameSite=Lax,+ oc_sessionPassphrase=0UfgvCBTXJ6J2s0wDA51RRyFzBpgnBCHD1QZy152qDxKWlHITzPGJHaFgi%2BNP8MCls0tcR1NCLHmgsq29y3hW418N6kD0Grt08syWSRMuural3JnsPmCJ5JLW%2FcXCMHF;+ path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=4f7d12e13c12c5157b6c4a62d4472371;path=/; secure; HttpOnly; SameSite=Lax, __Host-nc_sameSiteCookielax=true;path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax,__Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri,- 31-Dec-2100 23:59:59 GMT; SameSite=strict, oc07ul6b4oaw=2ec4331fc84e5fcb4de0bcf90e349f59;- path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=2ec4331fc84e5fcb4de0bcf90e349f59;- path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=2ec4331fc84e5fcb4de0bcf90e349f59;- path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=2ec4331fc84e5fcb4de0bcf90e349f59;- path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=2ec4331fc84e5fcb4de0bcf90e349f59;- path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=2ec4331fc84e5fcb4de0bcf90e349f59;- path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=2ec4331fc84e5fcb4de0bcf90e349f59;+ 31-Dec-2100 23:59:59 GMT; SameSite=strict, oc07ul6b4oaw=4f7d12e13c12c5157b6c4a62d4472371;+ path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=4f7d12e13c12c5157b6c4a62d4472371;+ path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=4f7d12e13c12c5157b6c4a62d4472371;+ path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=4f7d12e13c12c5157b6c4a62d4472371;+ path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=4f7d12e13c12c5157b6c4a62d4472371;+ path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=4f7d12e13c12c5157b6c4a62d4472371;+ path=/; secure; HttpOnly; SameSite=Lax, oc07ul6b4oaw=4f7d12e13c12c5157b6c4a62d4472371;path=/; secure; HttpOnly; SameSite=LaxX-Content-Type-Options:- nosniff@@ -65,17 +65,18 @@ http_interactions:X-Permitted-Cross-Domain-Policies:- noneX-Powered-By:- - PHP/8.2.18+ - PHP/8.2.21X-Request-Id:- - NQcyhgHDnlIJ3vMyrEeE+ - cYTJzrAbVbXP6RvUzrxiX-Robots-Tag:- noindex, nofollowX-Xss-Protection:- 1; mode=blockContent-Length:- - '266'+ - '265'body:encoding: UTF-8- string: '{"ocs":{"meta":{"status":"ok","statuscode":100,"message":"OK","totalitems":"","itemsperpage":""},"data":{"status":"OK","statuscode":200,"id":267,"name":"android-studio-linux.tar.gz","mtime":1669880616,"ctime":0,"mimetype":"application\/gzip","size":982713473,"owner_name":"admin","owner_id":"admin","modifier_name":null,"modifier_id":null,"dav_permissions":"RGDNVW","path":"files\/Folder\/android-studio-linux.tar.gz"}}}'- recorded_at: Mon, 17 Jun 2024 11:43:43 GMT+ string: '{"ocs":{"meta":{"status":"ok","statuscode":100,"message":"OK","totalitems":"","itemsperpage":""},"data":{"status":"OK","statuscode":200,"id":267,"name":"android-studio-linux.tar.gz","mtime":1669880616,"ctime":0,"mimetype":"application\/gzip","size":982713473,"owner_name":"admin","owner_id":"admin","modifier_name":null,"modifier_id":null,"dav_permissions":"RGDNVW","path":"files\/My+ files\/android-studio-linux.tar.gz"}}}'+ recorded_at: Fri, 19 Jul 2024 09:06:54 GMTrecorded_with: VCR 6.2.0