Deal with branches requiring basic http authentication
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Low
|
Vincent Ladeuil | ||
Bazaar WebDAV plugin |
Fix Released
|
High
|
Vincent Ladeuil |
Bug Description
While trying to see how current bzr.dev deals with branches requiring http authentication I ran into the following error:
bzr: ERROR: Invalid http response for http://
The apache virtualhost in question has a simple
<Location /protected>
AuthType Basic
AuthName some branch
AuthUserFile path/to/htpasswd
Require valid-user
</Location>
The error is raised when you don't provide both username and password upfront.
bzr branch http://
or
bzr branch http://
However, bzr branch http://
Either the error message needs to be improved, or bzr should learn to deal with a 401 and ask for credentials. Preferably the latter.
Changed in bzr: | |
assignee: | nobody → v-ladeuil |
Changed in bzr: | |
status: | Needs Info → In Progress |
Changed in bzr.webdav: | |
assignee: | nobody → v-ladeuil |
importance: | Undecided → High |
status: | Unconfirmed → Confirmed |
status: | Confirmed → In Progress |
Changed in bzr: | |
importance: | Undecided → Low |
Yes, the bug is that we do not even *try* to catch the 401 errors in the *pycurl* implementation.
The newly merged urllib implementation does however prompt for password in such cases.