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

[#64190] added files info query for sharepoint

Eric Schubert295098f55f24
diff --git a/modules/storages/app/common/storages/adapters/providers/share_point/queries/files_info_query.rb b/modules/storages/app/common/storages/adapters/providers/share_point/queries/files_info_query.rb
new file mode 100644
index 00000000000..c8faa4be37d
--- /dev/null
+++ b/modules/storages/app/common/storages/adapters/providers/share_point/queries/files_info_query.rb
@@ -0,0 +1,71 @@
+# frozen_string_literal: true
+
+#-- copyright
+# OpenProject is an open source project management software.
+# Copyright (C) the OpenProject GmbH
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 3.
+#
+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+# Copyright (C) 2006-2013 Jean-Philippe Lang
+# Copyright (C) 2010-2013 the ChiliProject Team
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# See COPYRIGHT and LICENSE files for more details.
+#++
+
+module Storages
+ module Adapters
+ module Providers
+ module SharePoint
+ module Queries
+ class FilesInfoQuery < Base
+ def call(auth_strategy:, input_data:)
+ with_tagged_logger do
+ info "Retrieving file information for #{input_data.file_ids.join(', ')}"
+
+ infos = input_data.file_ids.map do |file_id|
+ Input::FileInfo.build(file_id:).bind do |file_data|
+ FileInfoQuery.call(storage: @storage, auth_strategy:, input_data: file_data).value_or do |failure|
+ return failure if failure.source.module_parent == Authentication
+
+ wrap_storage_file_error(file_data.file_id, failure)
+ end
+ end
+ end
+
+ Success(infos)
+ end
+ end
+
+ private
+
+ def wrap_storage_file_error(file_id, query_result)
+ split_identifier(file_id) => { location: }
+
+ Results::StorageFileInfo.new(
+ id: location.path,
+ status: query_result.code,
+ status_code: Rack::Utils::SYMBOL_TO_STATUS_CODE[query_result.code] || 500
+ )
+ end
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/modules/storages/spec/common/storages/adapters/providers/share_point/queries/files_info_query_spec.rb b/modules/storages/spec/common/storages/adapters/providers/share_point/queries/files_info_query_spec.rb
new file mode 100644
index 00000000000..c28f10918d1
--- /dev/null
+++ b/modules/storages/spec/common/storages/adapters/providers/share_point/queries/files_info_query_spec.rb
@@ -0,0 +1,169 @@
+# frozen_string_literal: true
+
+#-- copyright
+# OpenProject is an open source project management software.
+# Copyright (C) the OpenProject GmbH
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 3.
+#
+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+# Copyright (C) 2006-2013 Jean-Philippe Lang
+# Copyright (C) 2010-2013 the ChiliProject Team
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# See COPYRIGHT and LICENSE files for more details.
+#++
+
+require "spec_helper"
+require_module_spec_helper
+
+module Storages
+ module Adapters
+ module Providers
+ module SharePoint
+ module Queries
+ RSpec.describe FilesInfoQuery, :vcr, :webmock do
+ let(:user) { create(:user) }
+ let(:storage) { create(:share_point_storage, :sandbox, oauth_client_token_user: user) }
+ let(:auth_strategy) { Registry["share_point.authentication.user_bound"].call(user, storage) }
+ let(:input_data) { Input::FilesInfo.build(file_ids:).value! }
+
+ subject(:query) { described_class.new(storage) }
+
+ describe "#call" do
+ it "responds with correct parameters" do
+ expect(described_class).to respond_to(:call)
+
+ method = described_class.method(:call)
+ expect(method.parameters).to contain_exactly(%i[keyreq storage], %i[keyreq auth_strategy], %i[keyreq input_data])
+ end
+
+ context "without outbound request involved" do
+ context "with an empty array of file ids" do
+ let(:file_ids) { [] }
+
+ it "returns an empty array" do
+ result = query.call(auth_strategy:, input_data:)
+
+ expect(result).to be_success
+ expect(result.value!).to eq([])
+ end
+ end
+ end
+
+ context "with outbound requests successful", vcr: "share_point/files_info_query_success" do
+ let(:drive_id) { "b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw" }
+
+ context "with an array of file ids" do
+ let(:file_ids) do
+ %W[
+ #{drive_id}||01ANJ53WYLXAJW5PXSCJB2CFCD42UPDKMI
+ #{drive_id}||01ANJ53W4ELLSQL3JZHNA2MHKKHKAUQWNS
+ #{drive_id}||01ANJ53W5UJK2CQO6IY5HLBVYBVNJ4TKHZ
+ ]
+ end
+
+ # rubocop:disable RSpec/ExampleLength
+ it "must return an array of file information when called" do
+ result = query.call(auth_strategy:, input_data:)
+ expect(result).to be_success
+
+ file_infos = result.value!
+ expect(file_infos.size).to eq(3)
+ expect(file_infos).to all(be_a(Results::StorageFileInfo))
+ expect(file_infos.map(&:to_h))
+ .to eq([
+ {
+ status: "ok",
+ status_code: 200,
+ id: "01ANJ53WYLXAJW5PXSCJB2CFCD42UPDKMI",
+ name: "Folder",
+ size: 232311,
+ mime_type: "application/x-op-directory",
+ created_at: Time.parse("2023-12-14T14:53:00Z"),
+ last_modified_at: Time.parse("2023-12-14T14:53:00Z"),
+ owner_name: "Eric Schubert",
+ owner_id: "5b5a7dc4-4539-41ba-9fa9-100f0a26acb7",
+ last_modified_by_name: "Eric Schubert",
+ last_modified_by_id: "5b5a7dc4-4539-41ba-9fa9-100f0a26acb7",
+ permissions: nil,
+ location: "/Shared%20Documents/Folder"
+ },
+ {
+ status: "ok",
+ status_code: 200,
+ id: "01ANJ53W4ELLSQL3JZHNA2MHKKHKAUQWNS",
+ name: "authurl.txt",
+ size: 144,
+ mime_type: "text/plain",
+ created_at: Time.parse("2024-09-24T13:06:53Z"),
+ last_modified_at: Time.parse("2024-09-24T13:06:55Z"),
+ owner_name: "Eric Schubert",
+ owner_id: "5b5a7dc4-4539-41ba-9fa9-100f0a26acb7",
+ last_modified_by_name: "Eric Schubert",
+ last_modified_by_id: "5b5a7dc4-4539-41ba-9fa9-100f0a26acb7",
+ permissions: nil,
+ location: "/Shared%20Documents/Folder/authurl.txt"
+ },
+ {
+ status: "ok",
+ status_code: 200,
+ id: "01ANJ53W5UJK2CQO6IY5HLBVYBVNJ4TKHZ",
+ name: "release_meme.jpg",
+ size: 46264,
+ mime_type: "image/jpeg",
+ created_at: Time.parse("2024-02-20T14:26:07Z"),
+ last_modified_at: Time.parse("2024-02-20T14:26:07Z"),
+ owner_name: "Eric Schubert",
+ owner_id: "5b5a7dc4-4539-41ba-9fa9-100f0a26acb7",
+ last_modified_by_name: "Eric Schubert",
+ last_modified_by_id: "5b5a7dc4-4539-41ba-9fa9-100f0a26acb7",
+ permissions: nil,
+ location: "/Shared%20Documents/Folder/Nested%20Folder/release_meme.jpg"
+ }
+ ])
+ end
+ # rubocop:enable RSpec/ExampleLength
+ end
+ end
+
+ context "with one outbound request returning not found", vcr: "share_point/files_info_query_one_not_found" do
+ let(:drive_id) { "b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw" }
+
+ context "with an array of file ids" do
+ let(:file_ids) { %W[#{drive_id}||01ANJ53W4ELLSQL3JZHNA2MHKKHKAUQWNS #{drive_id}||not_existent] }
+
+ it "must return an array of file information when called" do
+ result = query.call(auth_strategy:, input_data:)
+ expect(result).to be_success
+ file_infos = result.value!
+
+ expect(file_infos.size).to eq(2)
+ expect(file_infos).to all(be_a(Results::StorageFileInfo))
+ expect(file_infos[1].id).to eq("not_existent")
+ expect(file_infos[1].status).to eq(:not_found)
+ expect(file_infos[1].status_code).to eq(404)
+ end
+ end
+ end
+ end
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/share_point/files_info_query_one_not_found.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/share_point/files_info_query_one_not_found.yml
new file mode 100644
index 00000000000..d90f114382b
--- /dev/null
+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/share_point/files_info_query_one_not_found.yml
@@ -0,0 +1,202 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: https://graph.microsoft.com/v1.0/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw/items/01ANJ53W4ELLSQL3JZHNA2MHKKHKAUQWNS?$select=id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference,webUrl
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Authorization:
+ - Bearer <BEARER TOKEN>
+ User-Agent:
+ - httpx.rb/1.3.4
+ Accept:
+ - "*/*"
+ Accept-Encoding:
+ - gzip, deflate
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; odata.metadata=minimal; odata.streaming=true; IEEE754Compatible=false;
+ charset=utf-8
+ Content-Encoding:
+ - gzip
+ Strict-Transport-Security:
+ - max-age=31536000
+ Request-Id:
+ - af22ea78-36b6-4d5d-8083-5a9b974e606f
+ Client-Request-Id:
+ - af22ea78-36b6-4d5d-8083-5a9b974e606f
+ X-Ms-Ags-Diagnostic:
+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"002","RoleInstance":"FR3PEPF0000036E"}}'
+ Splogid:
+ - 3f5fbba1-f044-0000-7a8c-c9b5eb160a45
+ Date:
+ - Wed, 13 Aug 2025 14:13:11 GMT
+ body:
+ encoding: UTF-8
+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#Collection(driveItem)/$entity","@odata.etag":"\"{05E55A84-39ED-413B-A61D-4A3A814859B2},3\"","createdBy":{"application":{"id":"b8a5bb54-5fb2-4e0e-9427-9d24dbac32ff","displayName":"OP
+ Auth"},"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric
+ Schubert"}},"id":"01ANJ53W4ELLSQL3JZHNA2MHKKHKAUQWNS","lastModifiedBy":{"application":{"id":"b8a5bb54-5fb2-4e0e-9427-9d24dbac32ff","displayName":"OP
+ Auth"},"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric
+ Schubert"}},"name":"authurl.txt","parentReference":{"driveType":"documentLibrary","driveId":"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw","id":"01ANJ53WYLXAJW5PXSCJB2CFCD42UPDKMI","name":"Folder","path":"/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw/root:/Folder","siteId":"1099e315-d0c7-47c7-8640-aa9504b70fff"},"webUrl":"https://ymt6d.sharepoint.com/sites/OPTest/Shared%20Documents/Folder/authurl.txt","file":{"hashes":{"quickXorHash":"u7zx957Fh8cjYKngGIguBj3IaJY="},"mimeType":"text/plain"},"fileSystemInfo":{"createdDateTime":"2024-09-24T13:06:53Z","lastModifiedDateTime":"2024-09-24T13:06:55Z"},"size":144}'
+ recorded_at: Wed, 13 Aug 2025 14:13:11 GMT
+- request:
+ method: get
+ uri: https://graph.microsoft.com/v1.0/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw/items/not_existent?$select=id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference,webUrl
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Authorization:
+ - Bearer <BEARER TOKEN>
+ User-Agent:
+ - httpx.rb/1.3.4
+ Accept:
+ - "*/*"
+ Accept-Encoding:
+ - gzip, deflate
+ response:
+ status:
+ code: 404
+ message: Not Found
+ headers:
+ Cache-Control:
+ - no-store, no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Content-Encoding:
+ - gzip
+ Vary:
+ - Accept-Encoding
+ Strict-Transport-Security:
+ - max-age=31536000
+ Request-Id:
+ - 88920548-5c54-43dc-ba5a-c8f9de3e1552
+ Client-Request-Id:
+ - 88920548-5c54-43dc-ba5a-c8f9de3e1552
+ X-Ms-Ags-Diagnostic:
+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"002","RoleInstance":"FR3PEPF00000163"}}'
+ Splogid:
+ - 3f5fbba1-c058-0000-7534-c73fbc13192a
+ Date:
+ - Wed, 13 Aug 2025 14:13:11 GMT
+ body:
+ encoding: UTF-8
+ string: '{"error":{"code":"itemNotFound","message":"Item not found"}}'
+ recorded_at: Wed, 13 Aug 2025 14:13:12 GMT
+- request:
+ method: post
+ uri: https://login.microsoftonline.com/e36f1dbc-fdae-427e-b61b-0d96ddfb81a4/oauth2/v2.0/token
+ body:
+ encoding: ASCII-8BIT
+ string: grant_type=client_credentials&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default+offline_access&client_id=404e0567-19a1-4a64-b2d1-d3b0c99f2ed9&client_secret=QRB8Q%7Ei.1rID_.MC9FTfRGq-FTE5SgWYsoeLacWf
+ headers:
+ User-Agent:
+ - httpx.rb/1.3.4
+ Accept:
+ - "*/*"
+ Accept-Encoding:
+ - gzip, deflate
+ Content-Type:
+ - application/x-www-form-urlencoded
+ Content-Length:
+ - '199'
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-store, no-cache
+ Pragma:
+ - no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Expires:
+ - "-1"
+ Strict-Transport-Security:
+ - max-age=31536000; includeSubDomains
+ X-Content-Type-Options:
+ - nosniff
+ P3p:
+ - CP="DSP CUR OTPi IND OTRi ONL FIN"
+ X-Ms-Request-Id:
+ - ffac04c2-a220-4ac0-9075-dde80d180c00
+ X-Ms-Ests-Server:
+ - 2.1.21470.13 - NEULR1 ProdSlices
+ X-Ms-Srs:
+ - 1.P
+ Content-Security-Policy-Report-Only:
+ - object-src 'none'; base-uri 'self'; script-src 'self' 'nonce-l5EBX5OFtVUtYCsnlViCcg'
+ 'unsafe-inline' 'unsafe-eval' https://*.msauth.net https://*.msftauth.net
+ https://*.msftauthimages.net https://*.msauthimages.net https://*.msidentity.com
+ https://*.microsoftonline-p.com https://*.microsoftazuread-sso.com https://*.azureedge.net
+ https://*.outlook.com https://*.office.com https://*.office365.com https://*.microsoft.com
+ https://*.bing.com 'report-sample'; report-uri https://csp.microsoft.com/report/ESTS-UX-All
+ X-Xss-Protection:
+ - '0'
+ Set-Cookie:
+ - fpc=AgFhet8-d3xFtCCNGfUz2-pZ-dCOAQAAAHeULuAOAAAA; expires=Fri, 12-Sep-2025
+ 14:13:12 GMT; path=/; secure; HttpOnly; SameSite=None, x-ms-gateway-slice=estsfd;
+ path=/; secure; samesite=none; httponly, stsservicecookie=estsfd; path=/;
+ secure; samesite=none; httponly
+ Date:
+ - Wed, 13 Aug 2025 14:13:12 GMT
+ Content-Length:
+ - '1933'
+ body:
+ encoding: UTF-8
+ string: '{"token_type":"Bearer","expires_in":3599,"ext_expires_in":3599,"access_token":"<ACCESS_TOKEN>"}'
+ recorded_at: Wed, 13 Aug 2025 14:13:12 GMT
+- request:
+ method: get
+ uri: https://graph.microsoft.com/v1.0/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw/items/not_existent?$select=id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference,webUrl
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ User-Agent:
+ - httpx.rb/1.3.4
+ Accept:
+ - "*/*"
+ Accept-Encoding:
+ - gzip, deflate
+ Authorization:
+ - Bearer <BEARER TOKEN>
+ response:
+ status:
+ code: 404
+ message: Not Found
+ headers:
+ Cache-Control:
+ - no-store, no-cache
+ Content-Type:
+ - application/json; charset=utf-8
+ Content-Encoding:
+ - gzip
+ Vary:
+ - Accept-Encoding
+ Strict-Transport-Security:
+ - max-age=31536000
+ Request-Id:
+ - 8215f0ce-9120-4b8a-a17a-087f38d00062
+ Client-Request-Id:
+ - 8215f0ce-9120-4b8a-a17a-087f38d00062
+ X-Ms-Ags-Diagnostic:
+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"002","RoleInstance":"FR3PEPF00000164"}}'
+ Splogid:
+ - 3f5fbba1-4081-0000-7534-c33dcccd7615
+ Date:
+ - Wed, 13 Aug 2025 14:13:12 GMT
+ body:
+ encoding: UTF-8
+ string: '{"error":{"code":"itemNotFound","message":"Item not found"}}'
+ recorded_at: Wed, 13 Aug 2025 14:13:12 GMT
+recorded_with: VCR 6.3.1
diff --git a/modules/storages/spec/support/fixtures/vcr_cassettes/share_point/files_info_query_success.yml b/modules/storages/spec/support/fixtures/vcr_cassettes/share_point/files_info_query_success.yml
new file mode 100644
index 00000000000..c43ce1c3af7
--- /dev/null
+++ b/modules/storages/spec/support/fixtures/vcr_cassettes/share_point/files_info_query_success.yml
@@ -0,0 +1,143 @@
+---
+http_interactions:
+- request:
+ method: get
+ uri: https://graph.microsoft.com/v1.0/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw/items/01ANJ53WYLXAJW5PXSCJB2CFCD42UPDKMI?$select=id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference,webUrl
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Authorization:
+ - Bearer <BEARER TOKEN>
+ User-Agent:
+ - httpx.rb/1.3.4
+ Accept:
+ - "*/*"
+ Accept-Encoding:
+ - gzip, deflate
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; odata.metadata=minimal; odata.streaming=true; IEEE754Compatible=false;
+ charset=utf-8
+ Content-Encoding:
+ - gzip
+ Strict-Transport-Security:
+ - max-age=31536000
+ Request-Id:
+ - 59d97913-67fe-429b-bd0a-25578b60f797
+ Client-Request-Id:
+ - 59d97913-67fe-429b-bd0a-25578b60f797
+ X-Ms-Ags-Diagnostic:
+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"000","RoleInstance":"FR1PEPF0000107E"}}'
+ Splogid:
+ - 245fbba1-5068-0000-7bb8-a6855d5e8c41
+ Date:
+ - Wed, 13 Aug 2025 14:11:21 GMT
+ body:
+ encoding: UTF-8
+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#Collection(driveItem)/$entity","@odata.etag":"\"{6E13B80B-F2BE-4312-A114-43E6A8F1A988},1\"","createdBy":{"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric
+ Schubert"}},"id":"01ANJ53WYLXAJW5PXSCJB2CFCD42UPDKMI","lastModifiedBy":{"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric
+ Schubert"}},"name":"Folder","parentReference":{"driveType":"documentLibrary","driveId":"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw","id":"01ANJ53W56Y2GOVW7725BZO354PWSELRRZ","name":"Shared
+ Documents","path":"/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw/root:","siteId":"1099e315-d0c7-47c7-8640-aa9504b70fff"},"webUrl":"https://ymt6d.sharepoint.com/sites/OPTest/Shared%20Documents/Folder","fileSystemInfo":{"createdDateTime":"2023-12-14T14:53:00Z","lastModifiedDateTime":"2023-12-14T14:53:00Z"},"folder":{"childCount":4},"size":232311}'
+ recorded_at: Wed, 13 Aug 2025 14:11:22 GMT
+- request:
+ method: get
+ uri: https://graph.microsoft.com/v1.0/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw/items/01ANJ53W4ELLSQL3JZHNA2MHKKHKAUQWNS?$select=id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference,webUrl
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Authorization:
+ - Bearer <BEARER TOKEN>
+ User-Agent:
+ - httpx.rb/1.3.4
+ Accept:
+ - "*/*"
+ Accept-Encoding:
+ - gzip, deflate
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; odata.metadata=minimal; odata.streaming=true; IEEE754Compatible=false;
+ charset=utf-8
+ Content-Encoding:
+ - gzip
+ Strict-Transport-Security:
+ - max-age=31536000
+ Request-Id:
+ - 01e41a83-090a-4d8e-996d-dcc3d573e2fe
+ Client-Request-Id:
+ - 01e41a83-090a-4d8e-996d-dcc3d573e2fe
+ X-Ms-Ags-Diagnostic:
+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"000","RoleInstance":"FR1PEPF00000B9D"}}'
+ Splogid:
+ - 245fbba1-d07e-0000-7a8c-cc2ae99a270d
+ Date:
+ - Wed, 13 Aug 2025 14:11:21 GMT
+ body:
+ encoding: UTF-8
+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#Collection(driveItem)/$entity","@odata.etag":"\"{05E55A84-39ED-413B-A61D-4A3A814859B2},3\"","createdBy":{"application":{"id":"b8a5bb54-5fb2-4e0e-9427-9d24dbac32ff","displayName":"OP
+ Auth"},"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric
+ Schubert"}},"id":"01ANJ53W4ELLSQL3JZHNA2MHKKHKAUQWNS","lastModifiedBy":{"application":{"id":"b8a5bb54-5fb2-4e0e-9427-9d24dbac32ff","displayName":"OP
+ Auth"},"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric
+ Schubert"}},"name":"authurl.txt","parentReference":{"driveType":"documentLibrary","driveId":"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw","id":"01ANJ53WYLXAJW5PXSCJB2CFCD42UPDKMI","name":"Folder","path":"/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw/root:/Folder","siteId":"1099e315-d0c7-47c7-8640-aa9504b70fff"},"webUrl":"https://ymt6d.sharepoint.com/sites/OPTest/Shared%20Documents/Folder/authurl.txt","file":{"hashes":{"quickXorHash":"u7zx957Fh8cjYKngGIguBj3IaJY="},"mimeType":"text/plain"},"fileSystemInfo":{"createdDateTime":"2024-09-24T13:06:53Z","lastModifiedDateTime":"2024-09-24T13:06:55Z"},"size":144}'
+ recorded_at: Wed, 13 Aug 2025 14:11:22 GMT
+- request:
+ method: get
+ uri: https://graph.microsoft.com/v1.0/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw/items/01ANJ53W5UJK2CQO6IY5HLBVYBVNJ4TKHZ?$select=id,name,fileSystemInfo,file,folder,size,createdBy,lastModifiedBy,parentReference,webUrl
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Authorization:
+ - Bearer <BEARER TOKEN>
+ User-Agent:
+ - httpx.rb/1.3.4
+ Accept:
+ - "*/*"
+ Accept-Encoding:
+ - gzip, deflate
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Cache-Control:
+ - no-cache
+ Content-Type:
+ - application/json; odata.metadata=minimal; odata.streaming=true; IEEE754Compatible=false;
+ charset=utf-8
+ Content-Encoding:
+ - gzip
+ Strict-Transport-Security:
+ - max-age=31536000
+ Request-Id:
+ - ac9e4067-0fd6-4f2f-afd8-9fbe98764aad
+ Client-Request-Id:
+ - ac9e4067-0fd6-4f2f-afd8-9fbe98764aad
+ X-Ms-Ags-Diagnostic:
+ - '{"ServerInfo":{"DataCenter":"Germany West Central","Slice":"E","Ring":"4","ScaleUnit":"000","RoleInstance":"FR1PEPF0000102D"}}'
+ Splogid:
+ - 245fbba1-8093-0000-7534-c3e09b9d22a4
+ Date:
+ - Wed, 13 Aug 2025 14:11:22 GMT
+ body:
+ encoding: UTF-8
+ string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#Collection(driveItem)/$entity","@odata.etag":"\"{28B44AB4-C83B-4EC7-B0D7-01AB53C9A8F9},2\"","createdBy":{"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric
+ Schubert"}},"id":"01ANJ53W5UJK2CQO6IY5HLBVYBVNJ4TKHZ","lastModifiedBy":{"user":{"email":"[email protected]","id":"5b5a7dc4-4539-41ba-9fa9-100f0a26acb7","displayName":"Eric
+ Schubert"}},"name":"release_meme.jpg","parentReference":{"driveType":"documentLibrary","driveId":"b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw","id":"01ANJ53W4MWZNYS4FOTNDI3UVTLEXUZ5TQ","name":"Nested
+ Folder","path":"/drives/b!FeOZEMfQx0eGQKqVBLcP__BG8mq-4-9FuRqOyk3MXY87vnZ6fgfvQanZHX-XCAyw/root:/Folder/Nested
+ Folder","siteId":"1099e315-d0c7-47c7-8640-aa9504b70fff"},"webUrl":"https://ymt6d.sharepoint.com/sites/OPTest/Shared%20Documents/Folder/Nested%20Folder/release_meme.jpg","file":{"hashes":{"quickXorHash":"YkS9AR4yVsWrDqYEUTlRDmX28hI="},"mimeType":"image/jpeg"},"fileSystemInfo":{"createdDateTime":"2024-02-20T14:26:07Z","lastModifiedDateTime":"2024-02-20T14:26:07Z"},"size":46264}'
+ recorded_at: Wed, 13 Aug 2025 14:11:22 GMT
+recorded_with: VCR 6.3.1