Created attachment 173350 [details] Google error page opened after KMail attempts to authenticate/authorize *** If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** SUMMARY I'm observing this behavior on a new installation of KDE/KMail on Arch Linux. When trying to add a new Gmail account, Kmail (correctly) opens a browser to complete the XOAUTH/OAuth2 process necessary for Gmail. However, there is some sort of error in the URL and/or the request, and Gmail will present an error (see attachments for screenshots of the errors). This does not affect previously-configured Gmail accounts; I have another Arch Linux system (running Plasma 6 but upgraded from Plasma 5) with an existing Gmail account that continues to work without any issues. To try to eliminate potential browser-related issues (I'm using Firefox 130), I've disabled all relevant/pertinent add-ons. I've tried logging into my Gmail account first so that the new tabs opened by KMail would already have the necessary credentials (it didn't help). I've also made sure that I'm completely logged out (logged out, closed all windows, restarted Firefox) to see if that would help (it did not). Based on the wording in the error messages, I suspect (but cannot verify) that this may be due to a recent change in Google authentication URLs or APIs. STEPS TO REPRODUCE 1. Use the Add Account Wizard to attempt to add a new Gmail account. 2. When the browser opens, it will report an error (see attachments). It may also open an additional window or tab with more information about an invalid OAuth2 scope name. OBSERVED RESULT Google reports an error and does not authorize KMail to access Google resources. EXPECTED RESULT The authentication process would proceed as expected and allow the user to authorize KMail to access Google resources. SOFTWARE/OS VERSIONS Windows: N/A macOS: N/A (available in the Info Center app, or by running `kinfo` in a terminal window) Linux/KDE Plasma: Arch Linux kernel 6.17.0-arch1-1 KDE Plasma Version: 6.1.4 KDE Frameworks Version: 6.5.0 Qt Version: 6.7.2 ADDITIONAL INFORMATION I have tried some (very minor) troubleshooting by comparing the working KMail installation on a second system with the new KMail installation that isn't working. The working system previously ran Plasma 5 and still has some Qt5-related packages installed; installing those on the new system did not help. Later today I'll install a secondary browser to verify that this isn't a Firefox-related failure, although that seems unlikely.
Created attachment 173351 [details] Additional browser window/tab opened referencing invalid OAuth2 scope name I couldn't add multiple attachments when opening the bug, so this is the second/additional browser tab/window referenced in the issue description. The text in this window references an invalid OAuth2 scope name, which may be the source of the underlying issue/bug.
Apologies---I thought I had done enough testing to verify that this wasn't a browser issue, but some additional testing proved me incorrect. The error was somehow related to my browser configuration, although I have not yet been able to figure out the specific culprit. Regardless, it's not a KDE bug so I'll go ahead and close this issue.