~bzr-pqm/bzr/bzr.dev

  • Committer: Vincent Ladeuil
  • Date: 2007-10-22 21:19:13 UTC
  • mto: (2961.1.1 trunk)
  • Revision ID: v.ladeuil+lp@free.fr-20071022211913-119445k3qco40sx0
Make hhtp proxy aware of AuthenticationConfig (for password).

* bzrlib/transport/http/_urllib2_wrappers.py:
(Request.__init__): Update the auth dict content documentation.
(extract_credentials, extract_authentication_uri): Deleted.
(PasswordManager): Deleted.
(ProxyHandler.set_proxy): Query AuthenticationConfig for the
password. Simplified.
(AbstractAuthHandler): Looong forgotten feedback review about
_retry_count. The behaviour is not changed.
(AbstractAuthHandler.get_password): Change signature now that the
auth dict contains all relevant information. Simplified.
(DigestAuthHandler.auth_match): Delete gratuitous differences with
BasicAuthHandler.
(Opener.__init__): Get rid of PasswordManager.

* bzrlib/transport/http/_urllib.py:
(HttpTransport_urllib._perform): Replace authuri by its components
in the auth dict.

* bzrlib/transport/ftp.py: 
Register 'aftp' for urlparse (revealed by the host empty test in
_split_url).

* bzrlib/transport/__init__.py:
(ConnectedTransport._split_url): Check that host is not empty. Was
first needed to make a proxy test pass, but revealed more bugs in
the test suite.

* bzrlib/tests/test_transport_implementations.py:
(TransportTests.test__reuse_for): Fix bug revealed by the host
empty test in _split_url.

* bzrlib/tests/test_transport.py:
(TestConnectedTransport.test_connection_sharing_propagate_credentials): 
Fix bug revealed by the host empty test in _split_url.

* bzrlib/tests/test_smart_transport.py:
(HTTPTunnellingSmokeTest._test_bulk_data): Fix bug revealed by the
host empty test in _split_url.

* bzrlib/tests/test_http.py:
(TestHttpTransportUrls.test_invalid_http_urls): ConnectionError
can't be raised here.
(TestHttpProxyWhiteBox._proxied_request): No more PasswordManager,
yeah !
(TestProxyHttpServer): Delete FIXME, tests have been added a long
time ago.

* bzrlib/config.py:
(AuthenticationConfig.get_user): Fix silly copy/paste.
(AuthenticationConfig.get_password): Fix oversight.
Filename Latest Rev Last Changed Committer Comment Size
..
http 1540.3.3 19 years ago Martin Pool Review updates of pycurl transport Split them out Diff
__init__.py 2900.2.16 17 years ago Vincent Ladeuil Make hhtp proxy aware of AuthenticationConfig (for 70 KB Diff Download File
brokenrename.py 2555.3.14 17 years ago Martin Pool Better handling in LockDir of rename that moves on 1.9 KB Diff Download File
chroot.py 2671.3.9 17 years ago Robert Collins Review feedback and fix VFat emulated transports t 5.5 KB Diff Download File
decorator.py 2745.5.3 17 years ago Robert Collins * Move transport logging into a new transport clas 7.6 KB Diff Download File
fakenfs.py 1887.1.1 18 years ago Adeodato Simó Do not separate paragraphs in the copyright statem 2.3 KB Diff Download File
fakevfat.py 2745.5.1 17 years ago Robert Collins * New parameter on ``bzrlib.transport.Transport.re 3.8 KB Diff Download File
ftp.py 2900.2.16 17 years ago Vincent Ladeuil Make hhtp proxy aware of AuthenticationConfig (for 30.2 KB Diff Download File
local.py 2745.5.5 17 years ago Robert Collins Merge bzr.dev. 20 KB Diff Download File
memory.py 2745.5.5 17 years ago Robert Collins Merge bzr.dev. 10.9 KB Diff Download File
readonly.py 2018.5.95 17 years ago Andrew Bennetts Add a Transport.is_readonly remote call, let {Bran 3 KB Diff Download File
remote.py 1551.18.17 17 years ago Aaron Bentley Introduce bzr_remote_path configuration variable 21.4 KB Diff Download File
sftp.py 2745.5.5 17 years ago Robert Collins Merge bzr.dev. 42.7 KB Diff Download File
ssh.py 2900.2.15 17 years ago Vincent Ladeuil AuthenticationConfig can be queried for logins too 22.7 KB Diff Download File
trace.py 2745.5.4 17 years ago Robert Collins Review feedback. 5.6 KB Diff Download File
unlistable.py 2617.4.1 17 years ago Robert Collins Add a new transport decorator unlistable+ for test 1.7 KB Diff Download File