Open arsnyder16 opened 4 years ago
@ificator @JeremyKelley Is it expected behavior? Can you please take a look at this?
https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/385
This is an issue with the way the service is generating the upload URL - we're tracking a fix but don't yet have an ETA.
@ificator @MIchaelMainer Any ETA on this? I am experiencing this same issue.
@ificator @MIchaelMainer Any updates?
@ificator do you have a tracking on this issue or can we move this issue somewhere else?
I believe this issue was resolved, but I neglected to circle back here and state as such. Are you still seeing the unexpected 404 when you try to update a file in folder that the caller does not have access to?
I still see the (presumably) same issue very frequently (however I am using the .NET SDK). There's also related issues here: https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/385 https://github.com/OneDrive/onedrive-api-docs/issues/1132
I am trying to upload files to the private app folder
@tipa your scenario is a little different - it sounds like you're using special folders and there's some kind of race with folder provisioning. This issue was specifically there's a file shared to a user in a folder that is NOT shared, and previously the upload URL we generated would fail with a 404 in this case. We fixed it by changing the format of the upload URLs.
I can confirm that this is still an issue with the app I am using from @tipa.
Thank you for reporting this issue. This appears to be an issue or limitation with the service APIs. Unfortunately, as the Microsoft Graph SDK team, we do not have ownership of the APIs that are causing you issues. We invite you to create a question about the service API to Microsoft Q&A and tagged with one of the [microsoft-graph-*] tags, that way it will get routed to the appropriate team for them to triage:
https://aka.ms/msgraphsupport or directly https://aka.ms/askgraph
For now, we will close the issue on our side but feel free to open it in the relevant repository if you think the issue is specific to SDK. Please let us know if this helps!
Note: We will close this repository on April 19, 2024.
Bug Report
Prerequisites
For more information, see the
CONTRIBUTING
guide.Description
If one of my users shares a file from their one drive to another user with write permissions, but does not share the folder the file is contained then anything time the uploadUrl from a createUploadSession is used they receive a 404 "ItemNotFound". This includes trying to delete the uploadsession.
If using the standard upload for small files <4MB these scenarios work fine. If the user shares the folder that the file is contained then the upload sessions seem to work as expected.
My suspicion is that an upload session is simply creating a temporary file to upload to, but when that temporary file is created the permissions are not transferred from the original file, hence being invisible(404) to all users other than the users who have access to the parent folder.
Console Errors: [Is there any console error]
Screenshots: [If applicable, add screenshots to help explain your problem]
Steps to Reproduce
Expected behavior: Using the uploadUrl works
Actual behavior: Anytime the uploadUrl is used even trying to delete the upload url the server responds with 404 ItemNotFound