microsoftgraph / msgraph-sdk-serviceissues

Tracks service issues for follow up.
5 stars 0 forks source link

404 ItemNotFound using Upload Sessions #40

Open arsnyder16 opened 4 years ago

arsnyder16 commented 4 years ago

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

  1. Share file from one user to another that is contained within a folder
  2. Have the other user attempt to upload new content to the file using an upload session

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

MIchaelMainer commented 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

ificator commented 4 years ago

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.

dlong11 commented 4 years ago

@ificator @MIchaelMainer Any ETA on this? I am experiencing this same issue.

arsnyder16 commented 4 years ago

@ificator @MIchaelMainer Any updates?

ddyett commented 4 years ago

@ificator do you have a tracking on this issue or can we move this issue somewhere else?

ificator commented 4 years ago

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?

tipa commented 4 years ago

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

ificator commented 4 years ago

@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.

raydixon commented 4 years ago

I can confirm that this is still an issue with the app I am using from @tipa.

petrhollayms commented 7 months ago

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.