Azure / Microsoft365R

R SDK for interacting with Microsoft 365 APIs
Other
308 stars 42 forks source link

Working with files and folders is broken with shared SP/OD items #149

Closed hongooi73 closed 1 year ago

hongooi73 commented 1 year ago

When working with a shared drive item, the full path information is not available for security reasons. This breaks ms_drive_item, which assumes (in the private make_absolute_path method) that you can always construct the full path to the item.

In particular, this affects working with with shared pins (#129).

Solution is to use the drive/itemID instead of the path, in all API urls. Need to check:

hongooi73 commented 1 year ago

Can use paths relative to an item ID: https://github.com/OneDrive/onedrive-api-docs/issues/908

hongooi73 commented 1 year ago

Fix is in dev branch; needs testing with Business OD/SPO