Bug 475571

Summary: Authentication dialog is not dismissed when I hit Cancel
Product: [Applications] dolphin Reporter: Paolo Zamponi <feus73>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns, kfm-devel
Priority: NOR Keywords: qt6
Version: 23.08.2   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Paolo Zamponi 2023-10-13 15:08:15 UTC
SUMMARY
***

STEPS TO REPRODUCE
1. Open Dolphin, then move to a folder which requires administrator's right, e.g. "/";
2. Right click, then click on "Open as administrator";
3. Simply click on "Cancel".

OBSERVED RESULT
Authentication dialog is dismissed, but it reappears after a while (and so on if I click again on "Cancel").

EXPECTED RESULT
Authentication dialog is simply dismissed.

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.6.0
Kernel Version: 6.2.0-34-generic (64-bit)
Graphics Platform: Wayland 

ADDITIONAL INFORMATION
* This situation doesn't occur e.g. with Discover: a click on "Cancel" dismiss the authentication dialog as expected.

* Output of journal -f when I click on "Cancel":

13/10/23 16:52	polkit-kde-authentication-agent-1	Dialog cancelled
13/10/23 16:52	polkit-kde-authentication-agent-1	COMPLETED
13/10/23 16:52	polkit-kde-authentication-agent-1	Completed:  false
13/10/23 16:52	polkit-kde-authentication-agent-1	Finishing obtaining privileges
13/10/23 16:52	polkit-kde-authentication-agent-1	Listener adapter polkit_qt_listener_initiate_authentication_finish
13/10/23 16:52	polkit-kde-authentication-agent-1	polkit_qt_listener_initiate_authentication_finish callback for  0x7f3a58003da0
13/10/23 16:52	polkit-kde-authentication-agent-1	Finish obtain authorization: false
13/10/23 16:52	polkit-kde-authentication-agent-1	Finishing obtaining privileges
13/10/23 16:52	polkit-kde-authentication-agent-1	Finish obtain authorization: false
13/10/23 16:52	polkitd(authority=local)	Operator of unix-session:6 FAILED to authenticate to gain authorization for action org.kde.kio.admin.commands for system-bus-name::1.207 [/usr/bin/dolphin --new-window --select admin:///] (owned by unix-user:danpao)
13/10/23 16:52	dolphin	"org.freedesktop.DBus.Error.AccessDenied" ""
13/10/23 16:52	polkit-kde-authentication-agent-1	Listener adapter polkit_qt_listener_initiate_authentication
13/10/23 16:52	polkit-kde-authentication-agent-1	GSimpleAsyncResult: 0x5557999dfa30
13/10/23 16:52	polkit-kde-authentication-agent-1	polkit_qt_listener_initiate_authentication callback for  0x7f3a58003da0
13/10/23 16:52	polkit-kde-authentication-agent-1	Initiating authentication
13/10/23 16:52	polkit-kde-authentication-agent-1	Action description has been found
13/10/23 16:52	polkit-kde-authentication-agent-1	User:  "unix-user:danpao"
13/10/23 16:52	polkit-kde-authentication-agent-1	Trying again
13/10/23 16:52	polkit-kde-authentication-agent-1	REQUEST
13/10/23 16:52	polkit-kde-authentication-agent-1	Request:  "Password: "
Comment 1 Patrick Silva 2023-10-14 13:59:25 UTC

*** This bug has been marked as a duplicate of bug 468793 ***