nm-connection-editor GUI enters an infinite loop with tk_file_chooser_select_filename: assertion 'filename != NULL' after selecting p12 file

Bug #1254220 reported by Roman Yepishev
74
This bug affects 16 people
Affects Status Importance Assigned to Milestone
network-manager-openvpn (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

While trying to create new OpenVPN connection the connection enters seems to enter an infinite loop printing the following to stderr:

** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: cert
** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: cert
** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: cert
** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: ca
(nm-connection-editor:2535): Gtk-CRITICAL **: gtk_file_chooser_select_filename: assertion 'filename != NULL' failed
(nm-connection-editor:2535): Gtk-CRITICAL **: gtk_file_chooser_select_filename: assertion 'filename != NULL' failed
** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: ca
** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: ca
** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: ca
** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: ca
** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: ca
** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: ca
(nm-connection-editor:2535): Gtk-CRITICAL **: gtk_file_chooser_select_filename: assertion 'filename != NULL' failed
(nm-connection-editor:2535): Gtk-CRITICAL **: gtk_file_chooser_select_filename: assertion 'filename != NULL' failed
** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: cert
** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: cert
** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: key
** (nm-connection-editor:2535): WARNING **: Invalid setting VPN: key

It repeats these lines over and over.

The UI is unresponsive during this making it impossible to configure a VPN connection.

Here's the video of the issue: http://www.youtube.com/watch?v=PzkzSuOBA-I

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: network-manager-openvpn-gnome 0.9.8.2-1ubuntu2
ProcVersionSignature: Ubuntu 3.11.0-13.20-generic 3.11.6
Uname: Linux 3.11.0-13-generic x86_64
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: amd64
Date: Fri Nov 22 19:58:27 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-11-13 (9 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
MarkForUpload: True
SourcePackage: network-manager-openvpn
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Roman Yepishev (rye) wrote :
Revision history for this message
Roman Yepishev (rye) wrote :

There seems to be a problem handling the .p12 files, when .p12 file is exploded into ca/client-key/client-cert .pem file the UI works properly.

Roman Yepishev (rye)
summary: nm-connection-editor GUI enters an infinite loop with
tk_file_chooser_select_filename: assertion 'filename != NULL' after
- selecting certificate file
+ selecting p12 file
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager-openvpn (Ubuntu):
status: New → Confirmed
Revision history for this message
Steve O (stratus-ss) wrote :

I can confirm this is still present in Trusty (14.04) Alpha 2

Revision history for this message
Vedran Vyroubal (vvyroub) wrote :

I can confirm that this bugs is still present in 14.04 Beta 2

Revision history for this message
Jorge Fonseca (filipok) wrote :

I can confirm that this bugs is still present in xubuntu 14.04 LTS

Revision history for this message
Chris (chrisliaw) wrote :

It is still exist in 14.04 LTS. Is it any chance it will be fixed?

Thanks!

Revision history for this message
Priit Pihus (priit-l) wrote :

Yes, still exists in 14.04 LTS and so far I've found no solution for it. Pfsense exports keys in p12 format and it should affect a lot of users.

Revision history for this message
wurst (wurst) wrote :

very annoying. :-( !!!

Revision history for this message
fralk (fmonte) wrote :

The problem is simply how the dialog UI manages fields "user", "cert", "key" to be sure that either all of them contain the same pkcs12 file path or none of them contain it. This is implemented with event handlers triggered when field selections change.
Unfortunately this handlers are triggered in such a way that an endless loop occurs.

The affected library is /usr/lib/NetworkManager/libnm-openvpn-properties.so of package NetworkManager-openvpn-0.9.8.2

A patch is attached for the source properties/auth-helpers.c

Revision history for this message
fralk (fmonte) wrote :

Here it is a patched libnm-openvpn-properties.so you can test by replacing the one in /usr/lib/NetworkManager

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch for the properties/auth-helpers.c source" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Ronald (ronald-bos-msc) wrote :

Hi, I just tested the patched libnm-openvpn-propterties.so and I can confirm that for me, it now works (while it did _not_ work with the unpatched .so).

Revision history for this message
Gabriel (giovino) wrote :

I can confirm the patched libnm-openvpn-properties.so file provided by fralk in comment #11 fixed the the problem I am/was experiencing on 14.04.

Revision history for this message
gpothier (gpothier) wrote :

This bug is still present in 14.10

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.