bzr can't parse username containing @ from a url
Bug #228058 reported by
seyacat
This bug report is a duplicate of:
Bug #215059: Cannot push if login is an e-mail address.
Edit
Remove
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Unassigned |
Bug Description
in my hosting (Hostgator) i have this user configuration for ftp
user:<email address hidden>
host:www.host.com
when i use this command:
bzr push ftp://<email address hidden>
bzr identify user like user
and <email address hidden> like host
obiusly i have connection error.
im using bzr on Ubuntu 8.04 Hardy Heron
TY and bye
Changed in bzr: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in bzr: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
The official way to supply a url with an @ in it is to URL escape it with %40.
So your address would be:
bzr push ftp://user%<email address hidden>/
Now, if we wanted, we could change our code from:
user, host = netsplit.split('@', 1) rsplit( '@', 1)
to something like
user, host = netsplit.
which would presume that host names will never have @, and only the last @ is a separating character.