Crash on symlinks involving Unicode characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Jelmer Vernooij | ||
Bazaar Subversion Plugin |
Fix Released
|
Undecided
|
Jelmer Vernooij |
Bug Description
This is split and simplified from bug #319313.
If there is a SVN repository with symlinks involving Unicode characters, it crashes bzr-svn.
Reproduction:
svnadmin create repos
svn co file://`pwd`/repos wc
cd wc
touch 𠀀
ln -s 𠀀 a
touch b
ln -s b 𠀁
svn add *
svn commit -m "Added files and links"
bzr up
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/home/
return run_bzr(argv)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
tree = WorkingTree.
File "/home/
return control.
File "/home/
return SvnWorkingTree(
File "/home/
self.
File "/home/
self.
File "/home/
add_
File "/home/
add_
File "/home/
file.
UnicodeEncodeError: 'ascii' codec can't encode character u'\U00020001' in position 47: ordinal not in range(128)
bzr 1.12dev on python 2.5.2 (linux2)
arguments: ['/home/
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
bisect /home/wjlanda/
bzrtools /usr/lib/
cvsps_import /usr/lib/
gtk /home/wjlanda/
launchpad /home/wjlanda/
loom /usr/lib/
netrc_
qbzr /home/wjlanda/
rebase /usr/lib/
search /usr/lib/
stats /usr/lib/
svn /home/wjlanda/
upload /usr/lib/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
Changed in bzr-svn: | |
status: | New → Fix Released |
Changed in bzr-svn: | |
assignee: | nobody → jelmer |
Changed in bzr: | |
assignee: | nobody → jelmer |
importance: | Undecided → Medium |
milestone: | none → 1.12rc1 |
status: | New → Fix Released |
I reported a similar bug on bzr as bug #319323. It's not the same, though, because it crashes in bzrlib and this one crashes in bzr-svn.