Bug 502080

Summary: Add acount dialog crashes when using OAuth2
Product: [Frameworks and Libraries] Akonadi Reporter: cedar-glade-banish
Component: EWS ResourceAssignee: kdepim bugs <pim-bugs-null>
Status: REPORTED ---    
Severity: crash CC: benmordecai, carl, krissn
Priority: NOR    
Version First Reported In: 6.3.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description cedar-glade-banish 2025-03-27 16:42:19 UTC
SUMMARY
When adding an exchange account (e.g. in merkuro calendar) using OAuth2, the whole dialog where one enters the server details crashes, no account is added to the list.

STEPS TO REPRODUCE
1. Add akonadi account of type "Microsoft Exchange Server (EWS)" (I tried it in akonadi-console and merkuro) 
2. Enter valid email (I tried two different ones)
3. choose OAuth2 (Office 365)
4. Press on "Try connect"
5. Enter password in opened microsoft login page (and 2fa maybe)
6. Confirm

OBSERVED RESULT
Notice how the MS login page and the server configuration dialog closed unexpectedly whilst no account has been added

EXPECTED RESULT
The server dialog shouldn't crash and create and account upon confirmation

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 6800U with Radeon Graphics
Memory: 27.1 GiB of RAM
Graphics Processor: AMD Radeon Graphics
DE/WM: Hyprland

ADDITIONAL INFORMATION
I tried getting a backtrace, but there was no dialog from drkonqi (which is installed). This isn't a surprise as the main app (e.g. merkuro) didn't crash, if I can provide more infos / a backtrace I am happy to help.
Comment 1 benmordecai 2025-04-28 14:19:52 UTC
Confirmed for me on Arch. My crash occurs when opening the dialogue opens.