Bug 508751

Summary: Google Drive access via Dolphin (kio-gdrive) fails with "Requested resource is forbidden"
Product: [Frameworks and Libraries] kio-extras Reporter: pioner14 <pioner14>
Component: defaultAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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 ***