Bug 369581 - Gdrive asking to re-authenticate after a few file accesses
Summary: Gdrive asking to re-authenticate after a few file accesses
Status: RESOLVED FIXED
Alias: None
Product: kio-gdrive
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 1.0.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-30 19:21 UTC by André M
Modified: 2016-10-01 14:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.0.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description André M 2016-09-30 19:21:41 UTC
On Dolphin, after correctly authenticating and doing some files/folder access, I get asked to reauthenticate. Some times, it happens after 4-10 files (e.g. images) opened in ~3min. Not sure if it's related with quick access, Dolphin fetching an image file multiple times to show preview, or something like that. Maybe a temporary local cache and/or explicit "waits" to not get the API to force a reauth prompt.
For example, on journalctl logs, I could count at least 30 "org.kde.kgapi: Received reply from QUrl("https://www.googleapis.com/drive/v2/..." in 20s of trying to access a PNG image stored on GDrive, and then a reauth was prompted. Not sure if their API likes that much accesses.

Reproducible: Always

Steps to Reproduce:
1. Get KIO Gdrive authenticated on Dolphin
2. Try accessing images on GDrive, don't need to open multiples at once, just sequential access can trigger the bug

Actual Results:  
A new authentication dialog is asked, and account can't be accessed if not reauthenticating.

Expected Results:  
Accesses would be limited/cached to avoid being asked to reauthenticate.

AUR packages for stable 1.0.0, over Plasma 5.7.95 on up-to-date Arch Linux.
Besides, thanks for your efforts on this module. I'm not a heavy Gdrive user, but Linux lacked this kind of integration, and, despite this bug report, it is working better than I was expecting. Past experiences with fuse drivers for Google Drive were too lagged even for a terminal "ls", and a pain to use in a daily basis, but your kio module is very smooth and quick. Regards.
Comment 1 Elvis Angelaccio 2016-09-30 19:31:02 UTC
Yeah something weird is going on when opening pictures with Gwenview.
It seems to happen when opening a picture in a non-root subfolder.

Possibly also related to https://bugs.kde.org/show_bug.cgi?id=367988
Comment 2 Víctor 2016-10-01 10:37:33 UTC
When I try to access to another folder inside, appears a dialog window for a new authentication. After fill this new authentication, when I try to access to a contained folder, appears again the dialog requesting a new login. :/
Comment 3 Elvis Angelaccio 2016-10-01 14:38:12 UTC
Git commit beb01773c0d297e59717f8c060866e07db09a265 by Elvis Angelaccio.
Committed on 01/10/2016 at 14:32.
Pushed by elvisangelaccio into branch '1.0'.

Fix broken QUrl construction

This fixes a regression caused by the KUrl -> QUrl port.
QUrl::fromUserInput results in an URL with the http:// scheme,
while we need to gdrive:// one.
Related: bug 367988
FIXED-IN: 1.0.1

M  +4    -2    src/kio_gdrive.cpp

http://commits.kde.org/kio-gdrive/beb01773c0d297e59717f8c060866e07db09a265