Bug 476394 - Access to notification history requires password if the list contains past kio-admin related items
Summary: Access to notification history requires password if the list contains past ki...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (other bugs)
Version First Reported In: 5.27.8
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: usability
: 495547 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-11-01 06:37 UTC by Yevhen Popok
Modified: 2025-03-29 14:29 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screencast of the Notification history "kio-admin" issue (2.50 MB, video/x-matroska)
2023-11-01 06:37 UTC, Yevhen Popok
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yevhen Popok 2023-11-01 06:37:30 UTC
Created attachment 162783 [details]
Screencast of the Notification history "kio-admin" issue

SUMMARY
If the user performed some "kio-admin"-related action (e.g. copied files in Dolphin) and it was saved in the Notification history, after PolKit authentication expires (5 minutes), the user will be asked for a password after opening the "Notification" widget.


STEPS TO REPRODUCE
1. Create root-owned directory
sudo mkdir -p /tmp/test
2. Create test file inside this directory
sudo fallocate -l 1G /tmp/test/1G-File
3. Using Dolphin file manager navigate to the /tmp/test/ directory
4. Gain administrative privileges using admin:// KIO protocol
Input admin:/tmp/test in the address bar and enter password
5. Make a copy of the 1G-File using drag'n'drop and rename function
6. Use the "Notification" widget or tray item to make sure that the "copy" action was recorded in the notification history. 
7. Wait until Polkit's temporary authorization expires (on most distros it's hardcoded to 5 minutes)
8. Open the "Notification" widget or tray item to see the Notification history

OBSERVED RESULT
I need to input the administrator password presumably because Plasma needs access to the admin:/// location

EXPECTED RESULT
I'd like to get asked for a password only during some interaction with the Notification history list item (e.g. "Open" action). Alternatively, I don't mind getting interaction with admin:/// disabled on the Notifications widget or tray item

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Fedora 39 Kinoite (also tested with Debian 12)
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Screencast which shows this issue, is attached to this report.
Comment 1 Nate Graham 2023-11-01 20:20:45 UTC
Absolutely fascinating. Thank you for the very well-explained bug report. Can reproduce.
Comment 2 Nate Graham 2025-03-29 14:29:13 UTC
*** Bug 495547 has been marked as a duplicate of this bug. ***