Bug 468793 - Can't cancel "Manage files as administrator" dialog
Summary: Can't cancel "Manage files as administrator" dialog
Status: CONFIRMED
Alias: None
Product: kio-admin
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 23.04.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 475571 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-04-22 07:53 UTC by Moritz
Modified: 2023-10-14 13:59 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Moritz 2023-04-22 07:53:00 UTC
SUMMARY

STEPS TO REPRODUCE
1. Open Dolphin
2. Go to e.g.: '/'
3. Right click on 'root' > "Open as Administrator"
4. Click "Cancel" in the "Manage files as administrator" dialog where you can enter your password

https://imgur.com/a/fKdEGuN

OBSERVED RESULT
- The dialog just appears again
- Clicking "Cancel" just repeats the same thing, the dialog keeps on appearing.

EXPECTED RESULT
- The dialog gets closed and the operation canceled. 



SOFTWARE/OS VERSIONS
Linux/KDE Plasma: EndeavourOS / Arch
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION:
Dolphin: 23.04.0-1
kio-admin: 23.04.0-1

Also I noticed that I sometimes have to enter my password two times into the "Manage files as administrator" dialog.
1) I enter it once and press "OK"
2) The same dialog pops up again and I need to enter my password a second time and press "OK" again.

I don't know if this has something to do with my issue reported above.
Comment 1 Moritz 2023-04-22 08:02:05 UTC
EDIT: I noticed that I can't cancel a single 
" Authentication Required - PolicyKit1 KDE Agent" dialog.
e.g. when opening "GParted" I get asked for my password and I can't cancel the dialog.
It just keeps on appearing over and over again.

https://imgur.com/a/XAI9BS8

I am sorry for the confusion, I thought my problem is just related to "kio-admin".
Comment 2 Bug Janitor Service 2023-04-22 14:49:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/system/kio-admin/-/merge_requests/10
Comment 3 Harald Sitter 2023-04-22 14:51:36 UTC
The admin protocol related problem at least seems to be partially KIO's fault. KIO appears to keep making requests on resources it was already denied. That is however entirely unrelated to the gparted problem I think.
Comment 4 Nate Graham 2023-04-24 18:44:29 UTC
Can reproduce.
Comment 5 Harald Sitter 2023-04-28 15:18:52 UTC
Git commit f413eb84b3ed435e1fe4af3d0ac7f9554c1fcd9a by Harald Sitter.
Committed on 22/04/2023 at 14:48.
Pushed by sitter into branch 'master'.

more accurately return access errors to the frontend

more correct this way. doesn't do anything about this not getting
handled correctly unfortunately

M  +11   -11   src/helper/main.cpp
M  +23   -22   src/worker.cpp

https://invent.kde.org/system/kio-admin/commit/f413eb84b3ed435e1fe4af3d0ac7f9554c1fcd9a
Comment 6 Patrick Silva 2023-09-16 15:54:49 UTC
i have just noticed this bug on my system.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Graphics Platform: Wayland
Comment 7 Patrick Silva 2023-10-14 13:59:25 UTC
*** Bug 475571 has been marked as a duplicate of this bug. ***