Bug 339654 - Plasma applet for NetworkManager OpenVPN profile import is broken
Summary: Plasma applet for NetworkManager OpenVPN profile import is broken
Status: RESOLVED FIXED
Alias: None
Product: plasma-nm
Classification: Plasma
Component: editor (show other bugs)
Version: 0.9.3.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Lukáš Tinkl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-04 03:11 UTC by Cygni X
Modified: 2014-10-08 14:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cygni X 2014-10-04 03:11:51 UTC
When trying to import new profile from a configuration file, the following error occurs:

Error copying file to ~/.kde4/share/apps/networkmanagement/certificates/client_04_client_04: Destination file exists

Though the configuration file has something like 'ca "~/client_04/ca.crt",' if continued with the setup, under VPN (openvpn) on Edit Connection, CA file field has '/networkmanagement/certificates/client_04_ca' and Certificate field has '~/.kde4/share/apps/networkmanagement/certificates/client_04_client_04.' The Key field is unaffected.

Reproducible: Always

Steps to Reproduce:
1. Import OpenVPN configuration file from Connection Editor
2.
3.

Actual Results:  
An error prompt is displayed complaining the certificate file exist, paths of the certificates do not match paths on the imported profile.

Expected Results:  
Each imported configuration should be unique and the certificate paths should mirror what is on the configuration file.

Sample configuration file client_04.conf:

client
remote 192.168.1.194 1194
ca "~/client_04/ca.crt"
cert "~/client_04/client_04.crt"
key "~/client_04/client_04.key"
tls-auth "~/client_04/ta.key" 1
comp-lzo yes
dev tun
proto udp
nobind
auth-nocache
script-security 2
persist-key
persist-tun
user nobody
group nobody
cipher AES-256-CBC
remote-cert-tls server
Comment 1 Jan Grulich 2014-10-08 14:00:33 UTC
Git commit 3a15b44e65a3a391d62739e5fc8f844490cfdd79 by Jan Grulich.
Committed on 08/10/2014 at 14:00.
Pushed by grulich into branch '0.9.3'.

Ask user if they want to copy their certificates under KDE configuration during OpenVPN import

REVIEW:120530
Related: bug 329837

M  +42   -12   vpn/openvpn/openvpn.cpp

http://commits.kde.org/plasma-nm/3a15b44e65a3a391d62739e5fc8f844490cfdd79
Comment 2 Jan Grulich 2014-10-08 14:01:59 UTC
Git commit fe3814d3cd182d29b8e0c03bd3ae3c1e9b6118a6 by Jan Grulich.
Committed on 08/10/2014 at 14:00.
Pushed by grulich into branch 'master'.

Ask user if they want to copy their certificates under KDE configuration during OpenVPN import

REVIEW:120530
Related: bug 329837

M  +42   -12   vpn/openvpn/openvpn.cpp

http://commits.kde.org/plasma-nm/fe3814d3cd182d29b8e0c03bd3ae3c1e9b6118a6
Comment 3 Jan Grulich 2014-10-08 14:02:13 UTC
Git commit c81c3cf85c96c8a177eaa9193672c2ae813119cd by Jan Grulich.
Committed on 08/10/2014 at 14:00.
Pushed by grulich into branch 'Plasma/5.1'.

Ask user if they want to copy their certificates under KDE configuration during OpenVPN import

REVIEW:120530
Related: bug 329837

M  +42   -12   vpn/openvpn/openvpn.cpp

http://commits.kde.org/plasma-nm/c81c3cf85c96c8a177eaa9193672c2ae813119cd