Bug 474658

Summary: rename of wireguard connection not possible
Product: [Plasma] plasma-nm Reporter: Petric Frank <pfrank>
Component: editorAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.27.5   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:

Description Petric Frank 2023-09-18 16:20:10 UTC
SUMMARY
Imported wireguard connection (here: wg0) can not be renamed to a more meaningful name.

STEPS TO REPRODUCE
1. copy wireguard client config to /etc/wireguard/wg0.conf
2. import it via "nm-cli connection import type wireguard file /etc/wireguard/wg0.conf"
3. open plasma-nm applet
4. select imported connection - named here as wg0
5. change name to (for example) "home system"
6. get message: connection.interface-name: new connection wireguard: interface name contains invalid character (translated from german)

OBSERVED RESULT
Rename failed

EXPECTED RESULT
Rename accepted

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian GNU/Linux 12
(available in About System)
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
It seems that the applet re-uses the connection name as interface name also. It should provide a separate field or select the interface automatically.
So it allows to give the connection a more meaningful name.

The connection as such is working. The remote system is accessible.