onedrive-api-docs: Get item queries for items in shared folders fails with 404 error (API Regression)

Category

  • Question
  • Documentation issue
  • Bug

Expected or Desired Behavior

Previously (prior to potentially ~start of January) it was possible to query a drive item resource across LOCAL and SHARED folders.

As of at least 10th January, the query of SHARED folders / items is broken and returns a 404 - for example:

https://graph.microsoft.com/v1.0/me/drive/root:/./SHARED/:/?select=id... - SUCCESS
https://graph.microsoft.com/v1.0/users/{driveid}/drive/root:/./SHARED/ - SUCCESS
https://graph.microsoft.com/v1.0/me/drive/root:/./SHARED/1/:/?select=id... - FAILS
https://graph.microsoft.com/v1.0/users/{driveid}/drive/root:/./SHARED/1/ - FAILS
https://graph.microsoft.com/v1.0/me/drive/root:/./LOCAL/1/:/?select=id... - SUCCESS
https://graph.microsoft.com/v1.0/users/{driveid}/drive/root:/./LOCAL/1/ - SUCCESS

Observed Behavior

The query of items in a SHARED folder fails

Expected Behavior

The query of items in a SHARED folder should be successful - this previously worked

Steps to Reproduce

  1. Create a shared folder with account 1 and share with account 2
  2. Add shared folder to OneDrive under Files for account 2
  3. Create an empty folder under the shared folder as account 2
  4. Use MS Graph to query the sub folder object as account 2 - the top folder can be queried, however the sub folder or any item under the top folder returns the 404 where it used to return valid data.

MS Graph Response of error

{
    "error": {
        "code": "itemNotFound",
        "message": "Item does not exist",
        "innerError": {
            "request-id": "9ca3d393-0cf7-4141-b5fe-5de34068e9f1",
            "date": "2019-01-12T20:35:15"
        }
    }
}

MS Graph response headers

client-request-id: 9ca3d393-0cf7-4141-b5fe-5de34068e9f1
content-type: application/json
cache-control: private
request-id: 9ca3d393-0cf7-4141-b5fe-5de34068e9f1

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 18 (2 by maintainers)

Most upvoted comments

@kguidonimartins This issue is actually resolved, and fixed in v2.2.6 of the client. Suggest you rebuild your client from https://github.com/abraunegg/onedrive and if you have any further issue, raise a case on my GitHub branch.