Doesn't get user/password details from authentication.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Subversion Plugin |
Fix Released
|
Medium
|
Jelmer Vernooij | ||
bzr-svn (Ubuntu) |
Fix Released
|
Undecided
|
Jelmer Vernooij |
Bug Description
Binary package hint: bzr-svn
Trying to checkout a repository with user/password information doesn't work. I have a user and password set in autentication.py, but it still prompts for both:
$ bzr checkout svn+https://<email address hidden>/svn/trunk/ clir-trunk
HTTPS username: coles.david
<https:/
bazaar log:
Fri 2010-03-05 10:26:09 +1100
0.032 bazaar version: 2.1.0
0.033 bzr arguments: [u'checkout', u'svn+https://<email address hidden>
0.052 looking for plugins in /home/dcoles/
0.053 looking for plugins in /usr/lib/
0.116 encoding stdout as sys.stdout encoding 'UTF-8'
0.553 Obtaining username and password for SVN connection '<https:/
0.557 encoding stdout as sys.stdout encoding 'UTF-8'
143.440 encoding stdout as sys.stdout encoding 'UTF-8'
Taking a look at the code in auth.py it appears that get_svn_simple is calling self.get_user and self.get_password and these are what are promping for the username/password. The issue looks like self.host is not being set before these functions get called and so they don't match any entries in my authentication.
I've tried this both with and without a username set in the URL - doesn't seem to make much of a difference.
ProblemType: Bug
Architecture: amd64
Date: Fri Mar 5 00:17:46 2010
DistroRelease: Ubuntu 10.04
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
Package: bzr-svn 1.0.2-2
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_AU.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: bzr-svn
Uname: Linux 2.6.32-14-generic x86_64
Related branches
Changed in bzr-svn: | |
status: | New → In Progress |
tags: | added: patch |
Changed in bzr-svn: | |
status: | In Progress → Fix Released |
Changed in bzr-svn: | |
assignee: | nobody → Jelmer Vernooij (jelmer) |
importance: | Undecided → Medium |
Changed in bzr-svn (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in bzr-svn (Ubuntu): | |
status: | Fix Committed → Fix Released |
assignee: | nobody → Jelmer Vernooij (jelmer) |
Looks like the issue is in create_auth_baton. When it calls `(scheme, netloc, path, _, _) = urlparse. urlsplit( url)`, netloc ends up being '' and path is '//<email address hidden> /svn/trunk/ '. The urlparse.urlsplit function doesn't like 'svn+https' being passed to it - in urllib there's a 'uses_netloc' variable which determines if a url should be split into a netloc (which has things like 'http', 'svn', 'svn+https' etc.). So, either need to split the url ourselves or snip off the 'svn+' prefix.