Bug 510280 - kio-gdrive: "Access denied" error after successful account authentication
Summary: kio-gdrive: "Access denied" error after successful account authentication
Status: RESOLVED DUPLICATE of bug 480779
Alias: None
Product: kio-gdrive
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 25.08.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-05 21:10 UTC by Roger Júnio
Modified: 2025-10-05 22:34 UTC (History)
0 users

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


Attachments
Screenshot showing the user interface result after attempting to access the Google Drive folder. (66.20 KB, image/png)
2025-10-05 21:10 UTC, Roger Júnio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Júnio 2025-10-05 21:10:42 UTC
Created attachment 185543 [details]
Screenshot showing the user interface result after attempting to access the Google Drive folder.

SUMMARY
After successfully adding a Google Account through System Settings -> Online Accounts, any attempt to access the corresponding Google Drive folder in the Dolphin file manager fails with an "Access denied" error message.

STEPS TO REPRODUCE
1. Navigate to `System Settings` > `Online Accounts`.
2. Click `Add Account...` and select the `Google` provider.
3. Complete the web browser authentication flow, granting all requested permissions to the "KDE KAccounts" application when prompted.
4. Once the account is listed as successfully added, open the Dolphin file manager.
5. Click on the newly created Google Drive entry in the Places panel (under "Network" or similar).

OBSERVED RESULT
The main Dolphin pane shows a "Loading canceled" message. A notification bar appears at the top with the error "Access denied for ." (original in pt-BR: "Acesso negado para ."). No files or folders from the Google Drive are listed. This issue persists even after removing and re-adding the account.

EXPECTED RESULT
The contents of the Google Drive account (files and folders) should be listed and become accessible within Dolphin, allowing for file management operations.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
(Kernel Version: 6.16.10-arch1-1)

ADDITIONAL INFORMATION
Logs were captured using `journalctl -f` while attempting to access the Google Drive folder three times.

The most relevant error message, which repeats with each attempt, is:
`org.kde.kgapi: Requested resource is forbidden.`

This error appears to originate from the KDE Google API library (`kgapi`) and indicates a permission issue (equivalent to an HTTP 403 Forbidden), despite the account being successfully authenticated via the web browser flow. It seems the KIO worker is being denied access by Google's API endpoint.

Below is the full log snippet captured during the attempts:

---
out 05 18:04:32 mwe-laptop systemd[4083]: Started Dolphin - Gerenciador de arquivos.
out 05 18:04:33 mwe-laptop systemd[4083]: Started dbus-1.2-com.google.code.AccountsSSO.SingleSignOn@3.service.
out 05 18:04:35 mwe-laptop kioworker[45577]: org.kde.kgapi: Requested resource is forbidden.
out 05 18:04:35 mwe-laptop kioworker[45577]: kf.kio.core: UDSentry for '.' not found, creating a default one. Please fix the "kioworker" KIO worker.
out 05 18:04:36 mwe-laptop kioworker[45577]: org.kde.kgapi: Requested resource is forbidden.
out 05 18:04:43 mwe-laptop dolphin[45549]: QLayout::removeWidget: Cannot remove a null widget.
out 05 18:04:43 mwe-laptop kioworker[45577]: org.kde.kgapi: Requested resource is forbidden.
out 05 18:04:44 mwe-laptop kioworker[45577]: org.kde.kgapi: Requested resource is forbidden.
out 05 18:04:44 mwe-laptop kioworker[45577]: kf.kio.core: UDSentry for '.' not found, creating a default one. Please fix the "kioworker" KIO worker.
out 05 18:04:47 mwe-laptop kioworker[45577]: org.kde.kgapi: Requested resource is forbidden.
out 05 18:04:48 mwe-laptop kioworker[45577]: org.kde.kgapi: Requested resource is forbidden.
out 05 18:04:48 mwe-laptop kioworker[45577]: kf.kio.core: UDSentry for '.' not found, creating a default one. Please fix the "kioworker" KIO worker.
---
Comment 1 Antonio Rojas 2025-10-05 22:34:43 UTC

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