Merge lp:~phablet-team/network-manager/lp1435776-wily into lp:~network-manager/network-manager/ubuntu

Proposed by Tony Espy
Status: Merged
Approved by: Mathieu Trudel-Lapierre
Approved revision: 967
Merged at revision: 967
Proposed branch: lp:~phablet-team/network-manager/lp1435776-wily
Merge into: lp:~network-manager/network-manager/ubuntu
Diff against target: 82 lines (+12/-24)
2 files modified
debian/changelog (+9/-0)
debian/patches/add_ofono_settings_support.patch (+3/-24)
To merge this branch: bzr merge lp:~phablet-team/network-manager/lp1435776-wily
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Approve
Review via email: mp+264892@code.launchpad.net

Description of the change

This change affects the ofono settings plugin and the way that it configures system connections based on ofono gprs_contexts ( aka APNs ).

The change removes the addition of USERNAME and PASSWORD NM_SETTING_GSM settings to the connection, as they're not needed by network-manager, and can cause secret-related activation errors.

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

Looks good; let's just merge the patch in to the ofono settings patch, so that things can be more easily upstreamed. Separate patch is fine for SRU purposes, but I don't think this is relevant to SRU.

review: Approve
967. By Tony Espy

debian/patches/add_ofono_settings_support.patch: remove code
that added APN, USERNAME and PASSWORD to NM_SETTING_GSM object.
NM doesn't actually need access to these settings, and USERNAME/
PASSWORD can cause issues with NM's secrets needed logic.

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

Rockin'. Full ack, I will merge this in the morning (but if I forget don't hesitate to remind me).

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 2015-07-14 22:17:15 +0000
3+++ debian/changelog 2015-07-15 19:40:27 +0000
4@@ -1,3 +1,12 @@
5+network-manager (0.9.10.0-4ubuntu19) UNRELEASED; urgency=medium
6+
7+ * debian/patches/add_ofono_settings_support.patch: remove code
8+ that added APN, USERNAME and PASSWORD to NM_SETTING_GSM object.
9+ NM doesn't actually need access to these settings, and USERNAME/
10+ PASSWORD can cause issues with NM's secrets needed logic.
11+
12+ -- Tony Espy <espy@canonical.com> Wed, 15 Jul 2015 15:35:17 -0400
13+
14 network-manager (0.9.10.0-4ubuntu18) wily; urgency=medium
15
16 * debian/tests/nm, debian/tests/wpa-dhclient: 802.11a appears to no longer
17
18=== modified file 'debian/patches/add_ofono_settings_support.patch'
19--- debian/patches/add_ofono_settings_support.patch 2014-11-18 19:44:11 +0000
20+++ debian/patches/add_ofono_settings_support.patch 2015-07-15 19:40:27 +0000
21@@ -42,7 +42,7 @@
22
23 if test "$enable_ifcfg_rh" = "yes"; then
24 DISTRO_NETWORK_SERVICE=network.service
25-@@ -792,6 +796,7 @@ src/ppp-manager/Makefile
26+@@ -801,6 +805,7 @@ src/ppp-manager/Makefile
27 src/settings/plugins/Makefile
28 src/settings/plugins/ifupdown/Makefile
29 src/settings/plugins/ifupdown/tests/Makefile
30@@ -50,7 +50,7 @@
31 src/settings/plugins/ifnet/Makefile
32 src/settings/plugins/ifnet/tests/Makefile
33 src/settings/plugins/ifcfg-rh/Makefile
34-@@ -913,6 +918,7 @@ echo " ifcfg-rh: ${enable_ifcfg_rh}"
35+@@ -922,6 +927,7 @@ echo " ifcfg-rh: ${enable_ifcfg_rh}"
36 echo " ifcfg-suse: ${enable_ifcfg_suse}"
37 echo " ifupdown: ${enable_ifupdown}"
38 echo " ifnet: ${enable_ifnet}"
39@@ -378,7 +378,7 @@
40 ===================================================================
41 --- /dev/null
42 +++ b/src/settings/plugins/ofono/parser.c
43-@@ -0,0 +1,124 @@
44+@@ -0,0 +1,103 @@
45 +/* -*- Mode: C; tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */
46 +
47 +/* NetworkManager system settings service (ofono)
48@@ -434,8 +434,6 @@
49 + char *idstr = NULL;
50 + char *uuid_base = NULL;
51 + char *uuid = NULL;
52-+ const char *username = NULL;
53-+ const char *password = NULL;
54 +
55 + s_con = nm_connection_get_setting_connection (connection);
56 + if(!s_con) {
57@@ -472,25 +470,6 @@
58 + */
59 + g_object_set (s_gsm, NM_SETTING_GSM_NUMBER, "*99#", NULL);
60 +
61-+ /* Set the APN we got from oFono config. */
62-+ g_object_set (s_gsm,
63-+ NM_SETTING_GSM_APN, g_hash_table_lookup (context, "Apn"),
64-+ NULL);
65-+
66-+ username = g_hash_table_lookup (context, "Username");
67-+ if (username && g_strcmp0 (username, "") != 0) {
68-+ g_object_set (s_gsm,
69-+ NM_SETTING_GSM_USERNAME, username,
70-+ NULL);
71-+ }
72-+
73-+ password = g_hash_table_lookup (context, "Password");
74-+ if (password && g_strcmp0 (password, "") != 0) {
75-+ g_object_set (s_gsm,
76-+ NM_SETTING_GSM_PASSWORD, password,
77-+ NULL);
78-+ }
79-+
80 + nm_log_info (LOGD_SETTINGS, "SCPlugin-Ofono: "
81 + "update_connection_setting_from_context: name:%s, path:%s, type:%s, id:%s, uuid: %s",
82 + (char *) g_hash_table_lookup (context, "Name"),

Subscribers

People subscribed via source and target branches