Merge lp:~brendan-donegan/checkbox/bug877752_connect_wireless_vpn into lp:checkbox

Proposed by Brendan Donegan
Status: Merged
Merged at revision: 1113
Proposed branch: lp:~brendan-donegan/checkbox/bug877752_connect_wireless_vpn
Merge into: lp:checkbox
Diff against target: 40 lines (+5/-3)
2 files modified
debian/changelog (+4/-2)
scripts/connect_wireless (+1/-1)
To merge this branch: bzr merge lp:~brendan-donegan/checkbox/bug877752_connect_wireless_vpn
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+81733@code.launchpad.net

Description of the change

The connect_wireless script was previously free to choose to use a connection of any type from the list of previous connections, as long as it contained the SSID of router to which the user was connected. This led to at least one user having their VPN selected as the 'wireless' connection. This problem can be resolved by grep'ing for 'wireless' in the type of the connection.

To post a comment you must log in.
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

This is an important fix for connect_wireless that needs to be SRU'ed, and as we all know changes proposed for SRU need to be in the development release first, so we should get this merged.

Revision history for this message
Daniel Manrique (roadmr) wrote :

This looks good, merging, hopefully will be OK to SRU once we've tested it.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-11-04 20:32:54 +0000
3+++ debian/changelog 2011-11-09 14:21:24 +0000
4@@ -1,11 +1,13 @@
5 checkbox (0.13) precise; urgency=low
6
7+ [Brendan Donegan]
8+ * Ensure that connect_wireless chooses a wireless connection from the list of available connections (LP: #877752)
9+
10 [Marc Tardif]
11 * Generate a submission.xml file that contains all device and attachment
12 information, suitable for offline processing and submission.
13 * Write the report before reporting the validation error.
14 * Changed device.product to dmi.product for the formfactor (LP: #875312)
15-
16 [Daniel Manrique]
17 * Use gettext for string (LP: #869267)
18 * Move progress indicator to main checkbox dialog instead of a
19@@ -24,7 +26,7 @@
20 * Changed remaining manual job descriptions to match the new format
21
22 [Ara Pulido]
23- * Rewrote all job descriptions to match OEM QA syntax
24+ [Marc Tardif]
25
26 -- Daniel Manrique <daniel.manrique@canonical.com> Fri, 04 Nov 2011 16:32:08 -0400
27
28
29=== modified file 'scripts/connect_wireless'
30--- scripts/connect_wireless 2011-09-29 11:52:18 +0000
31+++ scripts/connect_wireless 2011-11-09 14:21:24 +0000
32@@ -8,7 +8,7 @@
33 if [ $? -eq 0 ]
34 then
35 ap=$(echo $active_connection | awk -F\' '{print $2}')
36- conn=$(nmcli -t -f UUID,NAME con list | grep -e "$ap$" | awk -F\: '{print $1}')
37+ conn=$(nmcli -t -f UUID,NAME,TYPE con list | grep wireless | grep -e "$ap$" | awk -F\: '{print $1}')
38 else
39 conn=$(nmcli -t -f UUID,TYPE con list | grep wireless | head -n 1 | awk -F\: '{print $1}')
40 fi

Subscribers

People subscribed via source and target branches