Bug 397102 - Selecting 'gdrive' from URL dropdown, then clicking gdrive account fails with 'Invalid protocol'
Summary: Selecting 'gdrive' from URL dropdown, then clicking gdrive account fails with...
Status: RESOLVED FIXED
Alias: None
Product: kio-gdrive
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-02 18:21 UTC by Christoph Feck
Modified: 2022-09-15 22:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

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