Bug 472813

Summary: Importing a wireguard config file with a filename that is longer than 15 characters report an incorrect error.
Product: [Applications] systemsettings Reporter: Oliver <place4876>
Component: kcm_networkmanagementAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: jgrulich, nate
Priority: NOR    
Version First Reported In: 5.27.5   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Oliver 2023-07-30 21:52:52 UTC
SUMMARY
When the user is trying to import a valid wireguard config file that is longer than 15 characters, the error message "Failed to import VPN connection: NetworkManager is missing support for OpenVPN" appears at the top within a red banner.

If I were to rename the same config file to a shorter name, the import works fine.


STEPS TO REPRODUCE
1. Install the wireguard package first
2. Navigate to settings -> Network Connections
3. Add a connection -> Pick vpn from config file
3. Choose wireguard config file with a long name

OBSERVED RESULT
The banner error "Failed to import VPN connection: NetworkManager is missing support for OpenVPN" appears.

EXPECTED RESULT
Warn the user that the actual error is the lengthy filename.

SOFTWARE/OS VERSIONS
Debian Bookworm
KDE Plasma Version: 5.27.5