After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 710207 - nm_client_get_primary_connection() returns NULL on VPN with route
nm_client_get_primary_connection() returns NULL on VPN with route
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: general
0.9.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
: 722477 (view as bug list)
Depends on:
Blocks: 708771
 
 
Reported: 2013-10-15 18:24 UTC by Jan-Michael Brummer
Modified: 2014-01-18 14:49 UTC
See Also:
GNOME target: ---
GNOME version: 3.9/3.10



Description Jan-Michael Brummer 2013-10-15 18:24:47 UTC
According to the documentation nm_client_get_primary_connection() should return NULL if there is no default route or the route device is not recognized by NM.

After connecting to the office VPN (through WIFI or ethernet), the above function always returns NULL although a default route is present.

This effects the GNOME shell for example which displays a wrong network status for WIFI.

Version     : 0.9.9.0
Release     : 14.git20131003.fc20
Comment 1 Dan Winship 2013-10-15 19:01:29 UTC
what exact gnome-shell version?
Comment 2 Dan Winship 2013-10-15 19:02:23 UTC
also, what is the output of "nmcli dev" and "nmcli con show active"
Comment 3 Jan-Michael Brummer 2013-10-15 19:03:09 UTC
Fedora 20 is using GNOME 3.10
Comment 4 Dan Winship 2013-10-15 19:05:25 UTC
no, what is the exact version number of the fedora gnome-shell package that you have installed
Comment 5 Jan-Michael Brummer 2013-10-15 19:12:20 UTC
* GNOME Shell
Version     : 3.10.0.1
Release     : 1.fc20

* nmcli dev
DEVICE  TYPE      STATE       
wlo1    wifi      connected   
em1     ethernet  unavailable 
lo      loopback  unmanaged   
vpn0    tun       unmanaged   

* nmcli con show active
NAME              UUID                                  DEVICES  DEFAULT  VPN  MASTER-PATH                               
D0NN13D4rk0       0939023a-8151-4255-972a-d718dc5ac746  wlo1     no       no   --                                        
AnyConnect        01cfc8da-9c2d-4741-8d7c-9dda245d4dac  wlo1     yes      yes  /org/freedesktop/NetworkManager/Devices/2
Comment 6 Dan Winship 2013-10-21 20:19:28 UTC
Fixed in git
Comment 7 Dan Winship 2013-10-22 20:05:04 UTC
*** Bug 710676 has been marked as a duplicate of this bug. ***
Comment 8 Michael Catanzaro 2014-01-18 14:49:25 UTC
*** Bug 722477 has been marked as a duplicate of this bug. ***