Merge lp:~mardy/signon/packaging into lp:signon

Proposed by Alberto Mardegan
Status: Merged
Approved by: Ken VanDine
Approved revision: no longer in the source branch.
Merged at revision: 563
Proposed branch: lp:~mardy/signon/packaging
Merge into: lp:signon
Diff against target: 304 lines (+100/-22)
12 files modified
common-project-config.pri (+9/-0)
common-vars.pri (+1/-1)
debian/changelog (+12/-2)
lib/SignOn/identityinfoimpl.cpp (+5/-0)
lib/plugins/signon-plugins-common/signon-plugins-common.pro (+0/-6)
lib/plugins/signon-plugins.pro (+0/-8)
lib/signond/SignOn/SignOnExtension.pc.in (+1/-1)
src/signond/signonidentity.cpp (+48/-2)
src/signond/signonidentity.h (+5/-1)
src/signond/signonui_interface.cpp (+12/-0)
src/signond/signonui_interface.h (+2/-0)
tests/libsignon-qt-tests/ssotestclient.cpp (+5/-1)
To merge this branch: bzr merge lp:~mardy/signon/packaging
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Ken VanDine Approve
Review via email: mp+161120@code.launchpad.net

Commit message

New upstream release

Description of the change

New upstream release

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:563
http://jenkins.qa.ubuntu.com/job/signon-ci/21/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/signon-raring-amd64-ci/4

Click here to trigger a rebuild:
http://s-jenkins:8080/job/signon-ci/21/rebuild

review: Approve (continuous-integration)
Revision history for this message
Ken VanDine (ken-vandine) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:564
http://jenkins.qa.ubuntu.com/job/signon-ci/22/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/signon-raring-amd64-ci/5

Click here to trigger a rebuild:
http://s-jenkins:8080/job/signon-ci/22/rebuild

review: Approve (continuous-integration)
lp:~mardy/signon/packaging updated
563. By Alberto Mardegan

New upstream release. Fixes: https://bugs.launchpad.net/bugs/1156776.

Approved by PS Jenkins bot, Ken VanDine.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'common-project-config.pri'
2--- common-project-config.pri 2013-03-25 06:55:43 +0000
3+++ common-project-config.pri 2013-04-26 14:13:27 +0000
4@@ -33,6 +33,15 @@
5 #TODO comment this to restrict plugins to run under signon user
6 DEFINES += NO_SIGNON_USER
7
8+# Qt4/Qt5 common checks
9+greaterThan(QT_MAJOR_VERSION, 4) {
10+ LIBSIGNON = libsignon-qt5
11+ LIBQTCORE = Qt5Core
12+} else {
13+ LIBSIGNON = libsignon-qt
14+ LIBQTCORE = QtCore
15+}
16+
17 #-----------------------------------------------------------------------------
18 # setup the installation prefix
19 #-----------------------------------------------------------------------------
20
21=== modified file 'common-vars.pri'
22--- common-vars.pri 2013-04-10 10:29:05 +0000
23+++ common-vars.pri 2013-04-26 14:13:27 +0000
24@@ -14,7 +14,7 @@
25 # Project version
26 # remember to update debian/* files if you changes this
27 #-----------------------------------------------------------------------------
28-PROJECT_VERSION = 8.50
29+PROJECT_VERSION = 8.51
30
31 #-----------------------------------------------------------------------------
32 # Library version
33
34=== modified file 'debian/changelog'
35--- debian/changelog 2013-04-24 14:14:10 +0000
36+++ debian/changelog 2013-04-26 14:13:27 +0000
37@@ -1,4 +1,6 @@
38-signon (8.50-0ubuntu1) UNRELEASED; urgency=low
39+signon (8.51-0ubuntu1) UNRELEASED; urgency=low
40+
41+ * Automatic snapshot from revision 560 (bootstrap)
42
43 [ Alberto Mardegan ]
44 * New upstream release.
45@@ -11,7 +13,15 @@
46 [ Ken VanDine ]
47 * Default to Qt5 build
48
49- -- Ken VanDine <ken.vandine@canonical.com> Wed, 24 Apr 2013 10:07:19 -0400
50+ [ Alberto Mardegan ]
51+ * New upstream release.
52+ - Qt5: fix SignonExtension.pc (when building with Qt5, SignonExtension.pc
53+ was still requiring QtCore).
54+ - Inform signon-ui of identity removals and signouts.
55+ - libsignon-qt: implement ACL retrieval
56+ http://code.google.com/p/accounts-sso/issues/detail?id=178
57+
58+ -- Alberto Mardegan <alberto.mardegan@canonical.com> Fri, 26 Apr 2013 16:30:30 +0300
59
60 signon (8.49-0ubuntu2) raring; urgency=low
61
62
63=== modified file 'lib/SignOn/identityinfoimpl.cpp'
64--- lib/SignOn/identityinfoimpl.cpp 2012-04-18 13:06:27 +0000
65+++ lib/SignOn/identityinfoimpl.cpp 2013-04-26 14:13:27 +0000
66@@ -168,6 +168,11 @@
67 if (map.contains(SIGNOND_IDENTITY_INFO_REALMS))
68 m_realms = map.value(SIGNOND_IDENTITY_INFO_REALMS).toStringList();
69
70+ if (map.contains(SIGNOND_IDENTITY_INFO_ACL)) {
71+ m_accessControlList =
72+ map.value(SIGNOND_IDENTITY_INFO_ACL).toStringList();
73+ }
74+
75 if (map.contains(SIGNOND_IDENTITY_INFO_AUTHMETHODS)) {
76 QVariant value = map.value(SIGNOND_IDENTITY_INFO_AUTHMETHODS);
77 m_authMethods = qdbus_cast<MethodMap>(value.value<QDBusArgument>());
78
79=== modified file 'lib/plugins/signon-plugins-common/signon-plugins-common.pro'
80--- lib/plugins/signon-plugins-common/signon-plugins-common.pro 2013-03-19 09:16:07 +0000
81+++ lib/plugins/signon-plugins-common/signon-plugins-common.pro 2013-04-26 14:13:27 +0000
82@@ -23,12 +23,6 @@
83 headers.path = $${INSTALL_PREFIX}/include/signon-plugins/SignOn
84 INSTALLS += headers
85
86-greaterThan(QT_MAJOR_VERSION, 4) {
87- LIBQTCORE = Qt5Core
88-} else {
89- LIBQTCORE = QtCore
90-}
91-
92 pkgconfig.files = signon-plugins-common.pc
93 include($${TOP_SRC_DIR}/common-pkgconfig.pri)
94 INSTALLS += pkgconfig
95
96=== modified file 'lib/plugins/signon-plugins.pro'
97--- lib/plugins/signon-plugins.pro 2013-03-19 09:16:07 +0000
98+++ lib/plugins/signon-plugins.pro 2013-04-26 14:13:27 +0000
99@@ -22,14 +22,6 @@
100 headers.path = $${INSTALL_PREFIX}/include/signon-plugins/SignOn
101 INSTALLS += headers
102
103-greaterThan(QT_MAJOR_VERSION, 4) {
104- LIBSIGNON = libsignon-qt5
105- LIBQTCORE = Qt5Core
106-} else {
107- LIBSIGNON = libsignon-qt
108- LIBQTCORE = QtCore
109-}
110-
111 pkgconfig.files = signon-plugins.pc
112 include($${TOP_SRC_DIR}/common-pkgconfig.pri)
113 INSTALLS += pkgconfig
114
115=== modified file 'lib/signond/SignOn/SignOnExtension.pc.in'
116--- lib/signond/SignOn/SignOnExtension.pc.in 2013-01-18 12:43:35 +0000
117+++ lib/signond/SignOn/SignOnExtension.pc.in 2013-04-26 14:13:27 +0000
118@@ -7,6 +7,6 @@
119 Name: SignOnExtension
120 Description: SignOn extension development
121 Version: $$PROJECT_VERSION
122-Requires: QtCore
123+Requires: $${LIBQTCORE}
124 Libs: -L${libdir} -lsignon-extension
125 Cflags: -I${includedir}/signon-extension
126
127=== modified file 'src/signond/signonidentity.cpp'
128--- src/signond/signonidentity.cpp 2012-08-27 13:42:05 +0000
129+++ src/signond/signonidentity.cpp 2013-04-26 14:13:27 +0000
130@@ -3,6 +3,7 @@
131 *
132 * Copyright (C) 2009-2010 Nokia Corporation.
133 * Copyright (C) 2011 Intel Corporation.
134+ * Copyright (C) 2013 Canonical Ltd.
135 *
136 * Contact: Aurel Popirtac <ext-aurel.popirtac@nokia.com>
137 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
138@@ -363,8 +364,30 @@
139 QLatin1String("Database error occurred."));
140 return;
141 }
142+ setDelayedReply(true);
143+ m_message = message();
144+ setAutoDestruct(false);
145+ QDBusPendingCallWatcher *watcher =
146+ new QDBusPendingCallWatcher(m_signonui->removeIdentityData(m_id),
147+ this);
148+ connect(watcher, SIGNAL(finished(QDBusPendingCallWatcher*)),
149+ this, SLOT(removeCompleted(QDBusPendingCallWatcher*)));
150+ keepInUse();
151+}
152+
153+void SignonIdentity::removeCompleted(QDBusPendingCallWatcher *call)
154+{
155+ setAutoDestruct(true);
156+ call->deleteLater();
157+
158+ QDBusPendingReply<> signOnUiReply = *call;
159+ bool ok = !signOnUiReply.isError();
160+ TRACE() << (ok ? "removeIdentityData succeeded" : "removeIdentityData failed");
161+
162+ QDBusMessage reply = m_message.createReply();
163+ SIGNOND_BUS.send(reply);
164+
165 emit infoUpdated((int)SignOn::IdentityRemoved);
166- keepInUse();
167 }
168
169 bool SignonIdentity::signOut()
170@@ -386,12 +409,35 @@
171 TRACE() << "clear data failed";
172 }
173
174- emit infoUpdated((int)SignOn::IdentitySignedOut);
175+ setDelayedReply(true);
176+ m_message = message();
177+ setAutoDestruct(false);
178+ QDBusPendingCallWatcher *watcher =
179+ new QDBusPendingCallWatcher(m_signonui->removeIdentityData(m_id),
180+ this);
181+ connect(watcher, SIGNAL(finished(QDBusPendingCallWatcher*)),
182+ this, SLOT(signOutCompleted(QDBusPendingCallWatcher*)));
183 }
184 keepInUse();
185 return true;
186 }
187
188+void SignonIdentity::signOutCompleted(QDBusPendingCallWatcher *call)
189+{
190+ setAutoDestruct(true);
191+ call->deleteLater();
192+
193+ QDBusPendingReply<> signOnUiReply = *call;
194+ bool ok = !signOnUiReply.isError();
195+ TRACE() << (ok ? "removeIdentityData succeeded" : "removeIdentityData failed");
196+
197+ QDBusMessage reply = m_message.createReply();
198+ reply << ok;
199+ SIGNOND_BUS.send(reply);
200+
201+ emit infoUpdated((int)SignOn::IdentitySignedOut);
202+}
203+
204 quint32 SignonIdentity::store(const QVariantMap &info)
205 {
206 keepInUse();
207
208=== modified file 'src/signond/signonidentity.h'
209--- src/signond/signonidentity.h 2012-08-27 13:42:05 +0000
210+++ src/signond/signonidentity.h 2013-04-26 14:13:27 +0000
211@@ -2,7 +2,7 @@
212 * This file is part of signon
213 *
214 * Copyright (C) 2009-2010 Nokia Corporation.
215- * Copyright (C) 2012 Canonical Ltd.
216+ * Copyright (C) 2012-2013 Canonical Ltd.
217 *
218 * Contact: Aurel Popirtac <ext-aurel.popirtac@nokia.com>
219 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
220@@ -78,6 +78,10 @@
221 //TODO - split this into the 3 separate signals(updated, removed, signed out)
222 void infoUpdated(int);
223
224+private Q_SLOTS:
225+ void removeCompleted(QDBusPendingCallWatcher *call);
226+ void signOutCompleted(QDBusPendingCallWatcher *call);
227+
228 private:
229 SignonIdentity(quint32 id, int timeout, SignonDaemon *parent);
230 bool init();
231
232=== modified file 'src/signond/signonui_interface.cpp'
233--- src/signond/signonui_interface.cpp 2012-04-18 13:06:27 +0000
234+++ src/signond/signonui_interface.cpp 2013-04-26 14:13:27 +0000
235@@ -2,6 +2,7 @@
236 * This file is part of signon
237 *
238 * Copyright (C) 2009-2010 Nokia Corporation.
239+ * Copyright (C) 2013 Canonical Ltd.
240 *
241 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
242 *
243@@ -77,6 +78,17 @@
244 argumentList);
245 }
246
247+/*
248+ * Remove any data associated with the given identity.
249+ * */
250+QDBusPendingCall SignonUiAdaptor::removeIdentityData(quint32 id)
251+{
252+ QList<QVariant> argumentList;
253+ argumentList << id;
254+ return asyncCallWithArgumentList(QLatin1String("removeIdentityData"),
255+ argumentList);
256+}
257+
258 QDBusPendingCall
259 SignonUiAdaptor::callWithArgumentListAndBigTimeout(const QString &method,
260 const QList<QVariant> &args)
261
262=== modified file 'src/signond/signonui_interface.h'
263--- src/signond/signonui_interface.h 2012-04-18 13:06:27 +0000
264+++ src/signond/signonui_interface.h 2013-04-26 14:13:27 +0000
265@@ -2,6 +2,7 @@
266 * This file is part of signon
267 *
268 * Copyright (C) 2009-2010 Nokia Corporation.
269+ * Copyright (C) 2013 Canonical Ltd.
270 *
271 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
272 *
273@@ -61,6 +62,7 @@
274 QDBusPendingCall refreshDialog(const QVariantMap &parameters);
275
276 void cancelUiRequest(const QString &requestId);
277+ QDBusPendingCall removeIdentityData(quint32 id);
278
279 protected:
280 QDBusPendingCall callWithArgumentListAndBigTimeout(
281
282=== modified file 'tests/libsignon-qt-tests/ssotestclient.cpp'
283--- tests/libsignon-qt-tests/ssotestclient.cpp 2012-07-12 09:27:42 +0000
284+++ tests/libsignon-qt-tests/ssotestclient.cpp 2013-04-26 14:13:27 +0000
285@@ -648,7 +648,9 @@
286 methods);
287 info.setSecret("TEST_PASSWORD_1");
288 info.setRealms(QStringList() << "test_realm");
289- info.setAccessControlList(QStringList() << TEST_AEGIS_TOKEN);
290+ QStringList acl;
291+ acl << TEST_AEGIS_TOKEN;
292+ info.setAccessControlList(acl);
293
294 if (!storeCredentialsPrivate(info))
295 QFAIL("Failed to initialize test for querying info.");
296@@ -679,6 +681,8 @@
297 TestIdentityResult::InexistentResp,
298 "A response was not received.");
299
300+ QCOMPARE(m_identityResult.m_idInfo.accessControlList(), acl);
301+
302 END_IDENTITY_TEST_IF_UNTRUSTED;
303
304 if (m_identityResult.m_responseReceived == TestIdentityResult::NormalResp) {

Subscribers

People subscribed via source and target branches

to all changes: