Bug 470335 - Wrong error message when trying to import a VPN config owned by root
Summary: Wrong error message when trying to import a VPN config owned by root
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Networking in general (other bugs)
Version First Reported In: master
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-27 14:49 UTC by git
Modified: 2025-07-12 20:05 UTC (History)
1 user (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 git 2023-05-27 14:49:42 UTC
SUMMARY
Trying to import a VPN connection from a config file that is owned by root will lead to the error message:

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


STEPS TO REPRODUCE
1. Use the root user to create an empty file a.conf
2. Go to "Connections" section of system settings
3. Click on the Plus icon ("Add new connection") and in the resulting menu click on "Import VPN connection", then browse to a.conf from earlier and load it

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

EXPECTED RESULT
An error message that conveys the true nature of the problem, i.e. that the file mustn't be owned by root.

ADDITIONAL INFORMATION:
I got into this problem because my wireguard config file, which was located at /etc/wireguard, was not picked up by network manager (maybe this should be a separate bug report?). In order to get that file into my home directory, I had to be root.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Comment 1 Ben Cooksley 2024-12-23 18:23:40 UTC
Bulk transfer as requested in T17796
Comment 2 Nate Graham 2025-06-16 19:33:21 UTC
Hi, and thanks for the bug report, and I'm very sorry we weren't able to get to this until now. A lot has changed since the issue was reported; can I ask you to check and see if it still happens in Plasma 6.3.5 or later? Thanks a lot!
Comment 3 Bug Janitor Service 2025-07-01 03:47:36 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 git 2025-07-12 20:05:09 UTC
Thanks for getting back to this, Nate! I did not receive an email notification for your comment, only for the comment of the Bug janitor service, otherwise I'd have replied sooner.
I just re-did all the steps to reproduce the issue and it has indeed been fixed in the meantime! Awesome.