Bug 477487

Summary: Keeps dropping tokens after one action
Product: [Frameworks and Libraries] kio-gdrive Reporter: jshand2013
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fabian
Priority: NOR    
Version: 23.08.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: gdrive log

Description jshand2013 2023-11-25 06:20:03 UTC
STEPS TO REPRODUCE
1.   Select network drive and select google(x).  it will usually show your root directory.
2.   delete a file or add a file to the drive
3.   Try to select a file to delete or change directory etc.  this usually brings up the error of tokens expired or invalid

OBSERVED RESULT

Inability to do more than one action at a time with same token.  it might get dropped or changed too quickly

EXPECTED RESULT

to be able to finish all necessary actions before closing dolphin

Operating System: openSUSE Tumbleweed 20231123
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Kernel Version: 6.6.2-1-default (64-bit)
Graphics Platform: X11
Processors: 2 × AMD A9-9420e RADEON R5, 5 COMPUTE CORES 2C+3G
Memory: 7.2 GiB of RAM
Graphics Processor: AMD Radeon R5 Graphics
Manufacturer: Acer
Product Name: Aspire A315-21G
System Version: V1.12
Comment 1 jshand2013 2023-11-25 06:43:07 UTC
Created attachment 163450 [details]
gdrive log
Comment 2 Fabian Vogt 2023-11-27 18:26:02 UTC
The relevant part is probably

Nov 25 18:54:20 johns-pc kioslave5[9508]: kf.kio.workers.gdrive: GetCredentialsJob failed: "Failed to I/O session data to/from the signon daemon."
Nov 25 18:54:20 johns-pc dolphin[9461]: kf.kio.core.dirlister: new entries for  QUrl("gdrive:/")
...
Nov 25 18:54:21 johns-pc dolphin[9461]: kf.kio.core.dirlister: KDirLister(0x558ec0c2d120) url= QUrl("gdrive:/google1") keep= false reload= false
...
Nov 25 18:54:22 johns-pc kioslave5[9508]: kf.kio.workers.gdrive: Expired or missing access/refresh token for account "google1"
Nov 25 18:54:22 johns-pc kioslave5[9508]: kf.kio.workers.gdrive: Expired or missing access/refresh token for account "google1"

If it can't read a refresh token, it won't be able to generate a proper access token for the session and fail rather quickly.
Comment 3 Fabian Vogt 2023-11-27 18:26:54 UTC

*** This bug has been marked as a duplicate of bug 391186 ***