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 684487 - not getting wireless secrets dialogs anymore
not getting wireless secrets dialogs anymore
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Network
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-09-20 15:55 UTC by Matthias Clasen
Modified: 2012-09-22 15:49 UTC
See Also:
GNOME target: 3.6
GNOME version: ---


Attachments
make enterprise wpa work again (7.45 KB, patch)
2012-09-21 20:10 UTC, Matthias Clasen
none Details | Review
use better nm api (7.08 KB, patch)
2012-09-21 21:25 UTC, Matthias Clasen
accepted-commit_now Details | Review

Description Matthias Clasen 2012-09-20 15:55:36 UTC
I click on 'Red Hat' in the network menu. This used to bring up a shell style dialog asking me for secrets. Now it just pops up the control-center network panel.
Comment 1 Giovanni Campagna 2012-09-20 16:56:16 UTC
It seems that the network configuration was forgotten (or matching with the AP fails), and we summon the control center because I suppose it's WPA enterprise.
Comment 2 Matthias Clasen 2012-09-20 17:34:00 UTC
but the control-center can't deal with it either :-(
Comment 3 Giovanni Campagna 2012-09-21 07:13:18 UTC
Any info on stderr?
Something like
Network panel loaded with connect-8021x-wifi but the access point does not support 802.1x
?

It could be a stale AP entry that has the wrong flags (I'd blame the drivers in that case)
Comment 4 Matthias Clasen 2012-09-21 10:53:44 UTC
I'll have to test when I get to the office later, no enterprise wpa here at home...
Comment 5 Florian Müllner 2012-09-21 16:12:18 UTC
I can reproduce this at the office - after clicking "Forget Network" in System Settings, selecting the AP in the network menu launches gnome-control-center, where there's no way to actually configure the network.
Launching nm-connection-editor and entering the configuration manually seems to work, until clicking safe just does nothing - this is pretty bad :-(
Comment 6 drago01 2012-09-21 16:31:07 UTC
We do:

Util.spawn(['gnome-control-center', 'network', 'connect-8021x-wifi',        this.device.get_path(), accessPoints[0].dbus_path]);

when the AP is WPA or WPA2 Enterprise.

The question is why doesn't the control center do the right thing? Are the parameters (this.device.get_path() and accessPoints[0].dbus_path] wrong? (Cannot test here due to lack of AP) .. maybe printing them out with log might shed some light.

Otherwise this is a regression in gnome-control-center ...
Comment 7 Florian Müllner 2012-09-21 16:55:51 UTC
Given that the network panel has been changed significantly this cycle, regressions are not too surprising - still bad for users :-)
Comment 8 Matthias Clasen 2012-09-21 18:00:58 UTC
thats the problem with commandline-apis - the other side is usually not aware what is used api, and what is just 'update the man page'...
Comment 9 Matthias Clasen 2012-09-21 18:12:16 UTC
  gnome-control-center -v network connect-8021x-wifi /org/freedesktop/NetworkManager/Devices/1/ org/freedesktop/NetworkManager/AccessPoint/129
Gtk-Message: Failed to load module "canberra-gtk-module"
** DEBUG: Enabling debugging
** DEBUG: Extra argument: connect-8021x-wifi
network-cc-panel-DEBUG: Invoked with operation connect-8021x-wifi
network-cc-panel-DEBUG: coldplugging devices
network-cc-panel-DEBUG: got proxy
network-cc-panel-DEBUG: device /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlan0 type 2
network-cc-panel-DEBUG: adding Red Hat
network-cc-panel-DEBUG: adding Red Hat Guest
network-cc-panel-DEBUG: found duplicate: Red Hat Guest
network-cc-panel-DEBUG: removing Red Hat Guest
network-cc-panel-DEBUG: adding Red Hat Guest
network-cc-panel-DEBUG: found duplicate: Red Hat Guest
network-cc-panel-DEBUG: found duplicate: Red Hat
network-cc-panel-DEBUG: found duplicate: Red Hat Guest
network-cc-panel-DEBUG: found duplicate: Red Hat Guest
network-cc-panel-DEBUG: found duplicate: Red Hat
network-cc-panel-DEBUG: removing Red Hat
network-cc-panel-DEBUG: adding Red Hat
network-cc-panel-DEBUG: found duplicate: Red Hat
network-cc-panel-DEBUG: found duplicate: Red Hat Guest
network-cc-panel-DEBUG: found duplicate: Red Hat
network-cc-panel-DEBUG: found duplicate: Red Hat
network-cc-panel-DEBUG: got /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlan0
network-cc-panel-DEBUG: got proxy
network-cc-panel-DEBUG: device /sys/devices/pci0000:00/0000:00:19.0/net/em1 type 1
network-cc-panel-DEBUG: Active connections changed:
network-cc-panel-DEBUG:     /org/freedesktop/NetworkManager/ActiveConnection/1
network-cc-panel-DEBUG:            /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlan0
network-cc-panel-DEBUG:            VPN base connection: /org/freedesktop/NetworkManager/ActiveConnection/0
network-cc-panel-DEBUG:     /org/freedesktop/NetworkManager/ActiveConnection/0
network-cc-panel-DEBUG:            /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlan0
network-cc-panel-DEBUG: add vpn/NMRemoteConnection remote connection: /org/freedesktop/NetworkManager/Settings/17
network-cc-panel-DEBUG: got /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlan0
network-cc-panel-DEBUG: got /sys/devices/pci0000:00/0000:00:19.0/net/em1
network-cc-panel-DEBUG: got proxy
network-cc-panel-DEBUG: 0x2515620 has 18 remote connections
network-cc-panel-DEBUG: add vpn/NMRemoteConnection remote connection: /org/freedesktop/NetworkManager/Settings/17
network-cc-panel-DEBUG: got /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/net/wlan0
network-cc-panel-DEBUG: got /sys/devices/pci0000:00/0000:00:19.0/net/em1
network-cc-panel-DEBUG: got /org/freedesktop/NetworkManager/Settings/17
network-cc-panel-DEBUG: got saved PUBLIC INTERNET 2.4GHZ
network-cc-panel-DEBUG: got saved Cisco09856
network-cc-panel-DEBUG: got saved mobilcom-debitel Free WLAN
network-cc-panel-DEBUG: got saved necdl
network-cc-panel-DEBUG: got saved Acton Toyota1
network-cc-panel-DEBUG: got saved public
network-cc-panel-DEBUG: got saved AndroidAP7560
network-cc-panel-DEBUG: got saved CTU
network-cc-panel-DEBUG: got saved RUJJS
network-cc-panel-DEBUG: got saved HPW Guest WiFi
network-cc-panel-DEBUG: got saved clasen_home
network-cc-panel-DEBUG: got saved Chelmsford Forum
network-cc-panel-DEBUG: got saved ActonJazzCafe
network-cc-panel-DEBUG: got saved MoonRouter
network-cc-panel-DEBUG: got saved Red Hat Guest


So at least, it parses the operation correctly, but then...
Comment 10 Matthias Clasen 2012-09-21 18:13:18 UTC
Unfortunately, I have to run out of the office now, not sure if I can continue debugging this without an enterprise wpa ap at home.
Comment 11 Matthias Clasen 2012-09-21 20:10:51 UTC
Created attachment 224949 [details] [review]
make enterprise wpa work again

Here is a patch.

It is not really tested all the way, since I don't have an enterprise wpa capable access point at home. But it does get to the point where cc_network_panel_connect_to_8021x_network is called when given the right arguments on the commandline.

Would be great if somebody else could test this with an actual network.
Comment 12 Matthias Clasen 2012-09-21 20:12:13 UTC
Oh, and we should check that the other special arguments still work, too:

create-wifi
connect-hidden-wifi
connect-8021x-wifi
connect-3g
show-device
Comment 13 Bastien Nocera 2012-09-21 21:03:11 UTC
Patch works, though I get this warning in libnm-gtk:
  • #0 g_logv
    at gmessages.c line 974
  • #1 g_log
    at gmessages.c line 1003
  • #2 connection_combo_init
    from /lib64/libnm-gtk.so.0
  • #3 internal_init
    from /lib64/libnm-gtk.so.0
  • #4 nma_wifi_dialog_new
    from /lib64/libnm-gtk.so.0
  • #5 cc_network_panel_connect_to_8021x_network
    at network-dialogs.c line 331

Comment 14 Bastien Nocera 2012-09-21 21:05:22 UTC
Better backtrace from libnm-gtk-0.9.7.0-3.git20120820.fc18.x86_64

  • #0 g_logv
    at gmessages.c line 974
  • #1 g_log
    at gmessages.c line 1003
  • #2 connection_combo_init
    at nm-wifi-dialog.c line 411
  • #3 internal_init
    at nm-wifi-dialog.c line 1103
  • #4 nma_wifi_dialog_new
    at nm-wifi-dialog.c line 1290
  • #5 nma_wireless_dialog_new
    at nm-wireless-dialog.c line 66
  • #6 cc_network_panel_connect_to_8021x_network
    at network-dialogs.c line 331

Comment 15 Dan Williams 2012-09-21 21:18:21 UTC
(In reply to comment #11)
> Created an attachment (id=224949) [details] [review]
> make enterprise wpa work again
> 
> Here is a patch.
> 
> It is not really tested all the way, since I don't have an enterprise wpa
> capable access point at home. But it does get to the point where
> cc_network_panel_connect_to_8021x_network is called when given the right
> arguments on the commandline.
> 
> Would be great if somebody else could test this with an actual network.

We do have nm_device_wifi_get_access_point_by_path() you know :)  A lot simpler than hand-rolling that yourself.
Comment 16 Matthias Clasen 2012-09-21 21:23:14 UTC
(In reply to comment #15)

> We do have nm_device_wifi_get_access_point_by_path() you know :)  A lot simpler
> than hand-rolling that yourself.

Good to know, thanks.
Comment 17 Matthias Clasen 2012-09-21 21:25:57 UTC
Created attachment 224959 [details] [review]
use better nm api
Comment 18 Bastien Nocera 2012-09-21 23:00:15 UTC
Review of attachment 224959 [details] [review]:

Looks good. Do you want to file separate bugs for the other args we need to check?
Comment 19 Matthias Clasen 2012-09-22 15:49:20 UTC
Got approval from Javier, so pushed