Opening a bookmark with a URL containing a space impossible (InvalidURL: Invalid url supplied to transport)

Bug #1042762 reported by André Bachmann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Confirmed
Medium
Unassigned

Bug Description

Tested with bzr 2.5.1 and {bzr-explorer,qbzr} latest trunk on Win7 x64.

I can use "File, Open Location" to open a branch located on a FTP server like this:

ftp://Andre Bachmann:<email address hidden>/Software/bzr-repo/trunk
(Please note the space in the login name!)

Then this location gets opened and I can work with it. Because I don't want to type this long URL later, I bookmark this location with "Bookmarks, Bookmark this location". No problem, my bookmarks.xml now has an entry like this:

<bookmark kind="branch" location="ftp://Andre Bachmann:<email address hidden>/Software/bzr-repo/trunk" title="FTP trunk [bzr-repo]" />

However, I cannot open this bookmark because of the space. This results in this error:
InvalidURL: Invalid url supplied to transport: "ftp://Andre Bachmann:<email address hidden>/Software/bzr-repo/trunk": URLs can only contain specific safe characters (not ' ')

Please have a look at the attached .bzr.log. I have tried to escape the space (I tried "%20", "%#x20;" and "\ "), but with no luck.

Tags: invalidurl
Revision history for this message
André Bachmann (andrebachmann-dd) wrote :
Revision history for this message
Alexander Belchenko (bialix) wrote :

7.851 Traceback (most recent call last):
  File "C:/Users/bachmann/AppData/Roaming/bazaar/2.0/plugins\explorer\lib\explorer.py", line 1524, in callable_with_cleanup
  File "C:/Users/bachmann/AppData/Roaming/bazaar/2.0/plugins\explorer\lib\explorer.py", line 1698, in _open_location_task
  File "C:/Users/bachmann/AppData/Roaming/bazaar/2.0/plugins\explorer\lib\location_viewer.py", line 169, in add_location
  File "C:/Users/bachmann/AppData/Roaming/bazaar/2.0/plugins\explorer\lib\location_viewer.py", line 177, in _record_history
  File "C:/Users/bachmann/AppData/Roaming/bazaar/2.0/plugins\explorer\lib\history_manager.py", line 83, in add_recent
  File "bzrlib\urlutils.pyo", line 392, in normalize_url
InvalidURL: Invalid url supplied to transport: "ftp://Andre Bachmann:<email address hidden>/Software/bzr-repo/trunk": URLs can only contain specific safe characters (not ' ')

Revision history for this message
Alexander Belchenko (bialix) wrote :

%20 should be rather than space. Very strange it didn't help you.

Changed in bzr-explorer:
status: New → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.