Bug 473992

Summary: WireGuard connection fails to disconnect if "!" is in the name
Product: [Plasma] plasmashell Reporter: Alessandro Astone <ales.astone>
Component: Networking in generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.27.7   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alessandro Astone 2023-08-31 14:09:16 UTC
SUMMARY
WireGuard connection fails to disconnect if "!" is in the name


STEPS TO REPRODUCE
1. Rename a WireGuard connection to include "!" in the name
2. Connect, verify that it works
3. Disconnect

OBSERVED RESULT
It does not disconnect

EXPECTED RESULT
It disconnects

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 38 KDE
(available in About System)
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Comment 1 Alessandro Astone 2023-09-01 09:49:07 UTC
From DBus org.freedesktop.NetworkManager i gather that the name actually gets changed to replace "!" with "_".

Invoking org.freedesktop.NetworkManager.Device::Disconnect on the connection works, but after that plasma-nm fails to reconnect to it with "Failed to find a compatible device for this connection". This does not happen if the connection name does not include "!"
Comment 2 Ben Cooksley 2024-12-23 18:23:48 UTC
Bulk transfer as requested in T17796