/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
..
__init__.py 2018.5.96 18 years ago Andrew Bennetts Merge from bzr.dev, resolving the worst of the sem 3.2 KB Diff Download File
test_break_lock.py 2052.3.2 19 years ago John Arbash Meinel Change Copyright .. by Canonical to Copyright ... 2.2 KB Diff Download File
test_commit_builder.py 2018.5.141 18 years ago Andrew Bennetts Merge supports-rich-root branch. 5.8 KB Diff Download File
test_fileid_involved.py 2018.5.116 18 years ago Robert Collins Commit final test-case-cleanups branch. 12.1 KB Diff Download File
test_iter_reverse_revision_history.py 2255.2.234 18 years ago Robert Collins Merge bzr.dev. 5.8 KB Diff Download File
test_reconcile.py 2018.5.113 18 years ago Robert Collins Test only fixes from the ported-to-bzr.dev test-co 15 KB Diff Download File
test_repository.py 2018.5.149 18 years ago Andrew Bennetts Merge from bzr.dev 29.9 KB Diff Download File
test_revision.py 1913.1.5 19 years ago John Arbash Meinel fix test name 4.3 KB Diff Download File
test_statistics.py 2258.1.2 19 years ago Robert Collins New version of gather_stats which gathers aggregat 3.7 KB Diff Download File