Bug 397102

Summary: Selecting 'gdrive' from URL dropdown, then clicking gdrive account fails with 'Invalid protocol'
Product: [Frameworks and Libraries] kio-gdrive Reporter: Christoph Feck <cfeck>
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED FIXED    
Severity: minor CC: dtombaugh
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christoph Feck 2018-08-02 18:21:45 UTC
Steps to reproduce:
- start dolphin and click at right-end of URL bar to get to type-in mode
- click linedit Clear button, a 'file' drop-down button appears
- select Other > gdrive and accept the URL, which now reads 'gdrive://'
- click on a configured account in the gdrive listing

What works is removing one '/' from the URL before clicking on the account.

Using Remote/Network from Places panel, clicking "Google Drive" also results in 'gdrive:/' URL instead of 'gdrive://'.

Using master versions. Might be a KIO bug, re-assign as appropiate.
Comment 1 Elvis Angelaccio 2018-08-16 10:48:20 UTC
I can reproduce also with MTP (which will error out with "Malformed URL .").

KIO probably shouldn't assume that any kioslave supports URL in the form "<protocol>://". In the gdrive case for sure the "gdrive://" URL is wrong.
Comment 2 Elvis Angelaccio 2022-09-15 22:28:46 UTC
(In reply to Christoph Feck from comment #0)
> Steps to reproduce:
> - start dolphin and click at right-end of URL bar to get to type-in mode
> - click linedit Clear button, a 'file' drop-down button appears
> - select Other > gdrive and accept the URL, which now reads 'gdrive://'

It seems this has been fixed in recent KIO versions. This step now results in a 'gdrive:' URL and then everything seems to work.