Bug 508751 - Google Drive access via Dolphin (kio-gdrive) fails with "Requested resource is forbidden"
Summary: Google Drive access via Dolphin (kio-gdrive) fails with "Requested resource i...
Status: RESOLVED DUPLICATE of bug 500335
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: default (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-26 08:20 UTC by pioner14
Modified: 2025-08-26 08:49 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pioner14 2025-08-26 08:20:23 UTC
Hello,

I am experiencing a persistent issue with Google Drive integration in KDE Plasma. When I try to access my Google Drive files via Dolphin (`gdrive:/`), the operation fails. Dolphin shows a "Доступ запрещён" (Access denied) error message, and the system logs show a "Requested resource is forbidden" error from the Google API library.

This happens despite a completely clean setup and using the latest available code from Git.

**Steps to Reproduce:**

1.  Start with a clean state:
    *   Delete any existing Google account from System Settings > Online Accounts.
    *   Revoke access for "KDE" or "KDE Daemon" in the Google Account security settings (myaccount.google.com).
    *   Completely clear the `kdewallet` by removing the `accounts` folder from KWalletManager.
    *   Reboot the system.

2.  Add a Google account via System Settings > Online Accounts. The browser-based authentication process completes successfully. A new entry is created in KWallet.

3.  Open Dolphin and attempt to access the Google Drive mount point (`gdrive:/`).

**Actual Results:**

*   Dolphin displays an "Access denied" error ("Доступ запрещён").
*   The folder remains empty.
*   The system journal shows the following key error message at the moment of access:
    `kioworker[...]: org.kde.kgapi: Requested resource is forbidden.`

**Expected Results:**

*   The contents of my Google Drive should be listed in Dolphin.

**System Information:**

*   **Operating System:** CachyOS (Arch Linux based)
*   **KDE Plasma Version:6.4.4
*   **KDE Frameworks Version: 6.18.0
*   **Qt Version: 6.9.1
*   **Packages:** To ensure I'm using the latest code, the following key packages were compiled and installed from AUR (git versions):
    *   `kaccounts-integration-git`
    *   `kaccounts-providers-git`
    *   `libkgapi-git`
    *   `kio-gdrive-git`

**Additional Information:**

*   KDE Wallet (`kwallet`) is enabled and works correctly.
*   The Google Account itself is fine. Other third-party tools (like Rclone) can access this Google Drive account without any issues.
*   The issue seems to be specific to the way the KDE Google API library (`kgapi`) is making its request, which Google is actively forbidding.

Thank you for looking into this.
Comment 1 Antonio Rojas 2025-08-26 08:49:19 UTC

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