Bug 944769 - NetworkManager-strongswan-gnome / NM Strongswan Applet not working
Summary: NetworkManager-strongswan-gnome / NM Strongswan Applet not working
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Network (show other bugs)
Version: 13.2
Hardware: All openSUSE 13.2
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: Dominique Leuenberger
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-07 21:23 UTC by Forgotten User fnq7RTxQcb
Modified: 2015-09-30 13:49 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
nm-strongswan-dialog.ui.broken.patch (743 bytes, patch)
2015-09-07 21:23 UTC, Forgotten User fnq7RTxQcb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User fnq7RTxQcb 2015-09-07 21:23:52 UTC
Created attachment 646456 [details]
nm-strongswan-dialog.ui.broken.patch

Hello
this applet is not working with existing packages:

NetworkManager-strongswan-1.3.1-4.2.x86_64
NetworkManager-strongswan-gnome-1.3.1-4.2.x86_64

NM applet window is broken and displays only "identity" and "ipv4" tabs. you cant configure/see main configuration tab regards to VPN server IP, certificates and so on. 

this issue is also reported on various other places like:

[1]:
network-manager-strongswan: bug in config file means strongswan unrecognised
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773764

[2]:
[regression] network-manager-strongswan configuration GUI broken
https://bugs.launchpad.net/ubuntu/+source/network-manager-strongswan/+bug/1448879

The first one provides fix itself - issue is exactly same within OpenSUSE 13.2 version as the default value for "properties=" line is just: "properties=libnm-strongswan-properties" without leading full path for strongswan NM library "/usr/lib64/NetworkManager/libnm-strongswan-properties" (for x86_64 arch)

The second link what I found is report about broken GUI applet reported by someone. I just provided there an patch how to fix this issue. Attaching it here as well. With this patch strongswan NM applet is fully usable.
Comment 1 Dominique Leuenberger 2015-09-08 06:18:09 UTC
Thank you very much for reporting this detailed bug including all the solutions to it!

I am just preparing a package for testing, that should be ready shortly. I'll let you know where from you can grab it for a test.
Comment 2 Dominique Leuenberger 2015-09-08 06:28:55 UTC
Test packages are available at
http://download.opensuse.org/repositories/home:/dimstar:/branches:/GNOME:/Factory/openSUSE_13.2/ (for openSUSE 13.2, as this bug is reported against).

Please test those packages and let me know if all is fine. If all is good, I can initiate an online-update process
Comment 3 Forgotten User fnq7RTxQcb 2015-09-08 17:19:44 UTC
Hi Dominique
thanks for fast reaction. I've just checked your packages and found this in "/etc/NetworkManager/VPN/nm-strongswan-service.name":

properties=@LIDIR@/NetworkManager/libnm-strongswan-properties

..instead of absolute path. 


"/usr/share/gnome-vpn-properties/strongswan/nm-strongswan-dialog.ui" changes seems OK.
Comment 4 Dominique Leuenberger 2015-09-08 22:36:36 UTC
Beh, I'm collecting stupidity points today.

The patch was correct (minus one type), but the service.name was not handled by configure as I'd expected it (no idea why they do it the way they do in this case).

so I extended the patch, and @LIBDIR@ (which was misspelled before) is now correctly replaced with /usr/lib64, resp /usr/lib on i586, thus pointing to the correct directory.

Packages are just building again and will shortly be published at the same location.

Please re-validate.
Comment 5 Forgotten User fnq7RTxQcb 2015-09-09 05:47:56 UTC
Now it is fine :-)
Both files are adjusted correctly and UI dialog for Strongswan in NM is displayed correctly as well. 
Thank you again
Comment 6 Dominique Leuenberger 2015-09-09 06:06:42 UTC
Thank you very much for the quick test turn around..

I submitted the package for review to GNOME:Factory (the devel branch). Once it will be accepted there, it will be forwarded to:

openSUSE:Factory (for an upcoming Tumbleweed Snapshot)
openSUSE:Leap:42.1 (for the upcoming openSUSE Leap 42.1 release)
openSUSE:13.2:Update (to publish the fix as an online update for openSUSE 13.2)

(removing needinfo - all has been provided by Michal)
Comment 7 Swamp Workflow Management 2015-09-21 08:09:50 UTC
openSUSE-RU-2015:1582-1: An update that has one recommended fix can now be installed.

Category: recommended (moderate)
Bug References: 944769
CVE References: 
Sources used:
openSUSE 13.2 (src):    NetworkManager-strongswan-1.3.1-2.6.1
Comment 8 Dominique Leuenberger 2015-09-30 13:49:15 UTC
Fix has been released as update to 13.2 and is checked in to Leap 42.1 and Tumbleweed.