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
[#53996] fixed usage of create folder in tests
Eric Schubertddfe5dba0766
diff --git a/modules/storages/app/services/storages/nextcloud_group_folder_properties_sync_service.rb b/modules/storages/app/services/storages/nextcloud_group_folder_properties_sync_service.rbindex e2147e38855..a904819642c 100644--- a/modules/storages/app/services/storages/nextcloud_group_folder_properties_sync_service.rb+++ b/modules/storages/app/services/storages/nextcloud_group_folder_properties_sync_service.rb@@ -210,7 +210,7 @@ module Storagesdef create_folder(project_storage)folder_name = project_storage.managed_project_folder_path- parent_location = Storages::Peripherals::ParentFolder.new("/")+ parent_location = Peripherals::ParentFolder.new("/")Peripherals::Registry.resolve("nextcloud.commands.create_folder")@@ -298,7 +298,7 @@ module Storagesenddef auth_strategy- Storages::Peripherals::StorageInteraction::AuthenticationStrategies::BasicAuth.strategy+ Peripherals::StorageInteraction::AuthenticationStrategies::BasicAuth.strategyenddef admin_client_tokens_scopediff --git a/modules/storages/app/services/storages/one_drive_managed_folder_sync_service.rb b/modules/storages/app/services/storages/one_drive_managed_folder_sync_service.rbindex 1c4683ecd55..d4519be3481 100644--- a/modules/storages/app/services/storages/one_drive_managed_folder_sync_service.rb+++ b/modules/storages/app/services/storages/one_drive_managed_folder_sync_service.rb@@ -114,9 +114,10 @@ module Storages.result_or { |error| format_and_log_error(error, source:, target:) }end+ # rubocop:disable Metrics/AbcSizedef create_folder(project_storage)folder_name = project_storage.managed_project_folder_path- parent_location = Peripherals::ParentFolder.new('/')+ parent_location = Peripherals::ParentFolder.new("/")Peripherals::Registry.resolve("one_drive.commands.create_folder")@@ -135,6 +136,8 @@ module Storagesend)end+ # rubocop:enable Metrics/AbcSize+def remote_folders_mapusing_admin_token do |http|response = http.get("/v1.0/drives/#{@storage.drive_id}/root/children")@@ -187,7 +190,7 @@ module Storagesenddef auth_strategy- Storages::Peripherals::StorageInteraction::AuthenticationStrategies::OAuthClientCredentials.strategy+ Peripherals::StorageInteraction::AuthenticationStrategies::OAuthClientCredentials.strategyenddef admin_client_tokens_scopediff --git a/modules/storages/spec/common/storages/peripherals/registry_spec.rb b/modules/storages/spec/common/storages/peripherals/registry_spec.rbindex f2422a3748b..1c88d9aa85f 100644--- a/modules/storages/spec/common/storages/peripherals/registry_spec.rb+++ b/modules/storages/spec/common/storages/peripherals/registry_spec.rb@@ -216,87 +216,6 @@ RSpec.describe Storages::Peripherals::Registry, :webmock doendend- describe "#create_folder_command" do- let(:folder_path) { "OpenProject/JediProject" }-- before do- stub_request(:mkcol, "https://example.com/remote.php/dav/files/OpenProject/OpenProject/JediProject")- .with(- headers: {- "Authorization" => "Basic T3BlblByb2plY3Q6T3BlblByb2plY3RTZWN1cmVQYXNzd29yZA=="- }- )- .to_return(expected_response)- end-- context "when folder does not exist yet" do- let(:expected_response) do- {- status: 201,- body: "",- headers: {}- }- end-- it "creates a folder and responds with a success" do- result = registry.resolve("nextcloud.commands.create_folder").call(storage:, folder_path:)- expect(result).to be_success- expect(result.message).to eq("Folder was successfully created.")- end- end-- context "when folder exists already" do- let(:expected_response_body) do- <<~XML- <?xml version="1.0" encoding="utf-8"?>- <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">- <s:exception>Sabre\\DAV\\Exception\\MethodNotAllowed</s:exception>- <s:message>The resource you tried to create already exists</s:message>- </d:error>- XML- end- let(:expected_response) do- {- status: 405,- body: expected_response_body,- headers: {}- }- end-- it "does not create a folder and responds with a success" do- result = registry.resolve("nextcloud.commands.create_folder").call(storage:, folder_path:)- expect(result).to be_success- expect(result.message).to eq("Folder already exists.")- end- end-- context "when parent folder is missing for any reason" do- let(:expected_response_body) do- <<~XML- <?xml version="1.0" encoding="utf-8"?>- <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">- <s:exception>Sabre\\DAV\\Exception\\Conflict</s:exception>- <s:message>Parent node does not exist</s:message>- </d:error>- XML- end- let(:expected_response) do- {- status: 409,- body: expected_response_body,- headers: {}- }- end-- it "does not create a folder and responds with a failure" do- result = registry.resolve("nextcloud.commands.create_folder").call(storage:, folder_path:)- expect(result).to be_failure- expect(result.result).to eq(:conflict)- expect(result.errors.log_message).to eq("Parent node does not exist")- end- end- end-describe "#set_permissions_command" dolet(:path) { "OpenProject/JediProject" }let(:permissions) do@@ -610,7 +529,7 @@ RSpec.describe Storages::Peripherals::Registry, :webmock doenddescribe "#delete_folder_command" do- let(:auth_strategy) { ::Storages::Peripherals::StorageInteraction::AuthenticationStrategies::BasicAuth.strategy }+ let(:auth_strategy) { Storages::Peripherals::StorageInteraction::AuthenticationStrategies::BasicAuth.strategy }before dostub_request(:delete, "https://example.com/remote.php/dav/files/OpenProject/OpenProject/Folder%201")diff --git a/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/copy_template_folder_command_spec.rb b/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/copy_template_folder_command_spec.rbindex eae9d44e0a4..ae17be709bc 100644--- a/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/copy_template_folder_command_spec.rb+++ b/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/copy_template_folder_command_spec.rb@@ -28,54 +28,54 @@# See COPYRIGHT and LICENSE files for more details.#++-require 'spec_helper'+require "spec_helper"require_module_spec_helperRSpec.describe Storages::Peripherals::StorageInteraction::Nextcloud::CopyTemplateFolderCommand, :webmock dousing Storages::Peripherals::ServiceResultRefinementslet(:user) { create(:user) }- let(:url) { 'https://example.com' }- let(:origin_user_id) { 'OpenProject' }- let(:storage) { build(:nextcloud_storage, :as_automatically_managed, host: url, password: 'OpenProjectSecurePassword') }+ let(:url) { "https://example.com" }+ let(:origin_user_id) { "OpenProject" }+ let(:storage) { build(:nextcloud_storage, :as_automatically_managed, host: url, password: "OpenProjectSecurePassword") }- let(:source_path) { 'source-of-fun' }- let(:destination_path) { 'boring-destination' }+ let(:source_path) { "source-of-fun" }+ let(:destination_path) { "boring-destination" }let(:source_url) { "#{url}/remote.php/dav/files/#{CGI.escape(origin_user_id)}/#{source_path}" }let(:destination_url) { "#{url}/remote.php/dav/files/#{CGI.escape(origin_user_id)}/#{destination_path}" }subject { described_class.new(storage) }- describe '#call' do+ describe "#call" dobefore { stub_request(:head, destination_url).to_return(status: 404) }- describe 'parameter validation' do- it 'source_path cannot be blank' do- result = subject.call(source_path: '', destination_path: 'destination')+ describe "parameter validation" do+ it "source_path cannot be blank" do+ result = subject.call(source_path: "", destination_path: "destination")expect(result).to be_failure- expect(result.errors.log_message).to eq('Source and destination paths must be present.')+ expect(result.errors.log_message).to eq("Source and destination paths must be present.")end- it 'destination_path cannot blank' do- result = subject.call(source_path: 'source', destination_path: '')+ it "destination_path cannot blank" do+ result = subject.call(source_path: "source", destination_path: "")expect(result).to be_failure- expect(result.errors.log_message).to eq('Source and destination paths must be present.')+ expect(result.errors.log_message).to eq("Source and destination paths must be present.")endend- describe 'remote server overwrite protection' do- it 'destination_path must not exist on the remote server' do+ describe "remote server overwrite protection" do+ it "destination_path must not exist on the remote server" dostub_request(:head, destination_url).to_return(status: 200)result = subject.call(source_path:, destination_path:)expect(result).to be_failure- expect(result.errors.log_message).to eq('Destination folder already exists.')+ expect(result.errors.log_message).to eq("Destination folder already exists.")endend- context 'when the folder is copied successfully' do+ context "when the folder is copied successfully" dolet(:successful_propfind) do<<~XML<?xml version="1.0"?>@@ -111,15 +111,15 @@ RSpec.describe Storages::Peripherals::StorageInteraction::Nextcloud::CopyTemplatstub_request(:propfind, destination_url).to_return(status: 200, body: successful_propfind)end- it 'must be successful' do+ it "must be successful" doresult = subject.call(source_path:, destination_path:)expect(result).to be_success- expect(result.result.id).to eq('349')+ expect(result.result.id).to eq("349")endend- describe 'error handling' do+ describe "error handling" dobefore dobody = <<~XML<?xml version="1.0" encoding="utf-8"?>@@ -130,10 +130,10 @@ RSpec.describe Storages::Peripherals::StorageInteraction::Nextcloud::CopyTemplat<s:message>The destination node is not found</s:message></d:error>XML- stub_request(:copy, source_url).to_return(status: 409, body:)+ stub_request(:copy, source_url).to_return(status: 409, body:, headers: { "Content-Type" => "application/xml" })end- it 'returns a :conflict failure if the copy fails' do+ it "returns a :conflict failure if the copy fails" doresult = subject.call(source_path:, destination_path:)expect(result).to be_failurediff --git a/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/copy_template_folder_command_spec.rb b/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/copy_template_folder_command_spec.rbindex 2ab0025c5dc..a05ec40e2b4 100644--- a/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/copy_template_folder_command_spec.rb+++ b/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/copy_template_folder_command_spec.rb@@ -28,7 +28,7 @@# See COPYRIGHT and LICENSE files for more details.#++-require 'spec_helper'+require "spec_helper"require_module_spec_helperRSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::CopyTemplateFolderCommand, :webmock do@@ -36,63 +36,63 @@ RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::CopyTemplateshared_let(:original_folders) doWebMock.enable! && VCR.turn_on!- VCR.use_cassette('one_drive/copy_template_folder_existing_folders') { existing_folder_tuples }+ VCR.use_cassette("one_drive/copy_template_folder_existing_folders") { existing_folder_tuples }ensureVCR.turn_off! && WebMock.disable!endshared_let(:base_template_folder) doWebMock.enable! && VCR.turn_on!- VCR.use_cassette('one_drive/copy_template_folder_base_folder') { create_base_folder }+ VCR.use_cassette("one_drive/copy_template_folder_base_folder") { create_base_folder }ensureVCR.turn_off! && WebMock.disable!endshared_let(:source_path) { base_template_folder.id }- it 'is registered under commands.one_drive.copy_template_folder',- skip: 'Skipped while we decide on what to do with the copy project folder' do- expect(Storages::Peripherals::Registry.resolve('one_drive.commands.copy_template_folder')).to eq(described_class)+ it "is registered under commands.one_drive.copy_template_folder",+ skip: "Skipped while we decide on what to do with the copy project folder" do+ expect(Storages::Peripherals::Registry.resolve("one_drive.commands.copy_template_folder")).to eq(described_class)end- it 'responds to .call' do+ it "responds to .call" doexpect(described_class).to respond_to(:call)end- it '.call takes 3 required parameters: storage, source_path, destination_path' do+ it ".call takes 3 required parameters: storage, source_path, destination_path" domethod = described_class.method(:call)expect(method.parameters).to contain_exactly(%i[keyreq storage], %i[keyreq source_path], %i[keyreq destination_path])endit "destination_path and source_path can't be empty" do- missing_source = described_class.call(storage:, source_path: '', destination_path: 'Path')- missing_path = described_class.call(storage:, source_path: 'Path', destination_path: nil)- missing_both = described_class.call(storage:, source_path: nil, destination_path: '')+ missing_source = described_class.call(storage:, source_path: "", destination_path: "Path")+ missing_path = described_class.call(storage:, source_path: "Path", destination_path: nil)+ missing_both = described_class.call(storage:, source_path: nil, destination_path: "")expect([missing_both, missing_path, missing_source]).to all(be_failure)end- describe '#call' do+ describe "#call" do# rubocop:disable RSpec/BeforeAfterAllbefore(:all) doWebMock.enable! && VCR.turn_on!- VCR.use_cassette('one_drive/copy_template_folder_setup') { setup_template_folder }+ VCR.use_cassette("one_drive/copy_template_folder_setup") { setup_template_folder }ensureVCR.turn_off! && WebMock.disable!endafter(:all) doWebMock.enable! && VCR.turn_on!- VCR.use_cassette('one_drive/copy_template_folder_teardown') { delete_template_folder }+ VCR.use_cassette("one_drive/copy_template_folder_teardown") { delete_template_folder }ensureVCR.turn_off! && WebMock.disable!end# rubocop:enable RSpec/BeforeAfterAll- it 'copies origin folder and all underlying files and folders to the destination_path',- vcr: 'one_drive/copy_template_folder_copy_successful' do- command_result = described_class.call(storage:, source_path:, destination_path: 'My New Folder')+ it "copies origin folder and all underlying files and folders to the destination_path",+ vcr: "one_drive/copy_template_folder_copy_successful" do+ command_result = described_class.call(storage:, source_path:, destination_path: "My New Folder")expect(command_result).to be_successexpect(command_result.result.requires_polling?).to be_truthy@@ -101,39 +101,39 @@ RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::CopyTemplatedelete_copied_folder(command_result.result.polling_url)end- describe 'error handling' do- context 'when the source_path does not exist' do- it 'fails', vcr: 'one_drive/copy_template_source_not_found' do- result = described_class.call(storage:, source_path: 'TheCakeIsALie', destination_path: 'Not Happening')+ describe "error handling" do+ context "when the source_path does not exist" do+ it "fails", vcr: "one_drive/copy_template_source_not_found" do+ result = described_class.call(storage:, source_path: "TheCakeIsALie", destination_path: "Not Happening")expect(result).to be_failureend- it 'explains the nature of the error', vcr: 'one_drive/copy_template_source_not_found' do- result = described_class.call(storage:, source_path: 'TheCakeIsALie', destination_path: 'Not Happening')+ it "explains the nature of the error", vcr: "one_drive/copy_template_source_not_found" do+ result = described_class.call(storage:, source_path: "TheCakeIsALie", destination_path: "Not Happening")- expect(result.message).to eq('Template folder not found')+ expect(result.message).to eq("Template folder not found")end- it 'logs the occurrence'+ it "logs the occurrence"end- context 'when it would overwrite an already existing folder' do- it 'fails', vcr: 'one_drive/copy_template_folder_no_overwrite' do+ context "when it would overwrite an already existing folder" do+ it "fails", vcr: "one_drive/copy_template_folder_no_overwrite" doexisting_folder = original_folders.first[:name]result = described_class.call(storage:, source_path:, destination_path: existing_folder)expect(result).to be_failureend- it 'explains the nature of the error', vcr: 'one_drive/copy_template_folder_no_overwrite' do+ it "explains the nature of the error", vcr: "one_drive/copy_template_folder_no_overwrite" doexisting_folder = original_folders.first[:name]result = described_class.call(storage:, source_path:, destination_path: existing_folder)- expect(result.message).to eq('The copy would overwrite an already existing folder')+ expect(result.message).to eq("The copy would overwrite an already existing folder")end- it 'logs the occurrence'+ it "logs the occurrence"endendend@@ -142,40 +142,43 @@ RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::CopyTemplatedef create_base_folderStorages::Peripherals::Registry- .resolve('one_drive.commands.create_folder')- .call(storage:, folder_path: 'Test Template Folder')+ .resolve("one_drive.commands.create_folder")+ .call(storage:,+ auth_strategy:,+ folder_name: "Test Template Folder",+ parent_location: Storages::Peripherals::ParentFolder.new("/")).resultenddef setup_template_folderraise if source_path.nil?+ parent_location = Storages::Peripherals::ParentFolder.new(source_path)+command = Storages::Peripherals::Registry- .resolve('one_drive.commands.create_folder').new(storage)- command.call(folder_path: 'Empty Subfolder', parent_location: source_path)+ .resolve("one_drive.commands.create_folder").new(storage)+ command.call(auth_strategy:, folder_name: "Empty Subfolder", parent_location:)- subfolder = command.call(folder_path: 'Subfolder with File', parent_location: source_path).result- file_name = 'files_query_root.yml'+ subfolder = command.call(auth_strategy:, folder_name: "Subfolder with File", parent_location:).result+ file_name = "files_query_root.yml"token = OAuthClientToken.lastupload_link = Storages::Peripherals::Registry- .resolve('one_drive.queries.upload_link')- .call(storage:, user: token.user, data: { 'parent' => subfolder.id, 'file_name' => file_name })+ .resolve("one_drive.queries.upload_link")+ .call(storage:, user: token.user, data: { "parent" => subfolder.id, "file_name" => file_name }).result- path = Rails.root.join('modules/storages/spec/support/fixtures/vcr_cassettes/one_drive', file_name)- File.open(path, 'rb') do |file_handle|- HTTPX.with(headers: {- content_length: file_handle.size,- 'Content-Range' => "bytes 0-#{file_handle.size - 1}/#{file_handle.size}"- })+ path = Rails.root.join("modules/storages/spec/support/fixtures/vcr_cassettes/one_drive", file_name)+ File.open(path, "rb") do |file_handle|+ HTTPX.with(headers: { content_length: file_handle.size,+ "Content-Range" => "bytes 0-#{file_handle.size - 1}/#{file_handle.size}" }).put(upload_link.destination, body: file_handle.read).raise_for_statusendenddef delete_template_folderStorages::Peripherals::Registry- .resolve('one_drive.commands.delete_folder')+ .resolve("one_drive.commands.delete_folder").call(storage:, auth_strategy:, location: base_template_folder.id)end@@ -197,12 +200,11 @@ RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::CopyTemplatelocation = match_data[:item_id]Storages::Peripherals::Registry- .resolve('one_drive.commands.delete_folder')+ .resolve("one_drive.commands.delete_folder").call(storage:, auth_strategy:, location:)enddef auth_strategyStorages::Peripherals::StorageInteraction::AuthenticationStrategies::OAuthClientCredentials.strategyend-enddiff --git a/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/set_permissions_command_spec.rb b/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/set_permissions_command_spec.rbindex c41c18678a9..d1fb1cd7106 100644--- a/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/set_permissions_command_spec.rb+++ b/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/set_permissions_command_spec.rb@@ -42,7 +42,10 @@ RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::SetPermissiolet(:folder) doStorages::Peripherals::Registry.resolve("one_drive.commands.create_folder")- .call(storage:, folder_path: "Permission Test Folder")+ .call(storage:,+ auth_strategy:,+ folder_name: "Permission Test Folder",+ parent_location: Storages::Peripherals::ParentFolder.new("/")).resultend@@ -63,7 +66,7 @@ RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::SetPermissioafter doStorages::Peripherals::Registry.resolve("one_drive.commands.delete_folder")- .call(storage:, auth_strategy: ,location: path)+ .call(storage:, auth_strategy:, location: path)endcontext "when trying to access a non-existing driveItem" dodiff --git a/modules/storages/spec/services/storages/one_drive_managed_folder_sync_service_spec.rb b/modules/storages/spec/services/storages/one_drive_managed_folder_sync_service_spec.rbindex 69b70ed6627..329fa2e3bad 100644--- a/modules/storages/spec/services/storages/one_drive_managed_folder_sync_service_spec.rb+++ b/modules/storages/spec/services/storages/one_drive_managed_folder_sync_service_spec.rb@@ -370,10 +370,14 @@ RSpec.describe Storages::OneDriveManagedFolderSyncService, :webmock doenddef create_folder_for(project_storage, folder_override = nil)- folder_path = folder_override || project_storage.managed_project_folder_path+ folder_name = folder_override || project_storage.managed_project_folder_path+ parent_location = Storages::Peripherals::ParentFolder.new("/")Storages::Peripherals::Registry.resolve("one_drive.commands.create_folder")- .call(storage: project_storage.storage, folder_path:)+ .call(storage: project_storage.storage,+ auth_strategy:,+ folder_name:,+ parent_location:)enddef set_permissions_on(item_id, permissions)diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/delete_folder.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/delete_folder.ymlindex 96494ffbaa8..4b445746b8f 100644--- a/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/delete_folder.yml+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/delete_folder.yml@@ -27,11 +27,11 @@ http_interactions:Content-Type:- text/html; charset=UTF-8Date:- - Mon, 22 Apr 2024 09:14:21 GMT+ - Tue, 23 Apr 2024 13:36:36 GMTExpires:- Thu, 19 Nov 1981 08:52:00 GMTOc-Fileid:- - 00000374ocirabgzify6+ - '00000379ocirabgzify6'Pragma:- no-cacheReferrer-Policy:@@ -39,24 +39,24 @@ http_interactions:Server:- Apache/2.4.57 (Debian)Set-Cookie:- - ocirabgzify6=b9d5029ee8a149f8a2ae077ced606f68; path=/; secure; HttpOnly; SameSite=Lax,- oc_sessionPassphrase=4LnEWVfKVN6raZJTZwYHIGOFGRw55F0rlxCEDMsH6m0m6ZeQLjYVYYsG5u3Xbgl1Ls30a7OaZv8X1ltmaTB4%2BmZMLidD5wpZtQ2g0hI6r%2Fnm%2FO8R2YKa16hdMDeGblcc;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=b9d5029ee8a149f8a2ae077ced606f68;+ - ocirabgzify6=bd3a1031dc4c68f08e0f4eda28c758f6; path=/; secure; HttpOnly; SameSite=Lax,+ oc_sessionPassphrase=LFkW5aUhC0JvGYEYVrEsjbMMNDKyW8pKreIgjNqWYrgtuK5qKw%2Br45SWo6agU1ohWlFS4S%2BcuLOmRIo99PFrbHqoYD6UCD372RENgUGKTnE3hfI%2FXJxrUVQ17Awh5dI%2F;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=bd3a1031dc4c68f08e0f4eda28c758f6;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, ocirabgzify6=b9d5029ee8a149f8a2ae077ced606f68;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=b9d5029ee8a149f8a2ae077ced606f68;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=b9d5029ee8a149f8a2ae077ced606f68;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=b9d5029ee8a149f8a2ae077ced606f68;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=b9d5029ee8a149f8a2ae077ced606f68;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=b9d5029ee8a149f8a2ae077ced606f68;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=b9d5029ee8a149f8a2ae077ced606f68;+ 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=bd3a1031dc4c68f08e0f4eda28c758f6;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=bd3a1031dc4c68f08e0f4eda28c758f6;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=bd3a1031dc4c68f08e0f4eda28c758f6;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=bd3a1031dc4c68f08e0f4eda28c758f6;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=bd3a1031dc4c68f08e0f4eda28c758f6;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=bd3a1031dc4c68f08e0f4eda28c758f6;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=bd3a1031dc4c68f08e0f4eda28c758f6;path=/; secure; HttpOnly; SameSite=LaxX-Content-Type-Options:- nosniffX-Debug-Token:- - dL2UCFlK7gavvQSBnnQc+ - R73idPXWWf94QWLqivvWX-Frame-Options:- SAMEORIGINX-Permitted-Cross-Domain-Policies:@@ -64,7 +64,7 @@ http_interactions:X-Powered-By:- PHP/8.2.16X-Request-Id:- - dL2UCFlK7gavvQSBnnQc+ - R73idPXWWf94QWLqivvWX-Robots-Tag:- noindex, nofollowX-Xss-Protection:@@ -74,7 +74,104 @@ http_interactions:body:encoding: UTF-8string: ''- recorded_at: Mon, 22 Apr 2024 09:14:21 GMT+ recorded_at: Tue, 23 Apr 2024 13:36:36 GMT+- request:+ method: propfind+ uri: https://nextcloud.local/remote.php/dav/files/admin/To%20Be%20Deleted%20Soon+ body:+ encoding: UTF-8+ string: |+ <?xml version="1.0"?>+ <d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">+ <d:prop>+ <oc:fileid/>+ <oc:size/>+ <d:getlastmodified/>+ <oc:owner-display-name/>+ </d:prop>+ </d:propfind>+ headers:+ Authorization:+ - Bearer <BEARER TOKEN>+ Depth:+ - '1'+ User-Agent:+ - httpx.rb/1.2.4+ Accept:+ - "*/*"+ Accept-Encoding:+ - gzip, deflate+ Content-Type:+ - application/xml; charset=utf-8+ Content-Length:+ - '207'+ response:+ status:+ code: 207+ message: Multi-Status+ headers:+ Cache-Control:+ - no-store, no-cache, must-revalidate+ Content-Encoding:+ - gzip+ Content-Security-Policy:+ - default-src 'none';+ Content-Type:+ - application/xml; charset=utf-8+ Date:+ - Tue, 23 Apr 2024 13:36:36 GMT+ Dav:+ - 1, 3, extended-mkcol, access-control, calendarserver-principal-property-search,+ nextcloud-checksum-update, nc-calendar-search, nc-enable-birthday-calendar+ Expires:+ - Thu, 19 Nov 1981 08:52:00 GMT+ Pragma:+ - no-cache+ Referrer-Policy:+ - no-referrer+ Server:+ - Apache/2.4.57 (Debian)+ Set-Cookie:+ - ocirabgzify6=3ead1b22903eb48d95d46841973fdc8c; path=/; secure; HttpOnly; SameSite=Lax,+ oc_sessionPassphrase=EiO9hoYhsC5yO8wFDc2e5OI%2BXAUQyotcDcl0NPWoZblj8UYBoC3JaXTDLCI%2B%2FxLpfp5nGHMY6lemCiJPriRT6Rw7POXv5%2FI1NzZEaI%2ByvpTwlOgLD52%2FFnGYNGFCE%2Bkk;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=3ead1b22903eb48d95d46841973fdc8c;+ 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, ocirabgzify6=3ead1b22903eb48d95d46841973fdc8c;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=3ead1b22903eb48d95d46841973fdc8c;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=3ead1b22903eb48d95d46841973fdc8c;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=3ead1b22903eb48d95d46841973fdc8c;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=3ead1b22903eb48d95d46841973fdc8c;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=3ead1b22903eb48d95d46841973fdc8c;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=3ead1b22903eb48d95d46841973fdc8c;+ path=/; secure; HttpOnly; SameSite=Lax+ Vary:+ - Brief,Prefer+ X-Content-Type-Options:+ - nosniff+ X-Debug-Token:+ - TBEGPFMhRymRLEho7tmG+ X-Frame-Options:+ - SAMEORIGIN+ X-Permitted-Cross-Domain-Policies:+ - none+ X-Powered-By:+ - PHP/8.2.16+ X-Request-Id:+ - TBEGPFMhRymRLEho7tmG+ X-Robots-Tag:+ - noindex, nofollow+ X-Xss-Protection:+ - 1; mode=block+ Content-Length:+ - '310'+ body:+ encoding: UTF-8+ string: |+ <?xml version="1.0"?>+ <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns"><d:response><d:href>/remote.php/dav/files/admin/To%20Be%20Deleted%20Soon/</d:href><d:propstat><d:prop><oc:fileid>379</oc:fileid><oc:size>0</oc:size><d:getlastmodified>Tue, 23 Apr 2024 13:36:36 GMT</d:getlastmodified><oc:owner-display-name>admin</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus>+ recorded_at: Tue, 23 Apr 2024 13:36:36 GMT- request:method: deleteuri: https://nextcloud.local/remote.php/dav/files/admin/To%20Be%20Deleted%20Soon@@ -100,7 +197,7 @@ http_interactions:Content-Security-Policy:- default-src 'none';Date:- - Mon, 22 Apr 2024 09:14:21 GMT+ - Tue, 23 Apr 2024 13:36:36 GMTExpires:- Thu, 19 Nov 1981 08:52:00 GMTPragma:@@ -110,24 +207,24 @@ http_interactions:Server:- Apache/2.4.57 (Debian)Set-Cookie:- - ocirabgzify6=a8f871f41dd15b68fcca3cb9827c5be6; path=/; secure; HttpOnly; SameSite=Lax,- oc_sessionPassphrase=lEjUBSTFPgOOsY3iAT8tNgqajjOG%2BqFO4bksX2tce%2B%2F28OI5s9t9biAZ8DEbuYtaBbHniSKWwrT9wbTKDXaBQpu9LZqT6OSAWrAhlKleGagKwWMtumFEcQmw1pPGl5sz;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=a8f871f41dd15b68fcca3cb9827c5be6;+ - ocirabgzify6=6335b52c313d175b153e500e83ffbd56; path=/; secure; HttpOnly; SameSite=Lax,+ oc_sessionPassphrase=6oL%2BK01S%2BXYDcD052qo3wdh0G0dD%2FMmMgcdquwnxsZf8OKNjMPus5wm%2FhSglZX%2FZH%2FKCrxzlZ%2FaSw2AnY%2B1BlTddMctfhE245BP4ofFwGj787fqwKE4hHI3Gl2iRW1GW;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=6335b52c313d175b153e500e83ffbd56;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, ocirabgzify6=a8f871f41dd15b68fcca3cb9827c5be6;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=a8f871f41dd15b68fcca3cb9827c5be6;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=a8f871f41dd15b68fcca3cb9827c5be6;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=a8f871f41dd15b68fcca3cb9827c5be6;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=a8f871f41dd15b68fcca3cb9827c5be6;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=a8f871f41dd15b68fcca3cb9827c5be6;- path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=a8f871f41dd15b68fcca3cb9827c5be6;+ 31-Dec-2100 23:59:59 GMT; SameSite=strict, ocirabgzify6=6335b52c313d175b153e500e83ffbd56;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=6335b52c313d175b153e500e83ffbd56;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=6335b52c313d175b153e500e83ffbd56;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=6335b52c313d175b153e500e83ffbd56;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=6335b52c313d175b153e500e83ffbd56;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=6335b52c313d175b153e500e83ffbd56;+ path=/; secure; HttpOnly; SameSite=Lax, ocirabgzify6=6335b52c313d175b153e500e83ffbd56;path=/; secure; HttpOnly; SameSite=LaxX-Content-Type-Options:- nosniffX-Debug-Token:- - cj36skzpndysxquimX7O+ - 9aN5vpkDdzT1aLqCkCdtX-Frame-Options:- SAMEORIGINX-Permitted-Cross-Domain-Policies:@@ -135,7 +232,7 @@ http_interactions:X-Powered-By:- PHP/8.2.16X-Request-Id:- - cj36skzpndysxquimX7O+ - 9aN5vpkDdzT1aLqCkCdtX-Robots-Tag:- noindex, nofollowX-Xss-Protection:@@ -143,5 +240,5 @@ http_interactions:body:encoding: UTF-8string: ''- recorded_at: Mon, 22 Apr 2024 09:14:21 GMT+ recorded_at: Tue, 23 Apr 2024 13:36:36 GMTrecorded_with: VCR 6.2.0