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
[chore] Refactor nextcloud files query spec to vcr
Eric Schubert33cd86e32575
diff --git a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/files_query.rb b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/files_query.rbindex f772fae7bd2..cf33c90830d 100644--- a/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/files_query.rb+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/nextcloud/files_query.rb@@ -37,7 +37,6 @@ module Storages::Peripherals::StorageInteraction::Nextcloudnew(storage).call(user:, folder:)end- # rubocop:disable Metrics/AbcSizedef call(user:, folder:)result = Util.token(user:, configuration: @configuration) do |token|base_path = Util.join_uri_path(@uri.path, "remote.php/dav/files")@@ -52,25 +51,29 @@ module Storages::Peripherals::StorageInteraction::Nextcloud})- case response- when Net::HTTPSuccess- ServiceResult.success(result: response.body)- when Net::HTTPNotFound- Util.error(:not_found)- when Net::HTTPUnauthorized- Util.error(:unauthorized)- else- Util.error(:error)- end+ handle_response(response)endstorage_files(result)end- # rubocop:enable Metrics/AbcSize-private+ def handle_response(response)+ error_data = Storages::StorageErrorData.new(source: self, payload: response)++ case response+ when Net::HTTPSuccess+ ServiceResult.success(result: response.body)+ when Net::HTTPNotFound+ Util.error(:not_found, 'Outbound request destination not found', error_data)+ when Net::HTTPUnauthorized+ Util.error(:unauthorized, 'Outbound request not authorized', error_data)+ else+ Util.error(:error, 'Outbound request failed', error_data)+ end+ end+def requested_folder(folder)return '' if folder.root?@@ -132,7 +135,7 @@ module Storages::Peripherals::StorageInteraction::Nextcloudenddef name(location)- location == '/' ? location : CGI.unescape(location.split('/').last)+ location == '/' ? 'Root' : CGI.unescape(location.split('/').last)enddef storage_file(file_element)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 98ff4eb6c45..55b29a50606 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@@ -65,7 +65,11 @@ module Storages::Peripherals::StorageInteraction::Nextcloud::Utilon_success: ->(token) doconnection_manager.request_with_token_refresh(token) { yield token }end,- on_failure: ->(_) { error(:unauthorized, 'Query could not be created! No access token found!') }+ on_failure: ->(_) do+ error(:unauthorized,+ 'Query could not be created! No access token found!',+ Storages::StorageErrorData.new(source: connection_manager))+ end)enddiff --git a/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/files_query_spec.rb b/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/files_query_spec.rbindex fc45148bcba..3a6de17590b 100644--- a/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/files_query_spec.rb+++ b/modules/storages/spec/common/storages/peripherals/storage_interaction/nextcloud/files_query_spec.rb@@ -31,131 +31,199 @@require 'spec_helper'require_module_spec_helper-RSpec.describe Storages::Peripherals::StorageInteraction::Nextcloud::FilesQuery, :webmock do- let(:storage) { create(:nextcloud_storage, :with_oauth_client) }- let(:folder) { Storages::Peripherals::ParentFolder.new('/') }- let(:user) { create(:user) }- let(:token) do- create(:oauth_client_token, user:, oauth_client: storage.oauth_client, origin_user_id: 'darth@vader with spaces')- end-- let(:origin_user_id) { 'darth@vader with spaces' }- let(:webdav_success_response) { create(:webdav_data, parent_path: '', root_path: '', origin_user_id:) }-- subject(:files_query) { described_class }-- before do- uri = "#{storage.host}/remote.php/dav/files/darth@vader%20with%20spaces/"- allow(Storages::Peripherals::StorageInteraction::Nextcloud::Util).to receive(:token).and_yield(token)- stub_request(:propfind, uri).to_return(status: 207, body: webdav_success_response, headers: {})- end-- it '.call requires 3 arguments: storage, user, and folder' do- expect(described_class).to respond_to(:call)-- method = described_class.method(:call)- expect(method.parameters).to contain_exactly(%i[keyreq storage], %i[keyreq user], %i[keyreq folder])- end-- it 'returns a list of files and folders' do- storage_files = files_query.call(storage:, folder:, user:).result- expect(storage_files).to be_a(Storages::StorageFiles)+RSpec.describe Storages::Peripherals::StorageInteraction::Nextcloud::FilesQuery, :vcr, :webmock do+ using Storages::Peripherals::ServiceResultRefinements- expect(storage_files.files.size).to eq(4)- expect(storage_files.ancestors.size).to eq(0)- expect(storage_files.parent.location).to eq('/')-- mime_types = storage_files.files.map(&:mime_type).uniq!-- expect(mime_types).to include('application/pdf') # file- expect(mime_types).to include('application/x-op-directory') # folder- end-- it 'returns permissions for each' do- storage_files = files_query.call(storage:, folder:, user:).result-- writeable_folder = storage_files.files.find { |file| file.mime_type == 'application/x-op-directory' }- expect(writeable_folder.permissions).to match_array(%i[readable writeable])-- readonly_file = storage_files.files.find { |file| file.mime_type == 'application/pdf' }- expect(readonly_file.permissions).to match_array(%i[readable])+ let(:user) { create(:user) }+ let(:storage) do+ create(:nextcloud_storage_with_local_connection, :as_not_automatically_managed, oauth_client_token_user: user)end+ let(:folder) { Storages::Peripherals::ParentFolder.new('/') }- context 'when requesting a sub-folder' do- let(:folder) { Storages::Peripherals::ParentFolder.new('/Photos/Birds') }- let(:webdav_subfolder_success_response) { create(:webdav_data, parent_path: folder.path, root_path: '', origin_user_id:) }+ describe '#call' do+ it 'responds with correct parameters' do+ expect(described_class).to respond_to(:call)- before do- uri = "#{storage.host}/remote.php/dav/files/darth@vader%20with%20spaces#{folder.path}"- stub_request(:propfind, uri).to_return(status: 207, body: webdav_subfolder_success_response, headers: {})+ method = described_class.method(:call)+ expect(method.parameters).to contain_exactly(%i[keyreq storage], %i[keyreq user], %i[keyreq folder])end- subject(:query_result) { files_query.call(user:, storage:, folder:).result }-- it 'returns 2 ancestors' do- ancestors = query_result.ancestors+ context 'with outbound requests successful' do+ context 'with parent folder being root', vcr: 'nextcloud/files_query_root' do+ # rubocop:disable RSpec/ExampleLength+ it 'returns a StorageFiles object for root' do+ storage_files = described_class.call(storage:, user:, folder:).result++ expect(storage_files).to be_a(Storages::StorageFiles)+ expect(storage_files.ancestors).to be_empty+ expect(storage_files.parent.name).to eq("Root")++ expect(storage_files.files.size).to eq(10)+ expect(storage_files.files[0].to_h)+ .to eq({+ id: '45',+ name: 'Documents',+ size: 1107988,+ created_at: nil,+ created_by_name: 'admin',+ last_modified_at: '2023-10-16T13:26:30Z',+ last_modified_by_name: nil,+ location: '/Documents',+ mime_type: 'application/x-op-directory',+ permissions: %i[readable writeable]+ })+ expect(storage_files.files[6].to_h)+ .to eq({+ id: '52',+ name: 'Reasons to use Nextcloud.pdf',+ size: 976625,+ created_at: nil,+ created_by_name: 'admin',+ last_modified_at: '2023-07-27T13:30:24Z',+ last_modified_by_name: nil,+ location: '/Reasons%20to%20use%20Nextcloud.pdf',+ mime_type: 'application/pdf',+ permissions: %i[readable writeable]+ })+ expect(storage_files.files[5].to_h)+ .to eq({+ id: '713',+ name: 'Readme.md',+ size: 554,+ created_at: nil,+ created_by_name: 'admin',+ last_modified_at: '2023-11-28T14:29:59Z',+ last_modified_by_name: nil,+ location: '/Readme.md',+ mime_type: 'text/markdown',+ permissions: %i[readable writeable]+ })+ end+ # rubocop:enable RSpec/ExampleLength+ end- expect(ancestors.size).to eq(2)- expect(ancestors.map(&:location)).to match_array(%w[/ /Photos])- expect(ancestors.map(&:name)).to match_array(%w[/ Photos])- end+ context 'with a given parent folder', vcr: 'nextcloud/files_query_parent_folder' do+ let(:folder) { Storages::Peripherals::ParentFolder.new('/Documents/New Requests') }++ subject do+ described_class.call(storage:, user:, folder:).result+ end++ # rubocop:disable RSpec/ExampleLength+ it 'returns the files content' do+ expect(subject.files.size).to eq(2)+ expect(subject.files.map(&:to_h))+ .to eq([+ {+ id: '738',+ name: 'request_001.md',+ size: 16,+ created_at: nil,+ created_by_name: 'admin',+ last_modified_at: '2023-11-28T14:39:34Z',+ last_modified_by_name: nil,+ location: '/Documents/New%20Requests/request_001.md',+ mime_type: 'text/markdown',+ permissions: %i[readable writeable]+ }, {+ id: '740',+ name: 'request_002.md',+ size: 19,+ created_at: nil,+ created_by_name: 'admin',+ last_modified_at: '2023-11-28T14:39:58Z',+ last_modified_by_name: nil,+ location: '/Documents/New%20Requests/request_002.md',+ mime_type: 'text/markdown',+ permissions: %i[readable writeable]+ }+ ])+ end+ # rubocop:enable RSpec/ExampleLength++ it 'returns ancestors with a forged id' do+ expect(subject.ancestors.map { |a| { id: a.id, name: a.name, location: a.location } })+ .to eq([+ {+ id: '8a5edab282632443219e051e4ade2d1d5bbc671c781051bf1437897cbdfea0f1',+ name: 'Root',+ location: '/'+ }, {+ id: '4eb3246b9f5e1daf394b0ab4cfb9a640978465a028a6bf0d2ad561b7a815c8a1',+ name: 'Documents',+ location: '/Documents'+ }+ ])+ end++ it 'returns the parent itself' do+ expect(subject.parent.id).to eq('737')+ expect(subject.parent.name).to eq('New Requests')+ expect(subject.parent.location).to eq('/Documents/New%20Requests')+ end+ end- it 'returns the parent folder' do- expect(query_result.parent.name).to eq('Birds')- expect(query_result.parent.location).to eq('/Photos/Birds')- end+ context 'with parent folder being empty', vcr: 'nextcloud/files_query_empty_folder' do+ let(:folder) { Storages::Peripherals::ParentFolder.new('/Photos/todo') }- it 'lists the contents of the folder' do- expect(query_result.files).to all(be_a(Storages::StorageFile))- expect(query_result.files.size).to eq(4)- end+ it 'returns an empty StorageFiles object with parent and ancestors' do+ storage_files = described_class.call(storage:, user:, folder:).result- it 'the files "location" include the entire path and the file name' do- expect(query_result.files.last.location).to eq("/Photos/Birds/Manual.pdf")+ expect(storage_files).to be_a(Storages::StorageFiles)+ expect(storage_files.files).to be_empty+ expect(storage_files.parent.id).to eq('760')+ expect(storage_files.ancestors.map(&:name)).to eq(%w[Root Photos])+ end+ endend- end- context 'when the storage runs on a subfolder' do- let(:storage) { create(:nextcloud_storage, :with_oauth_client, host: 'https://example.com/death_star_blueprints') }+ context 'with not existent parent folder', vcr: 'nextcloud/files_query_invalid_parent' do+ let(:folder) { Storages::Peripherals::ParentFolder.new('/I/just/made/that/up') }- it 'just works' do- storage_files = files_query.call(storage:, user:, folder:)+ it 'must return not found' do+ result = described_class.call(storage:, user:, folder:)+ expect(result).to be_failure+ expect(result.error_source).to be_a(described_class)- expect(storage_files).to be_success+ result.match(+ on_failure: ->(error) { expect(error.code).to eq(:not_found) },+ on_success: ->(file_infos) { fail "Expected failure, got #{file_infos}" }+ )+ endend- end- describe 'with missing OAuth token' do- before do- allow(Storages::Peripherals::StorageInteraction::Nextcloud::Util)- .to receive(:token)- .and_return(ServiceResult.failure(result: :unauthorized,- errors: Storages::StorageError.new(code: :unauthorized)))- end+ context 'with invalid oauth token', vcr: 'nextcloud/files_query_invalid_token' do+ before do+ token = build_stubbed(:oauth_client_token, oauth_client: storage.oauth_client)+ allow(Storages::Peripherals::StorageInteraction::Nextcloud::Util)+ .to receive(:token).and_yield(token)+ end- it 'returns an ":unauthorized" ServiceResult' do- result = files_query.call(folder:, user:, storage:)- expect(result).to be_failure- expect(result.errors.code).to be(:unauthorized)- end- end+ it 'must return unauthorized' do+ result = described_class.call(storage:, user:, folder:)+ expect(result).to be_failure+ expect(result.error_source).to be_a(described_class)- shared_examples_for 'outbound is failing' do |code = 500, symbol = :error|- describe "with outbound request returning #{code}" do- before do- uri = "#{storage.host}/remote.php/dav/files/darth@vader%20with%20spaces/"- stub_request(:propfind, uri).to_return(status: code)+ result.match(+ on_failure: ->(error) { expect(error.code).to eq(:unauthorized) },+ on_success: ->(file_infos) { fail "Expected failure, got #{file_infos}" }+ )end+ end++ context 'with not existent oauth token' do+ let(:user_without_token) { create(:user) }- it "must return :#{symbol} ServiceResult" do- result = files_query.call(folder:, user:, storage:)+ it 'must return unauthorized' do+ result = described_class.call(storage:, user: user_without_token, folder:)expect(result).to be_failure- expect(result.errors.code).to be(symbol)+ expect(result.error_source).to be_a(OAuthClients::ConnectionManager)++ result.match(+ on_failure: ->(error) { expect(error.code).to eq(:unauthorized) },+ on_success: ->(file_infos) { fail "Expected failure, got #{file_infos}" }+ )endendend-- include_examples 'outbound is failing', 404, :not_found- include_examples 'outbound is failing', 401, :unauthorized- include_examples 'outbound is failing', 500, :errorenddiff --git a/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/files_query_spec.rb b/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/files_query_spec.rbindex c2008e4f4e7..19e798ac7d2 100644--- a/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/files_query_spec.rb+++ b/modules/storages/spec/common/storages/peripherals/storage_interaction/one_drive/files_query_spec.rb@@ -47,7 +47,7 @@ RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::FilesQuery,endcontext 'with outbound requests successful' do- context 'with parent folder being nil', vcr: 'one_drive/files_query_root' do+ context 'with parent folder being root', vcr: 'one_drive/files_query_root' do# rubocop:disable RSpec/ExampleLengthit 'returns a StorageFiles object for root' dostorage_files = described_class.call(storage:, user:, folder:).result@@ -192,7 +192,7 @@ RSpec.describe Storages::Peripherals::StorageInteraction::OneDrive::FilesQuery,context 'with not existent parent folder', vcr: 'one_drive/files_query_invalid_parent' dolet(:folder) { Storages::Peripherals::ParentFolder.new('/I/just/made/that/up') }- it 'must return unauthorized' do+ it 'must return not found' doresult = described_class.call(storage:, user:, folder:)expect(result).to be_failureexpect(result.error_source).to be_a(described_class)diff --git a/modules/storages/spec/factories/storage_factory.rb b/modules/storages/spec/factories/storage_factory.rbindex 7e1b1e445a8..87179d64652 100644--- a/modules/storages/spec/factories/storage_factory.rb+++ b/modules/storages/spec/factories/storage_factory.rb@@ -74,7 +74,7 @@ FactoryBot.define doendname { 'Nextcloud Local' }- host { 'https://nextcloud.local' }+ host { ENV.fetch('NEXTCLOUD_LOCAL_HOST', 'https://nextcloud.local') }initialize_with doStorages::NextcloudStorage.create_or_find_by(attributes.except(:oauth_client, :oauth_application))diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_empty_folder.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_empty_folder.ymlnew file mode 100644index 00000000000..12e5d338c9c--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_empty_folder.yml@@ -0,0 +1,108 @@+---+http_interactions:+- request:+ method: propfind+ uri: https://nextcloud-sub.local/html/remote.php/dav/files/admin/Photos/todo+ 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:getcontenttype/>+ <d:getlastmodified/>+ <oc:permissions/>+ <oc:owner-display-name/>+ </d:prop>+ </d:propfind>+ headers:+ Depth:+ - '1'+ Authorization:+ - Bearer <ACCESS_TOKEN>+ Accept-Encoding:+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3+ Accept:+ - "*/*"+ User-Agent:+ - Ruby+ response:+ status:+ code: 207+ message: Multi-Status+ headers:+ Cache-Control:+ - no-store, no-cache, must-revalidate+ Content-Length:+ - '646'+ Content-Security-Policy:+ - default-src 'none';+ Content-Type:+ - application/xml; charset=utf-8+ Date:+ - Tue, 28 Nov 2023 14:48:45 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.56 (Debian)+ Set-Cookie:+ - nc_sameSiteCookielax=true; path=/html; httponly;secure; expires=Fri, 31-Dec-2100+ 23:59:59 GMT; SameSite=lax+ - nc_sameSiteCookiestrict=true; path=/html; httponly;secure; expires=Fri, 31-Dec-2100+ 23:59:59 GMT; SameSite=strict+ - oc832qmuhv8d=9cdbabaa40830fe8626473e57057cce0; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=e2b1e083784e589483fa13295c69fc1e; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=e2b1e083784e589483fa13295c69fc1e; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=e2b1e083784e589483fa13295c69fc1e; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=e2b1e083784e589483fa13295c69fc1e; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=e2b1e083784e589483fa13295c69fc1e; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=e2b1e083784e589483fa13295c69fc1e; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=e2b1e083784e589483fa13295c69fc1e; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=e2b1e083784e589483fa13295c69fc1e; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=e2b1e083784e589483fa13295c69fc1e; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc_sessionPassphrase=beSPWmx0Am%2BxbGDr5nGo5tGCEa5mhWMKTbvUNK%2FeEd%2F6FrvSfseZbFB1sdAFDZ1fau37ETJAJa7Wk%2BsDDdGLSw%2FZUJ1SvYeeJNhAkEdkU3NUlg3Gv68Wnn%2Fbr%2FIVZIqs;+ path=/html; secure; HttpOnly; SameSite=Lax+ Vary:+ - Brief,Prefer+ X-Content-Type-Options:+ - nosniff+ X-Debug-Token:+ - Mu2VZo0F0xAb60zJ4tgI+ X-Frame-Options:+ - SAMEORIGIN+ X-Permitted-Cross-Domain-Policies:+ - none+ X-Powered-By:+ - PHP/8.2.8+ X-Request-Id:+ - Mu2VZo0F0xAb60zJ4tgI+ X-Robots-Tag:+ - noindex, nofollow+ X-Xss-Protection:+ - 1; mode=block+ 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>/html/remote.php/dav/files/admin/Photos/todo/</d:href><d:propstat><d:prop><oc:fileid>760</oc:fileid><oc:size>0</oc:size><d:getlastmodified>Tue, 28 Nov 2023 14:48:01 GMT</d:getlastmodified><oc:permissions>RGDNVCK</oc:permissions><oc:owner-display-name>admin</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response></d:multistatus>+ recorded_at: Tue, 28 Nov 2023 14:48:45 GMT+recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_invalid_parent.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_invalid_parent.ymlnew file mode 100644index 00000000000..50aef5bf6d3--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_invalid_parent.yml@@ -0,0 +1,107 @@+---+http_interactions:+- request:+ method: propfind+ uri: https://nextcloud-sub.local/html/remote.php/dav/files/admin/I/just/made/that/up+ 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:getcontenttype/>+ <d:getlastmodified/>+ <oc:permissions/>+ <oc:owner-display-name/>+ </d:prop>+ </d:propfind>+ headers:+ Depth:+ - '1'+ Authorization:+ - Bearer <ACCESS_TOKEN>+ Accept-Encoding:+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3+ Accept:+ - "*/*"+ User-Agent:+ - Ruby+ response:+ status:+ code: 404+ message: Not Found+ headers:+ Cache-Control:+ - no-store, no-cache, must-revalidate+ Content-Length:+ - '231'+ Content-Security-Policy:+ - default-src 'none';+ Content-Type:+ - application/xml; charset=utf-8+ Date:+ - Tue, 28 Nov 2023 14:12:42 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.56 (Debian)+ Set-Cookie:+ - nc_sameSiteCookielax=true; path=/html; httponly;secure; expires=Fri, 31-Dec-2100+ 23:59:59 GMT; SameSite=lax+ - nc_sameSiteCookiestrict=true; path=/html; httponly;secure; expires=Fri, 31-Dec-2100+ 23:59:59 GMT; SameSite=strict+ - oc832qmuhv8d=84b188a214c8bc1fbdb76f5742b14e22; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=9a7f5cbefe7220045783b5bc96975817; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=9a7f5cbefe7220045783b5bc96975817; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=9a7f5cbefe7220045783b5bc96975817; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=9a7f5cbefe7220045783b5bc96975817; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=9a7f5cbefe7220045783b5bc96975817; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=9a7f5cbefe7220045783b5bc96975817; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=9a7f5cbefe7220045783b5bc96975817; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=9a7f5cbefe7220045783b5bc96975817; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=9a7f5cbefe7220045783b5bc96975817; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc_sessionPassphrase=K%2BYrdVtRKepSWS2lqZw3cohZVH3XCYg6AMQVUTC7LGj085dE%2Bk5YDuEpd5CoDe4OFV3MANEe%2FL0qcYqgffEansXbupSIxmDUDbTQ4g4ZlUOEWCMvq6xZsmruRp%2F1QAhl;+ path=/html; secure; HttpOnly; SameSite=Lax+ Vary:+ - Brief,Prefer+ X-Content-Type-Options:+ - nosniff+ X-Frame-Options:+ - SAMEORIGIN+ X-Permitted-Cross-Domain-Policies:+ - none+ X-Powered-By:+ - PHP/8.2.8+ X-Robots-Tag:+ - noindex, nofollow+ X-Xss-Protection:+ - 1; mode=block+ body:+ encoding: UTF-8+ string: |+ <?xml version="1.0" encoding="utf-8"?>+ <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">+ <s:exception>Sabre\DAV\Exception\NotFound</s:exception>+ <s:message>File with name //I could not be located</s:message>+ </d:error>+ recorded_at: Tue, 28 Nov 2023 14:12:42 GMT+recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_invalid_token.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_invalid_token.ymlnew file mode 100644index 00000000000..4152d80645f--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_invalid_token.yml@@ -0,0 +1,92 @@+---+http_interactions:+- request:+ method: propfind+ uri: https://nextcloud-sub.local/html/remote.php/dav/files/admin/+ 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:getcontenttype/>+ <d:getlastmodified/>+ <oc:permissions/>+ <oc:owner-display-name/>+ </d:prop>+ </d:propfind>+ headers:+ Depth:+ - '1'+ Authorization:+ - Bearer 1234567890-1+ Accept-Encoding:+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3+ Accept:+ - "*/*"+ User-Agent:+ - Ruby+ response:+ status:+ code: 401+ message: Unauthorized+ headers:+ Cache-Control:+ - no-store, no-cache, must-revalidate+ Content-Length:+ - '476'+ Content-Security-Policy:+ - default-src 'none';+ Content-Type:+ - application/xml; charset=utf-8+ Date:+ - Tue, 28 Nov 2023 14:02:54 GMT+ Expires:+ - Thu, 19 Nov 1981 08:52:00 GMT+ Pragma:+ - no-cache+ Referrer-Policy:+ - no-referrer+ Server:+ - Apache/2.4.56 (Debian)+ Set-Cookie:+ - nc_sameSiteCookielax=true; path=/html; httponly;secure; expires=Fri, 31-Dec-2100+ 23:59:59 GMT; SameSite=lax+ - nc_sameSiteCookiestrict=true; path=/html; httponly;secure; expires=Fri, 31-Dec-2100+ 23:59:59 GMT; SameSite=strict+ - oc832qmuhv8d=0ea46bd4c95a5ee5d9de30ec26c609bb; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=0ea46bd4c95a5ee5d9de30ec26c609bb; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=0ea46bd4c95a5ee5d9de30ec26c609bb; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=bf6c4795c04a55fb3a9ce522ff241dd9; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc_sessionPassphrase=kLV%2BQwn3MxcGgIjFhjqZ%2Ba2L0xMFmbP1WwGl59f0lUIryai3aRYjtkV1Y%2FUL3vBq8XBHzPfwSWcI3c%2FvvXMa%2B7ZiyalMEviDdsNNEW9u308irZAUgLgzB7oOybZ%2B%2FY0W;+ path=/html; secure; HttpOnly; SameSite=Lax+ Www-Authenticate:+ - Basic realm="Nextcloud", charset="UTF-8"+ X-Content-Type-Options:+ - nosniff+ X-Frame-Options:+ - SAMEORIGIN+ X-Permitted-Cross-Domain-Policies:+ - none+ X-Powered-By:+ - PHP/8.2.8+ X-Robots-Tag:+ - noindex, nofollow+ X-Xss-Protection:+ - 1; mode=block+ body:+ encoding: UTF-8+ string: |+ <?xml version="1.0" encoding="utf-8"?>+ <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">+ <s:exception>Sabre\DAV\Exception\NotAuthenticated</s:exception>+ <s:message>No public access to this resource., No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, Bearer token was incorrect, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured</s:message>+ </d:error>+ recorded_at: Tue, 28 Nov 2023 14:02:54 GMT+recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_parent_folder.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_parent_folder.ymlnew file mode 100644index 00000000000..3d4f1174b1c--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_parent_folder.yml@@ -0,0 +1,108 @@+---+http_interactions:+- request:+ method: propfind+ uri: https://nextcloud-sub.local/html/remote.php/dav/files/admin/Documents/New%20Requests+ 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:getcontenttype/>+ <d:getlastmodified/>+ <oc:permissions/>+ <oc:owner-display-name/>+ </d:prop>+ </d:propfind>+ headers:+ Depth:+ - '1'+ Authorization:+ - Bearer <ACCESS_TOKEN>+ Accept-Encoding:+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3+ Accept:+ - "*/*"+ User-Agent:+ - Ruby+ response:+ status:+ code: 207+ message: Multi-Status+ headers:+ Cache-Control:+ - no-store, no-cache, must-revalidate+ Content-Length:+ - '1556'+ Content-Security-Policy:+ - default-src 'none';+ Content-Type:+ - application/xml; charset=utf-8+ Date:+ - Tue, 28 Nov 2023 14:42:47 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.56 (Debian)+ Set-Cookie:+ - nc_sameSiteCookielax=true; path=/html; httponly;secure; expires=Fri, 31-Dec-2100+ 23:59:59 GMT; SameSite=lax+ - nc_sameSiteCookiestrict=true; path=/html; httponly;secure; expires=Fri, 31-Dec-2100+ 23:59:59 GMT; SameSite=strict+ - oc832qmuhv8d=08548d6fc7a3ddf915a5734d8bbaca36; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=08548d6fc7a3ddf915a5734d8bbaca36; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=08548d6fc7a3ddf915a5734d8bbaca36; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=08548d6fc7a3ddf915a5734d8bbaca36; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=08548d6fc7a3ddf915a5734d8bbaca36; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=08548d6fc7a3ddf915a5734d8bbaca36; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=08548d6fc7a3ddf915a5734d8bbaca36; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=08548d6fc7a3ddf915a5734d8bbaca36; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=08548d6fc7a3ddf915a5734d8bbaca36; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=2ea07ff7a2dce07f1f5cceb53d519bf7; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc_sessionPassphrase=%2BTiwB1hoNR1qBaSd3FwP3e%2B0N464jtcL5rxrmOMJTzaBr8drLsmiOQqc71VAjy8MzFtYPaP7HvvITNQnimloRoMLnSCTMo%2FSPllXUQ6oIy9%2BT0zu%2BtXQ1rv5mWg%2F6Oyl;+ path=/html; secure; HttpOnly; SameSite=Lax+ Vary:+ - Brief,Prefer+ X-Content-Type-Options:+ - nosniff+ X-Debug-Token:+ - ABf8Ml48dBqqobMTI5Jy+ X-Frame-Options:+ - SAMEORIGIN+ X-Permitted-Cross-Domain-Policies:+ - none+ X-Powered-By:+ - PHP/8.2.8+ X-Request-Id:+ - ABf8Ml48dBqqobMTI5Jy+ X-Robots-Tag:+ - noindex, nofollow+ X-Xss-Protection:+ - 1; mode=block+ 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>/html/remote.php/dav/files/admin/Documents/New%20Requests/</d:href><d:propstat><d:prop><oc:fileid>737</oc:fileid><oc:size>35</oc:size><d:getlastmodified>Tue, 28 Nov 2023 14:39:58 GMT</d:getlastmodified><oc:permissions>RGDNVCK</oc:permissions><oc:owner-display-name>admin</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/html/remote.php/dav/files/admin/Documents/New%20Requests/request_001.md</d:href><d:propstat><d:prop><oc:fileid>738</oc:fileid><oc:size>16</oc:size><d:getcontenttype>text/markdown</d:getcontenttype><d:getlastmodified>Tue, 28 Nov 2023 14:39:34 GMT</d:getlastmodified><oc:permissions>RGDNVW</oc:permissions><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:response><d:href>/html/remote.php/dav/files/admin/Documents/New%20Requests/request_002.md</d:href><d:propstat><d:prop><oc:fileid>740</oc:fileid><oc:size>19</oc:size><d:getcontenttype>text/markdown</d:getcontenttype><d:getlastmodified>Tue, 28 Nov 2023 14:39:58 GMT</d:getlastmodified><oc:permissions>RGDNVW</oc:permissions><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, 28 Nov 2023 14:42:47 GMT+recorded_with: VCR 6.2.0diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_root.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_root.ymlnew file mode 100644index 00000000000..6579f26335b--- /dev/null+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/nextcloud/files_query_root.yml@@ -0,0 +1,108 @@+---+http_interactions:+- request:+ method: propfind+ uri: https://nextcloud-sub.local/html/remote.php/dav/files/admin/+ 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:getcontenttype/>+ <d:getlastmodified/>+ <oc:permissions/>+ <oc:owner-display-name/>+ </d:prop>+ </d:propfind>+ headers:+ Depth:+ - '1'+ Authorization:+ - Bearer <ACCESS_TOKEN>+ Accept-Encoding:+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3+ Accept:+ - "*/*"+ User-Agent:+ - Ruby+ response:+ status:+ code: 207+ message: Multi-Status+ headers:+ Cache-Control:+ - no-store, no-cache, must-revalidate+ Content-Length:+ - '5136'+ Content-Security-Policy:+ - default-src 'none';+ Content-Type:+ - application/xml; charset=utf-8+ Date:+ - Tue, 28 Nov 2023 14:30:34 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.56 (Debian)+ Set-Cookie:+ - nc_sameSiteCookielax=true; path=/html; httponly;secure; expires=Fri, 31-Dec-2100+ 23:59:59 GMT; SameSite=lax+ - nc_sameSiteCookiestrict=true; path=/html; httponly;secure; expires=Fri, 31-Dec-2100+ 23:59:59 GMT; SameSite=strict+ - oc832qmuhv8d=35ba41621a0306dce7c58ce4596df4ff; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=35ba41621a0306dce7c58ce4596df4ff; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=35ba41621a0306dce7c58ce4596df4ff; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=35ba41621a0306dce7c58ce4596df4ff; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=35ba41621a0306dce7c58ce4596df4ff; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=35ba41621a0306dce7c58ce4596df4ff; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=35ba41621a0306dce7c58ce4596df4ff; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=35ba41621a0306dce7c58ce4596df4ff; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=35ba41621a0306dce7c58ce4596df4ff; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc832qmuhv8d=603e568193fcac992537f468ef89f5d0; path=/html; secure; HttpOnly;+ SameSite=Lax+ - oc_sessionPassphrase=6sF77FqHYcr0DbdX0yYf%2BdyhYPR4uUw0mDTpX1znBTIPuynjhNLc9ALsrVthjvvEzyIOWJAsVb6tFifGTPIPxhhJH3yCEQkd%2FXEdRobmTpuKxRxa6HCtXYabSh9sfWcs;+ path=/html; secure; HttpOnly; SameSite=Lax+ Vary:+ - Brief,Prefer+ X-Content-Type-Options:+ - nosniff+ X-Debug-Token:+ - GJwtlCYkKBZ23cIsoJsa+ X-Frame-Options:+ - SAMEORIGIN+ X-Permitted-Cross-Domain-Policies:+ - none+ X-Powered-By:+ - PHP/8.2.8+ X-Request-Id:+ - GJwtlCYkKBZ23cIsoJsa+ X-Robots-Tag:+ - noindex, nofollow+ X-Xss-Protection:+ - 1; mode=block+ 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>/html/remote.php/dav/files/admin/</d:href><d:propstat><d:prop><oc:fileid>2</oc:fileid><oc:size>192581767</oc:size><d:getlastmodified>Tue, 28 Nov 2023 14:29:59 GMT</d:getlastmodified><oc:permissions>RGDNVCK</oc:permissions><oc:owner-display-name>admin</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/html/remote.php/dav/files/admin/Documents/</d:href><d:propstat><d:prop><oc:fileid>45</oc:fileid><oc:size>1107988</oc:size><d:getlastmodified>Mon, 16 Oct 2023 13:26:30 GMT</d:getlastmodified><oc:permissions>RGDNVCK</oc:permissions><oc:owner-display-name>admin</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/html/remote.php/dav/files/admin/Nextcloud%20intro.mp4</d:href><d:propstat><d:prop><oc:fileid>43</oc:fileid><oc:size>3963036</oc:size><d:getcontenttype>video/mp4</d:getcontenttype><d:getlastmodified>Thu, 27 Jul 2023 13:30:24 GMT</d:getlastmodified><oc:permissions>RGDNVW</oc:permissions><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:response><d:href>/html/remote.php/dav/files/admin/Nextcloud%20Manual.pdf</d:href><d:propstat><d:prop><oc:fileid>50</oc:fileid><oc:size>15181180</oc:size><d:getcontenttype>application/pdf</d:getcontenttype><d:getlastmodified>Thu, 27 Jul 2023 13:30:24 GMT</d:getlastmodified><oc:permissions>RGDNVW</oc:permissions><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:response><d:href>/html/remote.php/dav/files/admin/Nextcloud.png</d:href><d:propstat><d:prop><oc:fileid>51</oc:fileid><oc:size>50598</oc:size><d:getcontenttype>image/png</d:getcontenttype><d:getlastmodified>Thu, 27 Jul 2023 13:30:24 GMT</d:getlastmodified><oc:permissions>RGDNVW</oc:permissions><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:response><d:href>/html/remote.php/dav/files/admin/Photos/</d:href><d:propstat><d:prop><oc:fileid>33</oc:fileid><oc:size>5656463</oc:size><d:getlastmodified>Thu, 27 Jul 2023 13:30:24 GMT</d:getlastmodified><oc:permissions>RGDNVCK</oc:permissions><oc:owner-display-name>admin</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/html/remote.php/dav/files/admin/Readme.md</d:href><d:propstat><d:prop><oc:fileid>713</oc:fileid><oc:size>554</oc:size><d:getcontenttype>text/markdown</d:getcontenttype><d:getlastmodified>Tue, 28 Nov 2023 14:29:59 GMT</d:getlastmodified><oc:permissions>RGDNVW</oc:permissions><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:response><d:href>/html/remote.php/dav/files/admin/Reasons%20to%20use%20Nextcloud.pdf</d:href><d:propstat><d:prop><oc:fileid>52</oc:fileid><oc:size>976625</oc:size><d:getcontenttype>application/pdf</d:getcontenttype><d:getlastmodified>Thu, 27 Jul 2023 13:30:24 GMT</d:getlastmodified><oc:permissions>RGDNVW</oc:permissions><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:response><d:href>/html/remote.php/dav/files/admin/Templates/</d:href><d:propstat><d:prop><oc:fileid>7</oc:fileid><oc:size>10721152</oc:size><d:getlastmodified>Thu, 27 Jul 2023 13:30:24 GMT</d:getlastmodified><oc:permissions>RGDNVCK</oc:permissions><oc:owner-display-name>admin</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/html/remote.php/dav/files/admin/Templates%20credits.md</d:href><d:propstat><d:prop><oc:fileid>44</oc:fileid><oc:size>2403</oc:size><d:getcontenttype>text/markdown</d:getcontenttype><d:getlastmodified>Thu, 27 Jul 2023 13:30:24 GMT</d:getlastmodified><oc:permissions>RGDNVW</oc:permissions><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:response><d:href>/html/remote.php/dav/files/admin/OpenProject/</d:href><d:propstat><d:prop><oc:fileid>174</oc:fileid><oc:size>154921768</oc:size><d:getlastmodified>Tue, 07 Nov 2023 13:38:22 GMT</d:getlastmodified><oc:permissions>MG</oc:permissions><oc:owner-display-name>admin</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response></d:multistatus>+ recorded_at: Tue, 28 Nov 2023 14:30:34 GMT+recorded_with: VCR 6.2.0