Merge lp:~jelmer/bzr/default-urllib into lp:bzr

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Vincent Ladeuil
Approved revision: no longer in the source branch.
Merged at revision: 6445
Proposed branch: lp:~jelmer/bzr/default-urllib
Merge into: lp:bzr
Prerequisite: lp:~jelmer/bzr/merge-2.5
Diff against target: 37 lines (+8/-3)
2 files modified
bzrlib/transport/__init__.py (+3/-3)
doc/en/release-notes/bzr-2.6.txt (+5/-0)
To merge this branch: bzr merge lp:~jelmer/bzr/default-urllib
Reviewer Review Type Date Requested Status
Vincent Ladeuil Approve
Review via email: mp+89702@code.launchpad.net

Commit message

Change the default HTTPS implementation from pycurl to urllib.

Description of the change

Change the default HTTPS implementation from pycurl to urllib.

To post a comment you must log in.
Revision history for this message
Vincent Ladeuil (vila) wrote :

We can't do that until we get sound default values for ssl.ca_certs which is the point of bug #920455

I revert this on purpose as I think we need some feedback with 2.5 before switching the default.

Rest assured that I still have #125055 on my radar but I still think it's too early to break the setup of people relying on pycurl being the default as they rely on it to verify their certs.

I also have a gut feeling that some bugs are lurking around, may be related to proxies, so I didn't update bug #125055 asking for the default certs but consider it a master bug that we will act upon when we're ready to switch ;)

Can we agree on that and postpone this proposal ?

review: Needs Information
Revision history for this message
Vincent Ladeuil (vila) wrote :

To clarify further, I think the cat is out of the bag for 2.5 so we need to fix all the bugs that may be blocking #125055 before 2.5.0

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Am 23/01/12 18:22, schrieb Vincent Ladeuil:
> To clarify further, I think the cat is out of the bag for 2.5 so we need to fix all the bugs that may be blocking #125055 before 2.5.0
Note that this is against lp:bzr (intentionally), and not against 2.5. I
don't think not having the right default paths should be a blocker for that.

Cheers,

Jelmer

Revision history for this message
Vincent Ladeuil (vila) wrote :

Oh ! Silly me ! We *want* it in ttrunk if only to make sure there are no remaining bugs in 2.5 !!!

review: Approve
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

sent to pqm by email

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bzrlib/transport/__init__.py'
2--- bzrlib/transport/__init__.py 2012-01-23 15:26:31 +0000
3+++ bzrlib/transport/__init__.py 2012-01-23 15:26:32 +0000
4@@ -1782,15 +1782,15 @@
5 help="Read-only access of branches exported on the web.")
6 register_transport_proto('https://',
7 help="Read-only access of branches exported on the web using SSL.")
8-# The default http implementation is urllib, but https uses pycurl if available
9+# The default http implementation is urllib
10 register_lazy_transport('http://', 'bzrlib.transport.http._pycurl',
11 'PyCurlTransport')
12 register_lazy_transport('http://', 'bzrlib.transport.http._urllib',
13 'HttpTransport_urllib')
14+register_lazy_transport('https://', 'bzrlib.transport.http._pycurl',
15+ 'PyCurlTransport')
16 register_lazy_transport('https://', 'bzrlib.transport.http._urllib',
17 'HttpTransport_urllib')
18-register_lazy_transport('https://', 'bzrlib.transport.http._pycurl',
19- 'PyCurlTransport')
20
21 register_transport_proto('ftp://', help="Access using passive FTP.")
22 register_lazy_transport('ftp://', 'bzrlib.transport.ftp', 'FtpTransport')
23
24=== modified file 'doc/en/release-notes/bzr-2.6.txt'
25--- doc/en/release-notes/bzr-2.6.txt 2012-01-16 13:49:34 +0000
26+++ doc/en/release-notes/bzr-2.6.txt 2012-01-23 15:26:32 +0000
27@@ -26,6 +26,11 @@
28 .. Improvements to existing commands, especially improved performance
29 or memory usage, or better results.
30
31+ * Access to HTTPS URLs now uses the urrllib implementation by default.
32+ For the old pycurl-based implementation, specify ``https+pycurl://`` as
33+ the URL scheme when accessing a HTTPS location.
34+ (Jelmer Vernooij, #125055)
35+
36 Bug Fixes
37 *********
38