| Summary: | Unnecessary prompt for authentication when opening notification widget containing file copy notification using kio-admin that's been there for more than 5 minutes | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Angad <angxddeep> |
| Component: | Notifications | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | felixernst, kde, nate |
| Priority: | NOR | ||
| Version First Reported In: | 6.2.2 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Video showing the bug
The exact notification causing the bug |
||
Created attachment 175344 [details]
The exact notification causing the bug
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. 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. Btw, this issue still persists *** This bug has been marked as a duplicate of bug 476394 *** |
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