Bug 479020 - Attempting to import a wireguard configuration with an invalid name leads to a misleading error message
Summary: Attempting to import a wireguard configuration with an invalid name leads to ...
Status: REPORTED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_networkmanagement (other bugs)
Version First Reported In: git-stable-Plasma/5.27
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-26 11:01 UTC by Andreas Hartmann
Modified: 2023-12-30 05:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Hartmann 2023-12-26 11:01:02 UTC
SUMMARY
NetworkManager requires that when importing a .conf file with a wireguard config that it contains the name of the interface be included in the filename. In the Linux kernel, interface names can only be up to 16 bytes in length. Attempting to import a longer filename with nmcli yields the following error message:
Error: failed to import 'sadadsadasdasdasdad.conf': The name of the WireGuard config must be a valid interface name followed by ".conf".

Doing the same with KDE Plasma NetworkManager integration in system settings ("Import VPN connection") yields: "Failed to import VPN connection: NetworkManager is missing support for OpenVPN" which makes no sense.

STEPS TO REPRODUCE
1. Use import VPN connection to import a valid wireguard .conf file, but with a name that is longer than 16 bytes.

OBSERVED RESULT
"Failed to import VPN connection: NetworkManager is missing support for OpenVPN"

EXPECTED RESULT
A correct and helpful error message

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION
Happy holidays!