I ran into two other issues. First, the contents of shortcuts to shared
folders added to your OneDrive tree don't list their contents, and,
second, the contents of folders inside "Shared With Me" (at the OneDrive
root) don't open and display anything. I worked with ChatGPT and got the
shortcuts working. Here's what it says when I asked it to provide a
post:

[Begin ChatGPT message]

The `Add to OneDrive` shortcuts are now working: their folders list and
open correctly after backporting the upstream shared-drive handling in
`msgraph` and GVFS. The fix preserves the remote drive and item IDs
supplied in Microsoft Graph’s `remoteItem` data, so GVFS requests the
actual shared drive rather than the shortcut wrapper.

`Shared with me` is still incomplete. Its folders now appear in Files,
but opening one fails with “Unable to find … [Folder Name].” A future
Ubuntu release needs an end-to-end test for both cases:

- A folder added to OneDrive as a shortcut: list and open its contents.
- A folder shown directly in `Shared with me`: list and open its contents.

The implementation must keep the wrapper item ID for Files navigation
while using the remote drive/item IDs for Graph requests. At present,
the second path is still failing during GVFS folder resolution.

[End ChatGPT message]

I asked it for a diff to how it fixed the shortcuts, and it replied with
this:

[Begin ChatGPT message]

I’d suggest backporting these two upstream commits together:

msgraph:

41a8b54b637a1a63d34ca43dd374e331dea76b58
Add support for business "Add to OneDrive" sharepoints

gvfs:

f1aa273b243cb41deba1916c843c783a7ff7de23
onedrive: Support Sharepoint drives

The essential change is:

- /drives/<shortcut-wrapper-drive>/items/<shortcut-wrapper-id>/children
+ /drives/<remoteItem.parentReference.driveId>/items/<remoteItem.id>/children

msgraph must retain both identities from Graph’s remoteItem: the visible 
shortcut’s ID for Files navigation, and the remote drive/item IDs for requests 
to Microsoft. GVFS must then index returned children under the folder that was 
actually enumerated, rather than under Graph’s source parent.
That pair fixed Add to OneDrive shortcuts listing and opening their contents 
here. I would request automated tests for a business OneDrive shortcut as part 
of the SRU/backport.

[End ChatGPT message]

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/2064147

Title:
  Unable to browse My Files using OneDrive integration

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/2064147/+subscriptions


-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to