Merge lp:~mandel/ubuntu-sso-client/fix-ssl into lp:ubuntu-sso-client
| Status: | Merged |
|---|---|
| Approved by: | Alejandro J. Cura on 2012-04-24 |
| Approved revision: | 953 |
| Merged at revision: | 950 |
| Proposed branch: | lp:~mandel/ubuntu-sso-client/fix-ssl |
| Merge into: | lp:ubuntu-sso-client |
| Diff against target: |
123 lines (+28/-13) 3 files modified
ubuntu_sso/utils/webclient/qtnetwork.py (+12/-10) ubuntu_sso/utils/webclient/tests/test_webclient.py (+13/-3) ubuntu_sso/utils/webclient/txweb.py (+3/-0) |
| To merge this branch: | bzr merge lp:~mandel/ubuntu-sso-client/fix-ssl |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Alejandro J. Cura (community) | Approve on 2012-04-24 | ||
| Roberto Alsina (community) | 2012-04-23 | Approve on 2012-04-23 | |
|
Review via email:
|
|||
Commit Message
- Added extra logging when ssl errors occur (LP: #987405).
Description of the Change
- Added extra logging when ssl errors occur (LP: #987405).
- 951. By Manuel de la Peña on 2012-04-23
-
Remove old comment.
| Alejandro J. Cura (alecu) wrote : | # |
Nice branch.
I'm requesting a few fixes, as follow:
---
This comment is no longer valid:
29 # ask the user if the cer should be trusted
---
The name of this test is no longer valid:
test_ssl_
----
The changes in ubuntu_
----
A typical error is currently logged as:
"""
2012-04-23 20:17:42,
:Error:
<TAB>Cert Details:
Organization: Mandel Corp
Common Name: mandel.biz
Locality Name: Barrio La Latina
Unit: Biohazards Division
Country: ES
State or Province: Madrid
<TAB>Error:
22
<TAB>Error msg:
The host name did not match any of the valid hosts for this certificate
"""
The error could be repeated multiple times in the log, and the wrongly placed tabs and the weird line breaks add a lot of noise. Please change it so looks like this:
msg.write('SSL errors found; url: %s\n' % reply.request(
for error in errors:
msg.
msg.
msg.write(
| Manuel de la Peña (mandel) wrote : | # |
Indeed, is confusing (funny brain wired here), I'll push a version with the proposed message.
- 952. By Manuel de la Peña on 2012-04-24
-
Improve logging message.
| Alejandro J. Cura (alecu) wrote : | # |
It seems that these items were not fixed in the latest revision:
---
This comment is no longer valid:
29 # ask the user if the cer should be trusted
---
The name of this test is no longer valid:
test_ssl_
----
The changes in ubuntu_
----
- 953. By Manuel de la Peña on 2012-04-24
-
Remov old comment and renamed test.

+1 but the diff lines 16-18 scare me slightly.