Bug 495547 - Unnecessary prompt for authentication when opening notification widget containing file copy notification using kio-admin that's been there for more than 5 minutes
Summary: Unnecessary prompt for authentication when opening notification widget contai...
Status: RESOLVED DUPLICATE of bug 476394
Alias: None
Product: plasmashell
Classification: Plasma
Component: Notifications (other bugs)
Version First Reported In: 6.2.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-29 20:22 UTC by Angad
Modified: 2025-03-29 14:29 UTC (History)
3 users (show)

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


Attachments
Video showing the bug (1017.60 KB, video/mp4)
2024-10-29 20:22 UTC, Angad
Details
The exact notification causing the bug (45.48 KB, image/png)
2024-10-29 20:22 UTC, Angad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Angad 2024-10-29 20:22:02 UTC
Created attachment 175343 [details]
Video showing the bug

SUMMARY

So let's start by saying it's a bit rare to get this but nonetheless it's a bug, so whenever I copy something to a directory that requires privileged permission for example in my case /etc/dnf. I had to open the directory as an admin then when I copied my dnf.conf to it things went smoothly, but the issue is that you get the notification saying that the file has copied (I know normal behavior 😅) but the issue is if you don't dismiss it the next time you open notifications it asks  for a sudo password on the kio-admin pop up

STEPS TO REPRODUCE
1. copy a file as admin to a directory
2. don't dismiss the copied notification

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 6.2.
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION
Comment 1 Angad 2024-10-29 20:22:27 UTC
Created attachment 175344 [details]
The exact notification causing the bug
Comment 2 Nate Graham 2024-10-30 16:17:27 UTC
I can reproduce the issue. Notably, I had to wait 5 minutes after doing the copy, presumably to allow enough time for the auth token to expire. After 5 minutes, opening the Notifications widget when there's a kio-admin copy notification in it does unexpectedly prompt for authentication.
Comment 3 Felix Ernst 2024-10-31 14:42:51 UTC
I guess when the notification is opened it tries to retrieve some information from that file, which means it will access the file through the admin protocol. However, since the authorisation has already expired, a password prompt appears to show this information.

I guess depending on how important that information is, we might be able to simply skip it for admin, or more fancily, check if the user is still authorised and only retrieve the information then.
Comment 4 Angad 2024-12-18 16:35:04 UTC
Btw, this issue still persists
Comment 5 Nate Graham 2025-03-29 14:29:13 UTC

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