Merge lp:~alecu/ubuntu-sso-client/disable-ignore-ssl-option into lp:ubuntu-sso-client

Proposed by Alejandro J. Cura
Status: Merged
Approved by: Alejandro J. Cura
Approved revision: 926
Merged at revision: 926
Proposed branch: lp:~alecu/ubuntu-sso-client/disable-ignore-ssl-option
Merge into: lp:ubuntu-sso-client
Diff against target: 34 lines (+4/-2)
2 files modified
ubuntu_sso/utils/webclient/qtnetwork.py (+2/-1)
ubuntu_sso/utils/webclient/tests/test_webclient.py (+2/-1)
To merge this branch: bzr merge lp:~alecu/ubuntu-sso-client/disable-ignore-ssl-option
Reviewer Review Type Date Requested Status
Eric Casteleijn (community) Approve
Manuel de la Peña (community) Approve
Review via email: mp+98226@code.launchpad.net

Commit message

- Do not allow ssl errors to be ignored (LP: #959390).

Description of the change

- Do not allow ssl errors to be ignored (LP: #959390).

To post a comment you must log in.
925. By Alejandro J. Cura

merged with trunk

926. By Alejandro J. Cura

fix bad merge

Revision history for this message
Manuel de la Peña (mandel) wrote :

Great!

review: Approve
Revision history for this message
Eric Casteleijn (thisfred) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu_sso/utils/webclient/qtnetwork.py'
2--- ubuntu_sso/utils/webclient/qtnetwork.py 2012-03-19 09:42:44 +0000
3+++ ubuntu_sso/utils/webclient/qtnetwork.py 2012-03-19 16:46:23 +0000
4@@ -134,7 +134,8 @@
5 self.nam = QNetworkAccessManager(QCoreApplication.instance())
6 self.nam.finished.connect(self._handle_finished)
7 self.nam.authenticationRequired.connect(self._handle_authentication)
8- self.nam.sslErrors.connect(self._handle_ssl_errors)
9+ # Disabled until we make this a per-instance option
10+ #self.nam.sslErrors.connect(self._handle_ssl_errors)
11 self.replies = {}
12 self.proxy_factory = None
13 self.setup_proxy()
14
15=== modified file 'ubuntu_sso/utils/webclient/tests/test_webclient.py'
16--- ubuntu_sso/utils/webclient/tests/test_webclient.py 2012-03-19 15:08:56 +0000
17+++ ubuntu_sso/utils/webclient/tests/test_webclient.py 2012-03-19 16:46:23 +0000
18@@ -960,6 +960,7 @@
19 """One of the headers matching key must contain a given value."""
20 self.assertTrue(any(expected in value for value in headers))
21
22+ @defer.inlineCallbacks
23 def test_https_request(self):
24 """Test using the correct proxy for the ssl request.
25
26@@ -969,7 +970,7 @@
27 certs.
28 """
29 # we fail due to the fake ssl cert
30- self.failUnlessFailure(self.wc.request(
31+ yield self.failUnlessFailure(self.wc.request(
32 self.base_ssl_iri + SIMPLERESOURCE),
33 webclient.WebClientError)
34 # https requests do not use the auth proxy therefore called should be

Subscribers

People subscribed via source and target branches