/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

  • Committer: Vincent Ladeuil
  • Date: 2007-06-20 13:56:21 UTC
  • mto: (2574.1.1 ianc-integration)
  • Revision ID: v.ladeuil+lp@free.fr-20070620135621-x43c0hnmzu0iuo6m
Fix #115209 by issuing a single range request on 400: Bad Request

* bzrlib/transport/http/response.py:
(handle_response): Consider 400 as an indication that too much
ranges were specified.

* bzrlib/transport/http/_urllib2_wrappers.py:
(Request): Add an 'accpeted_errors' parameters describing what
error codes the caller will handle.
(HTTPErrorProcessor): Mention that Request specific accepted error
codes takes precedence.
(HTTPDefaultErrorHandler.http_error_default): Remove dead code.

* bzrlib/transport/http/_urllib.py:
(HttpTransport_urllib._get): Add 400 as an accepted error iff
ranges are specified.
(HttpTransport_urllib._head): Restrict accepted errors.

* bzrlib/transport/http/__init__.py:
(HttpTransportBase._degrade_range_hint,
HttpTransportBase._get_ranges_hinted): Replace _retry_get.
(HttpTransportBase.readv): Simplified and avoid the spurious _get()
issued when _get was successful.

* bzrlib/tests/test_http.py:
(TestLimitedRangeRequestServer,
TestLimitedRangeRequestServer_urllib,
TestLimitedRangeRequestServer_pycurl): Bug #115209 specific tests.

* bzrlib/tests/HTTPTestUtil.py:
(LimitedRangeRequestHandler, LimitedRangeHTTPServer): New test
classes to emulate apache throwing 400: Bad Request when too much
ranges are specified.
(AuthRequestHandler.do_GET): Remove dead code. Yeah, I know,
not related to the bug :-/
Filename Latest Rev Last Changed Committer Comment Size
..
diff 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 45.4 KB Diff Download File
diff-2 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 270 bytes Diff Download File
diff-3 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 204 bytes Diff Download File
diff-4 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 223 bytes Diff Download File
diff-5 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 4.9 KB Diff Download File
diff-6 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 18.7 KB Diff Download File
insert_top.patch 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 130 bytes Diff Download File
mod 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 91.9 KB Diff Download File
mod-2 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 18.1 KB Diff Download File
mod-3 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 18.1 KB Diff Download File
mod-4 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 18 KB Diff Download File
mod-5 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 13.5 KB Diff Download File
mod-6 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 22 bytes Diff Download File
orig 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 97.8 KB Diff Download File
orig-2 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 18 KB Diff Download File
orig-3 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 18.1 KB Diff Download File
orig-4 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 18 KB Diff Download File
orig-5 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 18 KB Diff Download File
orig-6 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 18 KB Diff Download File
patchtext.patch 1731.1.17 19 years ago Aaron Bentley Merge bzr.dev 988 bytes Diff Download File