Elevating privileges for saving root-owned files doesn't work in 6.0 RC1 STEPS TO REPRODUCE 1. Open a root-owned file with kate 2. Modify it and try to save it OBSERVED RESULT Authentication dialog pops up, and when the password is entered it gives an error: "The document could not be saved, as it was not possible to write to [...]" Journal output: ene 17 19:03:36 archlinux-arl polkit-kde-authentication-agent-1[1384]: COMPLETED ene 17 19:03:36 archlinux-arl polkit-kde-authentication-agent-1[1384]: Completed: true ene 17 19:03:36 archlinux-arl polkit-kde-authentication-agent-1[1384]: Finishing obtaining privileges ene 17 19:03:36 archlinux-arl polkit-kde-authentication-agent-1[1384]: Listener adapter polkit_qt_listener_initiate_authentication_finish ene 17 19:03:36 archlinux-arl polkit-kde-authentication-agent-1[1384]: polkit_qt_listener_initiate_authentication_finish callback for 0x58fd21d12b00 ene 17 19:03:36 archlinux-arl polkit-kde-authentication-agent-1[1384]: Finish obtain authorization: true ene 17 19:03:36 archlinux-arl polkit-kde-authentication-agent-1[1384]: Dialog cancelled ene 17 19:03:36 archlinux-arl polkit-kde-authentication-agent-1[1384]: Finishing obtaining privileges ene 17 19:03:36 archlinux-arl polkit-kde-authentication-agent-1[1384]: QCoreApplication::postEvent: Unexpected null receiver ene 17 19:03:36 archlinux-arl polkit-kde-authentication-agent-1[1384]: Finish obtain authorization: true EXPECTED RESULT File is saved SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux x86_64 KDE Plasma Version: 5.92.0 KDE Frameworks Version: 5.248.0 Qt Version: 6.7 beta 1 ADDITIONAL INFORMATION
Can reproduce on arch source build.
*** Bug 480156 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/661
Git commit 7c36fe9a29de7012b04a69dec884125e4fbb8418 by Yifan Zhu. Committed on 25/01/2024 at 07:34. Pushed by cullmann into branch 'master'. buffer/katesecuretextbutter: conform to KAuth api KAuth requires the actions to be public slots. M +3 -1 src/buffer/katesecuretextbuffer_p.h https://invent.kde.org/frameworks/ktexteditor/-/commit/7c36fe9a29de7012b04a69dec884125e4fbb8418
*** Bug 480613 has been marked as a duplicate of this bug. ***