~bzr-pqm/bzr/bzr.dev

Viewing all changes in revision 3910.2.2.

  • Committer: Vincent Ladeuil
  • Date: 2008-12-19 10:37:42 UTC
  • mto: (3920.1.1 bzr.integration)
  • mto: This revision was merged to the branch mainline in revision 3921.
  • Revision ID: v.ladeuil+lp@free.fr-20081219103742-3jgozfsnv5ojjyu4
Fix bug #300347 by allowing querying authentication.conf if no
user is supplied.

* bzrlib/transport/http/_urllib2_wrappers.py:
(AbstractAuthHandler.auth_required): Restore the no user/no auth
check.
(AbstractAuthHandler.auth_match): Don't try to get a password if
we couldn't get a user.

* bzrlib/tests/test_http.py:
(TestAuth.test_user_from_auth_conf): Reproduce bug #300347.

* NEWS: 
Point to the right bug number. Give credit to Ben for pointing the
root bug in _urllib2_wrappers.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: