Bug 427231 - Network Manager imposes unnecessary restrictions on connection names and fails ungracefully
Summary: Network Manager imposes unnecessary restrictions on connection names and fail...
Status: RESOLVED DUPLICATE of bug 479179
Alias: None
Product: plasma-nm
Classification: Plasma
Component: editor (show other bugs)
Version: 5.18.5
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-02 00:16 UTC by Tirenne Fief
Modified: 2024-05-25 06:50 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tirenne Fief 2020-10-02 00:16:21 UTC
SUMMARY
When trying to create a new network connection configuration (WireGuard in my case), Network Manager (/usr/sbin/NetworkManager) throws an unnecessary error with connection names that are longer than 15 characters or which include certain allegedly illicit characters. It then closes, causing all work done configuring the connection to be lost.

STEPS TO REPRODUCE
1. Open Network Manager.
2. Create a new connection (WireGuard in my case).
3. Edit as desired.
4. Try to save the new connection.

OBSERVED RESULT
1. Network Manager closes the connection creation dialog box and eliminates all the user's work configuring the connection.
2. Network Manager throws an error through the Plasma notification system.
3. The error alleges that the connection name was too long or contained one or more illicit characters.

EXPECTED RESULT
1. Network Manager should not close the connection creation dialog box until either (i) the user enters acceptable configuration parameters and clicks on OK, or (ii) the user clicks on CANCEL. A bad field value should not auto-abort the configuration process with no chance to fix the error(s).
2. Network Manager should advise the user of the error through a modal dialog box that returns to the connection editor window, so that errors can be corrected, rather than forcing the user to start the whole process over from scratch.
3. The 15-character limit and the refusal to accept certain characters (space and "-", as far as I could tell) do not apply to pre-existing connections (Ethernet, WLAN, etc.) and therefore are assumed to be spurious limitations existing only in this part of the Network Manager code.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 20.04, kernel 5.4.0-050400-generic
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Comment 1 Milan Knížek 2024-05-25 06:50:56 UTC
Possibly a duplicate of https://bugs.kde.org/show_bug.cgi?id=479179

*** This bug has been marked as a duplicate of bug 479179 ***