Bug 369649 - Google Drive - Opening a folder containing '/'s as part of its name fails
Summary: Google Drive - Opening a folder containing '/'s as part of its name fails
Status: CONFIRMED
Alias: None
Product: kio-gdrive
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 1.0.1
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
: 370199 391597 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-10-02 19:26 UTC by Kenneth Perry
Modified: 2018-03-10 16:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)