InvalidURL: URL was not a plain ASCII url
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Invalid
|
Undecided
|
Unassigned | ||
Trac-Bzr |
Fix Committed
|
Medium
|
Martin von Gagern | ||
0.3 |
Fix Committed
|
Medium
|
Alexander Belchenko |
Bug Description
I have files with Russian names in my Bazaar repository. When I click on in through Browse Source, I get the following error:
InvalidURL: Invalid url supplied to transport: "trunk/
Most recent call last:
* File "c:/docume~
Code fragment:
Line
506 try:
507 if not env and env_error:
508 raise HTTPInternalErr
509 try:
510 dispatcher = RequestDispatch
511 dispatcher.
512 except RequestDone:
513 pass
514 resp = req._response or []
515
516 except HTTPException, e:
Local variables:
Name Value
dispatcher <trac.web.
e InvalidURL(Invalid url supplied to transport: ...
env <trac.env.
env_error None
req <Request "GET ...
resp []
* File "c:/docume~
Code fragment:
Line
232 msg = _('Do you have cookies enabled?')
233 raise HTTPBadRequest(
234 ' %(msg)s', msg=msg))
235
236 # Process the request and render the template
237 resp = chosen_
238 if resp:
239 if len(resp) == 2: # Clearsilver
240 chrome.
241 template, content_type = \
242 self._post_
Local variables:
Name Value
chosen_
chrome <trac.web.
err (<class 'bzrlib.
handler <trac.versionco
req <Request "GET ...
self <trac.web.
* File "c:/docume~
Code fragment:
Line
366 if rev:
367 rev = repos.normalize
368 # If `rev` is `None`, we'll try to reuse `None` consistently,
369 # as a special shortcut to the latest revision.
370 rev_or_latest = rev or repos.youngest_rev
371 node = get_existing_
372 except NoSuchChangeset, e:
373 raise ResourceNotFoun
374 _('Invalid changeset number'))
375
376 context = context(
Local variables:
Name Value
all_
context <Context >
desc False
display_rev <function <lambda> at 0x025710F0>
node None
order 'name'
path u'trunk/
presel None
reponame None
repos BzrRepository(
req <Request "GET ...
rev None
rev_or_latest 'current:'
rm <trac.versionco
self <trac.versionco
xhr False
* File "c:/docume~
Code fragment:
Line
59 })
60 return links
61
62 def get_existing_
63 try:
64 return repos.get_
65 except NoSuchNode, e:
66 # TRANSLATOR: You can 'search' in the repository history... (link)
67 search_a = tag.a(_("search"),
68 href=req.
69 raise ResourceNotFoun
Local variables:
Name Value
path u'trunk/
repos BzrRepository(
req <Request "GET ...
rev 'current:'
* File "C:/Python26/
Code fragment:
Line
576 path = self.normalize_
577 if rev is None:
578 rev = self._escape_
579 revbranch, revid = self._parse_
580 try:
581 branch, relpath = self.get_
582 except errors.
583 if not self.root_
584 raise versioncontrol.
585 return UnversionedDirN
586 if revbranch is None:
Local variables:
Name Value
path u'trunk/
rev 'current:'
revbranch None
revid 'current:'
self BzrRepository(
* File "C:/Python26/
Code fragment:
Line
456 self._locked_
457 self._branch_
458 return branch
459
460 def get_containing_
461 branch, relpath = containing_
462 real_location = location[
463 if real_location not in self._branch_cache:
464 self._branch_
465 self._locked_
466 # return the cached version, possibly throwing away the one we just
Local variables:
Name Value
location u'trunk/
self BzrRepository(
* File "C:/Python26/
Code fragment:
Line
1338 yield (path, kindmap[kind], self.EDIT, other.id2path(
1339 self.bzr_
1340
1341
1342 def containing_
1343 child_transport = transport.
1344 my_bzrdir, relpath = \
1345 bzrdir.
1346 return my_bzrdir.
1347
1348
Local variables:
Name Value
path u'trunk/
transport <bzrlib.
* File "C:/Python26/
Code fragment:
Line
81 we can just return a new object.
82 """
83 if offset is None:
84 return LocalTransport(
85 else:
86 abspath = self.abspath(
87 if abspath == 'file://':
88 # fix upwalk for UNC path
89 # when clone from //HOST/path updir recursively
90 # we should stop at least at //HOST part
91 abspath = self.base
Local variables:
Name Value
offset u'trunk/
self <bzrlib.
* File "C:/Python26/
Code fragment:
Line
106 """Return the full url to the given relative URL."""
107 # TODO: url escape the result. RBC 20060523.
108 # jam 20060426 Using normpath on the real path, because that ensures
109 # proper handling of stuff like
110 path = osutils.
111 self._local_base, urlutils.
112 # on windows, our _local_base may or may not have a drive specified
113 # (ie, it may be "/" or "c:/foo").
114 # If 'relpath' is '/' we *always* get back an abspath without
115 # the drive letter - but if our transport already has a drive letter,
116 # we want our abspaths to have a drive letter too - so handle that
Local variables:
Name Value
relpath u'trunk/
self <bzrlib.
* File "C:/Python26/
Code fragment:
Line
567 # try to encode the UNICODE => ASCII, and then decode
568 # it into utf-8.
569 try:
570 url = str(url)
571 except UnicodeError, e:
572 raise errors.
573
574 unquoted = urllib.unquote(url)
575 try:
576 unicode_path = unquoted.
577 except UnicodeError, e:
Local variables:
Name Value
e UnicodeEncodeEr
url u'trunk/
File "c:/docume~
dispatcher.
File "c:/docume~
resp = chosen_
File "c:/docume~
node = get_existing_
File "c:/docume~
return repos.get_
File "C:/Python26/
branch, relpath = self.get_
File "C:/Python26/
branch, relpath = containing_
File "C:/Python26/
child_transport = transport.
File "C:/Python26/
abspath = self.abspath(
File "C:/Python26/
self._local_base, urlutils.
File "C:/Python26/
raise errors.
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)
Trac 0.12.1
Bazaar 2.2.0
Genshi 0.6
mod_wsgi 3.3 (WSGIProcessGroup WSGIApplication
Pygments 1.3.1
pysqlite 2.4.1
Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)]
setuptools 0.6c11
SQLite 3.5.9
TracBzr 0.4.2
jQuery 1.4.2
Enabled Plugins:
nevernotifyupda
timingandestima
tracaccountmanager 0.2.1dev-r7737 c:\python26\
tracbzr 0.4.2 c:\python26\
Related branches
- Richard Wilbur: Approve
-
Diff: 20 lines (+2/-1)1 file modifiedtracbzr/backend.py (+2/-1)
Trac is working on Microsoft Windows XP Pro SP3.