Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OneDrive Personal throws "generalException" when handling filenames ending with "drive" #941

Closed
1 of 3 tasks
Cnly opened this issue Nov 8, 2018 · 4 comments
Closed
1 of 3 tasks

Comments

@Cnly
Copy link

Cnly commented Nov 8, 2018

Category

  • Question
  • Documentation issue
  • Bug

Expected or Desired Behavior

The API should work for the files whose names end with drive when they are addressed by their paths.

Observed Behavior

The query

GET /v1.0/drives/71a96798e7b1d253/root:/test/adrive

which is constructed according to the docs "By file system path using /drive/root:/path/to/file"

returns

{
  "error": {
    "code": "generalException",
    "message": "Could not find a property named 'quota' on type 'oneDrive.item'.",
    "innerError": {
      "request-id": "7001728a-4c8d-48d6-96cc-3dfc31de0d18",
      "date": "2018-11-03T16:49:46"
    }
  }
}

However, if a trailing colon is added to the original query:

GET /v1.0/drives/71a96798e7b1d253/root:/test/adrive:

it returns the correct DriveItem.

The date and request ID can be found in the response data sample above, and it seems this only happens for OneDrive Personal.

Steps to Reproduce

This bug can be reproduced by the following steps:

  1. In OneDrive Personal, create a folder ending with drive, for example adrive.
  2. Send the request GET /v1.0/me/drive/root:/path/to/adrive: to confirm the item exists
  3. Send the request GET /v1.0/me/drive/root:/path/to/adrive to see the generalException

This is a summary of a bug from rclone. The original discussions can be found on the rclone forum and in the rclone issue.

@chackman
Copy link
Contributor

chackman commented Nov 9, 2018

Thanks for the feedback, this looks like a bug and I'll track it as such.

@chackman chackman added the graph label Dec 5, 2018
@chackman
Copy link
Contributor

chackman commented Dec 5, 2018

We will need to follow up with the Graph team about this.
In the meantime, you can work around the issue by appending a ':' to the end of the path.

@nozhT
Copy link

nozhT commented Jan 3, 2019

I recently stumbled upon a similar bug on OneDrive Business (files with ".xoml" extensions, content doesn't matter), and adding a colon at the end also "fixes" the problem.

@patrick-rodgers
Copy link
Contributor

As part of a repository clean up effort we are closing older issues. If this issue remains, please: open a new issue, reference this issue, and provide any additional details that may help in resolution. Thank you for your understanding as we work to improve our responsiveness.

@OneDrive OneDrive locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants