-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
GraphClient bug?: upload_file makes DriveItem unusable. #866
Comments
I created two minimal (non-) working examples for this issue: This works as expected:
This does not work:
Note the
My understanding is that this should work (which might be wrong). |
Greetings, thank you for reporting this issue and providing the detailed analysis! |
I have a
DriveItem
calleddrive
. It is not the root of the drive, in case that matters.It works as expected until I call
upload_file
on it.Example
Immediately before calling
upload_file
callingdrive.resource_path
shows/sites/mysite.sharepoint.com,ba872102-39d8-47ab-8aad-7d14db214a60,e28ca39c-5ac9-4639-9b54-7966cd9c088b/drive/items/01VUQUP4U66UKKQJ3QBJFYGNG4F22PKWZD
After calling
upload_file
:/sites/mysite.sharepoint.com,ba872102-39d8-47ab-8aad-7d14db214a60,e28ca39c-5ac9-4639-9b54-7966cd9c088b/drive/items/b!AiGIgtg5q0eKrX0U2yFKYJyjjOHJWjlGm1R5Zs2cCIuSidtNh8SpSaOd3tUKggsG
Notice the exclamation mark.
From this point on I can't use
drive
anymore:This is how I call
upload_file
:drive.upload_file(full_filepath).execute_query()
full_filepath
is a string to a local file and the file is uploaded correctly.Am I using it wrong or is this a bug?
Version:
Office365-REST-Python-Client==2.5.
Thanks!
The text was updated successfully, but these errors were encountered: