https://bugs.kde.org/show_bug.cgi?id=424065

            Bug ID: 424065
           Summary: Removing connection produces weird notification
           Product: plasma-nm
           Version: 5.19.3
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jgrul...@redhat.com
          Reporter: gm...@ratijas.tk
  Target Milestone: ---

SUMMARY

I was removing old saved Wi-Fi connections from the list via Connections —
System Settings module. Each time I removed one, it gave me this weird error
notification:

> Failed to remove %connection_name%
>
> Error checking authorization: connection was deleted

STEPS TO REPRODUCE
1. Remove Wi-Fi connection via Connections — System Settings Module.

OBSERVED RESULT

Error notification appears.

EXPECTED RESULT

No error. Or at least an error with a descriptive meaningful text which user
can understand and take some actions about it.

SOFTWARE/OS VERSIONS

Arch Linux, KDE/Plasma
lib32-libnm-glib 1.18.5dev+12+ga8746f48ca-1
libnm 1.24.2-1
libnm-glib 1.18.5dev+12+ga8746f48ca-1
networkmanager 1.24.2-1
polkit-qt5 0.113.0-2

ADDITIONAL INFORMATION

Code responsible for posting this is Handler::replyFinished method in
libs/handler.cpp, but it is not the origin. In this case, KDE/Plasma is merely
a messenger, so don't shoot the messenger. It could add some more context
and/or advice though.

Originally posted at FreeDesktop Gitlab:
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/489

Original issue text:

=== ratijas:

I was removing old saved Wi-Fi connections from the list via Connections —
System Settings module. Each time I removed one, it gave me this weird error
notification:

> Failed to remove %connection_name%
> 
> Error checking authorization: connection was deleted

![Screenshot of wild
notification](https://gitlab.freedesktop.org/NetworkManager/NetworkManager/uploads/05718449b33216d81991e32cb9cf1aff/Screenshot_20200707_173502.png)

Who am I wronged in this world? What kind of message is that? What am I (as a
user) supposed to do with that information?

---

> Arch Linux, KDE/Plasma
> lib32-libnm-glib 1.18.5dev+12+ga8746f48ca-1
> libnm 1.24.2-1
> libnm-glib 1.18.5dev+12+ga8746f48ca-1
> networkmanager 1.24.2-1

=== Thomas Haller:

NetworkManager uses PolicyKit for authenticating requests. That means, if your
system user doesn't have permissions, then an operation will fail. You see your
permissions with `nmcli general permissions`. Note that PolicyKit can also
prompt for a password to authenticate the user. It's mostly KDE's
responsibility to integrate an agent for PolicyKit.

>From the provided information it's not clear that this is an issue in
NetworkManager. It looks either like a bug in plasma-nm or a misconfiguration
of PolicyKit on your system.

=== ratijas:

Shame on me, I installed my Arch Linux by guides and tutorials via installer
script. I have little idea about PolicyKit and its configuration. I am more of
a regular™ userⓒ in this field.

Here is my `nmcli general permissions`:

PERMISSION                                                        VALUE 
org.freedesktop.NetworkManager.checkpoint-rollback                auth  
org.freedesktop.NetworkManager.enable-disable-connectivity-check  yes   
org.freedesktop.NetworkManager.enable-disable-network             yes   
org.freedesktop.NetworkManager.enable-disable-statistics          yes   
org.freedesktop.NetworkManager.enable-disable-wifi                yes   
org.freedesktop.NetworkManager.enable-disable-wimax               yes   
org.freedesktop.NetworkManager.enable-disable-wwan                yes   
org.freedesktop.NetworkManager.network-control                    yes   
org.freedesktop.NetworkManager.reload                             auth  
org.freedesktop.NetworkManager.settings.modify.global-dns         auth  
org.freedesktop.NetworkManager.settings.modify.hostname           auth  
org.freedesktop.NetworkManager.settings.modify.own                yes   
org.freedesktop.NetworkManager.settings.modify.system             yes   
org.freedesktop.NetworkManager.sleep-wake                         no    
org.freedesktop.NetworkManager.wifi.scan                          yes   
org.freedesktop.NetworkManager.wifi.share.open                    yes   
org.freedesktop.NetworkManager.wifi.share.protected               yes   

So what was supposed to happen instead of that notification? System (KDE)
should have prompted me for password and confirmation or something?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to