-
Notifications
You must be signed in to change notification settings - Fork 228
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
Unable to create subfolders or files under App_Data when using API calls #914
Comments
Hi @abraunegg can you provide us a little more information? In particular can you share the URL you're Posting to and the parameters you're passing? Thanks! |
@JeremyKelley It shows the GET request with URL & options, and shows the failure response. |
I think that's where we're getting confused, GET won't create a folder, you need to do a POST. Take a look here, https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/driveitem_post_children, and see if that matches what you're doing to create the folder. Thanks! |
I agree - however it is the GET of the non existent folder (checking to see if it exists before create) that is preventing the create from occuring. In the log file above, this:
Should return a 404 with a valid JSON, but does not - it fails with 'garbage', thus anything under the App_Data folder cannot be checked / created correctly using the API. Below is an entire sequence, starting from a blank OneDrive local & remote folder structure where you can see the checks for the folder, with the PUT for create (when a valid JSON is returned), but the checks for anything after 'App_Data' fail as it returns a garbage 404 response:
|
If I then login to onedrive.live.com & manually create the "PublishProfiles" directory so that the 'query check' should succeed, any file being uploaded gets the "same" nonsensical / non JSON response:
|
It looks like the call is failing in Graph - if you call api.onedrive.com with the same request you get back an expected JSON response. I'll follow up with them and see if there's a known issue. |
@ificator So there are 2 path's that fail query:
|
@ificator |
@ificator |
I contacted someone over in Graph for a status update (nothing beyond that to report, unfortunately). |
Sorry, no update from Graph to share. |
Update from Graph: they have a fix starting to roll out, and it should take a few weeks to roll out. |
@chackman
|
@chackman
|
Thanks for your patience, we are still waiting on the fix from Graph to completely roll out. |
@chackman |
Thanks, I'll close this out. |
When attempting to create an entire path using the API, the following path fails:
Additionally any folder being created under "App_Data" using the API fails. Full log below:
However, if I then log on to OneDrive (onedrive.live.com) I can browse to that path & create any folder as required - no error is generated.
However even if any folder is created under "App_Data" any file upload / file creation fails with the same error.
Additionally, this restriction or limitation is not detailed here:
https://support.microsoft.com/en-au/help/3125202/restrictions-and-limitations-when-you-sync-files-and-folders
The text was updated successfully, but these errors were encountered: