rooey / chromeos-filesystem-onedrive

This project provides a OneDrive FileSystem mount for ChromeOS
http://onedrivefs.justmichael.uk/
BSD 3-Clause "New" or "Revised" License
36 stars 23 forks source link

Creating directory in OneDrive for Business fails #51

Closed iamacarpet closed 4 years ago

iamacarpet commented 4 years ago

Describe the bug Creating a directory in a OneDrive for Business mount fails.

From the Developer Console:

{
  "error": {
    "code": "-1, Microsoft.SharePoint.Client.InvalidClientQueryException",
    "message": "The property 'path' does not exist on type 'oneDrive.item'. Make sure to only use property names that are defined by the type.",
    "innerError": {
      "request-id": "b5e857a5-3ada-4f6f-84f9-8bda0c6d6dc1",
      "date": "2019-11-05T13:10:28"
    }
  }
}

To Reproduce Steps to reproduce the behaviour:

  1. Mount a OneDrive for Business drive.
  2. In the menu, New Folder or
  3. Drag & drop an existing folder from "My Files" into the OneDrive.

Expected behaviour Directory is created, allowing files to be added.

Screenshots screenshot 1567433279

ChromeOS Version

iamacarpet commented 4 years ago

Will submit a PR for this tomorrow after some sleep, but it is tied in with some other fixes for upload & download of files, which was also broken for me.

File download was failing with CORS, as for O365 it was from the Sharepoint URL.

Found a Microsoft thread on GitHub that said it’s a known issue (since 2014) and the workaround is to call it differently (so there’s no redirect) and without any headers, as that’ll stop it triggering a preflight CORS check (but that means range downloads won’t work).