Public bug reported:

Prerequisites:

1. network-manager is installed
2. network-manager-openconnect-gnome is installed
3. Store the following text file:

% cat uni-graz-vpn.config
[openconnect]
Description=UniGraz
Host=univpn.uni-graz.at
CACert=(null)
Proxy=
CSDEnable=0
CSDWrapper=
UserCertificate=(null)
PrivateKey=(null)
FSID=0
StokenSource=disabled
StokenString=

Action (in the Network Manager GUI):

1. "Edit Connections..."
2. "Add"
3. "Import a saved VPN configuration"
4. Select the file uni-graz-vpn.config
5. Among the "VPN connections"
6. Choose "UniGraz"
7. A HTTPS request to univpn.uni-graz.at is taking place

Expected behavior:

8. A prompt for username and password is shown

Actual behavior:

8. An error message appears: "Failed to open CA file '/(null)': Error
while reading file." and "Failed to open HTTPS connection to univpn.uni-
graz.at"

Reason:

This package is uncapable of converting the export file content "(null)"
into an internal NULL value. Instead it is assumed as string "(null)"
and a slash is prepended for the filepath: "/(null)". The text file was
created by using network manager's export configuration utility. If you
replace "(null)" with "" in the configuration file, it will work
properly. Very annoying for non-technical users. Please fix this.

Debug information:

% lsb_release -rd
Description:    Linux Mint 18 Sarah
Release:        18
% apt-cache policy network-manager-openconnect
network-manager-openconnect:
  Installed: 1.2.0-0ubuntu0.16.04.1
  Candidate: 1.2.0-0ubuntu0.16.04.1
  Version table:
 *** 1.2.0-0ubuntu0.16.04.1 500
        500 http://ftp.kaist.ac.kr/pub/ubuntu xenial-updates/universe amd64 
Packages
        100 /var/lib/dpkg/status
     1.0.2-1build1 500
        500 http://ftp.kaist.ac.kr/pub/ubuntu xenial/universe amd64 Packages

** Affects: network-manager-openconnect (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: export https import null

** Attachment added: "Screenshot of the error message: Failed to open CA file 
'/(null)': Error while reading file."
   https://bugs.launchpad.net/bugs/1673015/+attachment/4838051/+files/vpn.png

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1673015

Title:
  openconnect config file import cannot handle "(null)" values

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager-openconnect/+bug/1673015/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to