Bug 369649

Summary: Google Drive - Opening a folder containing '/'s as part of its name fails
Product: [Frameworks and Libraries] kio-gdrive Reporter: Kenneth Perry <thothonegan>
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: CONFIRMED ---    
Severity: wishlist CC: luca, mikealeonetti, sanchit.samuel
Priority: NOR    
Version: 1.0.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Kenneth Perry 2016-10-02 19:26:38 UTC
Having a folder containing /s in its name tries to open it as a subdirectory and not the direct name. For example, a folder named 'a/folder/'.


Reproducible: Always

Steps to Reproduce:
1. Create a folder called 'a/folder/' in Google Drive.
2. Navigate to it in gdrive://.


Actual Results:  
Tries to open 'gdrive://username/a/folder/' as the subtree a > folder instead of the folder named 'a/folder/'

Expected Results:  
Opens the folder correctly.

Using openSUSE RPMs for 1.0.1 built by wolfi323 ( https://build.opensuse.org/package/show?project=home%3Awolfi323%3Abranches%3AKDE%3AFrameworks5&package=kio-gdrive ).
Comment 1 Elvis Angelaccio 2016-10-03 11:35:28 UTC
Yeah, this is tricky.
A proper solution would be to replace every forward slash with another character (I think the official client uses underscores). But then we need a mapping between the original and the replaced filename, in case the item is modified. A trade-off could be trying to mark these items as read-only, then no mapping would be necessary.
Comment 2 Christoph Feck 2016-10-06 15:38:27 UTC
*** Bug 370199 has been marked as a duplicate of this bug. ***
Comment 3 Elvis Angelaccio 2018-03-10 16:32:10 UTC
*** Bug 391597 has been marked as a duplicate of this bug. ***
Comment 4 Elvis Angelaccio 2018-03-10 16:34:19 UTC
Forwarding Kai's comment from duplicate #391597:

> Isn't a slash (the one and only) invalid character in a file name? I think the GDrive KIO should escape it (replace it by fraction separator like KIO does everywhere else)