Merge lp:~cyruslien/ubiquity/fix-1716369 into lp:ubiquity

Proposed by Cyrus Lien
Status: Rejected
Rejected by: Mathieu Trudel-Lapierre
Proposed branch: lp:~cyruslien/ubiquity/fix-1716369
Merge into: lp:ubiquity
Diff against target: 19 lines (+5/-2)
1 file modified
ubiquity/nm.py (+5/-2)
To merge this branch: bzr merge lp:~cyruslien/ubiquity/fix-1716369
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Disapprove
Review via email: mp+330559@code.launchpad.net

Description of the change

Add dbus exception handling for:
dbus.exceptions.DBusException: org.freedesktop.NetworkManager.Settings.Connection.Failed: Failed to determine AP security information

The error was generated when trying to connect a wpa enterprise ap. (lp:1716369)

To post a comment you must log in.
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

I have nothing against guarding this piece of code against failure, but are you sure this is the correct branch to fix the bug you were seeing?

As far as I can tell, the bug open about this is for WPA Enterprise support, and recent rework of ubiquity for WPA should have properly added support for WPA enterprise. Can you please test the behavior without this patch on artful so we know if we should backport things to xenial?

review: Needs Information
Revision history for this message
Cyrus Lien (cyruslien) wrote :

Tried Artful daily build, the WPA Enterprise behavior works very well. Please backport WPA Enterprise support to xenial, also this patch is unnecessary. Thanks!

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Rejected since the WPA enterprise support should be backported to xenial instead.

review: Disapprove

Unmerged revisions

6564. By Cyrus Lien

Handle dbus exception when connecting to wpa enterprise ap. (LP: #1716369)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubiquity/nm.py'
2--- ubiquity/nm.py 2015-09-15 21:04:13 +0000
3+++ ubiquity/nm.py 2017-09-12 05:33:04 +0000
4@@ -175,10 +175,13 @@
5 obj = dbus.Dictionary(signature='sa{sv}')
6 if passphrase:
7 obj['802-11-wireless-security'] = {'psk': passphrase}
8- self.active_conn, self.active_connection = (
9- self.manager.AddAndActivateConnection(
10+ try:
11+ self.active_conn, self.active_connection = (
12+ self.manager.AddAndActivateConnection(
13 obj, dbus.ObjectPath(device), dbus.ObjectPath(saved_path),
14 signature='a{sa{sv}}oo'))
15+ except dbus.DBusException:
16+ return
17 self.active_device_obj = device_obj
18
19 def disconnect_from_ap(self):

Subscribers

People subscribed via source and target branches

to status/vote changes: