Summary: | "Not authorized to perform operation" error message is displayed when user cancels the authentication window when opening a drive that requires a password | ||
---|---|---|---|
Product: | [Applications] dolphin | Reporter: | Filip <filip.kendes1> |
Component: | general | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | akselmo, bugseforuns, kde, kfm-devel |
Priority: | NOR | ||
Version First Reported In: | 25.04.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | showcase |
Can confirm the error is a bit weird. It seems to come from `/kio-extras/sftp/kio_sftp.cpp:979`. kio_sftp is not handling closing the passphrase dialog (spawned by kded6) properly and instead treats it as generic connection error. Er, nevermind my previous comment. I was testing completely different thing. Sorry for the noise. Bumping this issue. It's still reproducible in 25.04.0 Akseli Lahtinen, do you have 2 disks/partitions to test this? (In reply to Filip from comment #3) > Bumping this issue. It's still reproducible in 25.04.0 > > Akseli Lahtinen, do you have 2 disks/partitions to test this? I don't have password protected drive. I can try to check if this happens when adding a regular folder with password to places panel, if that's possible. I might misunderstand you here, but this is not a password protected drive. I need to type my user's password to open it, not the drive's password. I thought that was a standard procedure. I actually never thought why it asks me for the password in the first place. Oh, thats odd. It never asks password for me. Do you have no password when logging in? Or is the drive used by windows? I have a password when I log in. Drive is just a storage drive formatted as NTFS. I do have Windows on a third drive so you might say that Windows is using it, not sure? I don't have anything installed on it though. (In reply to Filip from comment #7) > I have a password when I log in. Drive is just a storage drive formatted as > NTFS. I do have Windows on a third drive so you might say that Windows is > using it, not sure? I don't have anything installed on it though. Ah okay, that explains. I don't have windows drive to test this with, but I can try to replicate the issue some other way, maybe a places item that requires a log in when i click on it. I believe this is coming from UDisks. We merely ask UDisks to mount the device. If it returns org.freedesktop.PolicyKit.Error.NotAuthorized or org.freedesktop.UDisks2.Error.NotAuthorized we can’t know any better. Weirdly enough, we do handle this case: https://invent.kde.org/frameworks/solid/-/blob/master/src/solid/devices/backends/udisks2/udisksdevice.cpp?ref_type=heads#L779 Wonder what’s going wrong then... |
Created attachment 176808 [details] showcase SUMMARY "Not authorized to perform operation" error message is displayed when user cancels the authentication popup when opening a drive that requires a password STEPS TO REPRODUCE 1. Click on some drive in the Places panel that requires a password 2. Click Cancel on the Authorization window or close by clicking on the X or ESC key OBSERVED RESULT "Not authorized to perform operation" error message is displayed EXPECTED RESULT Message shouldn't be displayed because user canceled the operation SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.2.4 KDE Frameworks Version: 6.9.0 Qt Version: 6.8.1 Kernel Version: 6.12.4-arch1-1 (64-bit) Graphics Platform: Wayland