Bug 503908

Summary: Credential window closes itself when attempting to add DAV groupware resource calendar source
Product: [Applications] Merkuro Reporter: Felix Urbasik <fell>
Component: generalAssignee: Claudio Cambra <claudio.cambra>
Status: REPORTED ---    
Severity: major CC: asturm, carl, me, norman, redstar, rixx-kde, surgery-rink-tag
Priority: NOR    
Version First Reported In: 25.04.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Felix Urbasik 2025-05-08 08:06:53 UTC
SUMMARY
When attempting to add a DAV groupware resource calendar source, the credential window asking for a username and a password appears briefly, but closes itself about one second later. This makes it impossible to add a CalDAV calendar to Merkuro.

STEPS TO REPRODUCE
1. Set up an Arch Linux system with KDE Plasma. Install Merkuro. Open the application.
2. Go to Settings → Configure Merkuro Calendar... → Accounts → Add Account
3. Chose "DAV groupware resource"
4. Observe the credential window opening and closing.

OBSERVED RESULT
The credential window closes itself after about one second.
It does not appear to be a crash. Merkuro stays functional.

EXPECTED RESULT
The credential window should stay open, allowing the user to enter credentials.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2080 Ti

ADDITIONAL INFORMATION
I checked dmesg and the "Crashed Process Viewer" to confirm that there is no crash occuring.
Also, shouldn't the credential window ask for a URL as well?

LOG OUTPUT
I ran Merkuro from a terminal and reproduced the bug. The log output seems unrelated:
```
qrc:/qt/qml/org/kde/merkuro/calendar/qml/Main.qml:683:9: QML ScheduleView: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/merkuro/calendar/qml/Main.qml:659:9: QML MonthView: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
qrc:/qt/qml/org/kde/kirigamiaddons/statefulapp/labs/NativeMenuItem.qml:55: ReferenceError: parent is not defined
kf.i18n: 0 instead of 1 arguments to message "Configure %1" supplied before conversion
qrc:/qt/qml/org/kde/akonadi/AgentConfigurationForm.qml:113:9: QML ScrollablePage: Created graphical object was not placed in the graphics scene.
```
Comment 1 Andreas Sturmlechner 2025-07-05 13:18:37 UTC
*** Bug 505419 has been marked as a duplicate of this bug. ***
Comment 2 Andreas Sturmlechner 2025-07-05 13:18:50 UTC
*** Bug 504739 has been marked as a duplicate of this bug. ***
Comment 3 Hirad 2025-07-09 04:43:44 UTC
Having the exact same issue on version 25.04.03
Operating System: Arch Linux 
KDE Plasma Version: 6.4.2
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × 11th Gen Intel® Core™ i5-11400F @ 2.60GHz
Memory: 32 GiB of RAM (31.2 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 3060
Comment 4 Norman Rieß 2025-07-26 07:46:36 UTC
Also same issue.

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.1
Kernel Version: 6.15.6
Graphics Platform: Wayland
Processors: AMD Ryzen 7 7840HS
Memory:  54 GiB of RAM
Graphics Processor: Radeon 780M