#6743 unicode paths in code browser 500 error [ss5542]

forge-jan-10
closed
nobody
General
1
2014-01-02
2013-10-09
Chris Tsai
No

[forge:site-support:#5542]

If trying to click "völundr" -link under https://sourceforge.net/p/vlundr/code/ci/0471b70193ba34d2913f99fad300ed7efd979563/tree/stronglytyped-sortedbag/src/main/java/net/sf/
HTTP 500 with message "We're sorry but we weren't able to process this request." is given.

So something obviously wrong when using scandinavian letters (ä,ö,å) with package names.

I was sure we had a ticket for this, but I wasn't able to find it. Perhaps it was fixed and this is a recurrence...

Related

Chat: 528b5ab90594ca197bb1d9ac
Chat: 528b5ab90594ca197bb1d9af
Tickets: #6743
Forge: Site Support: #5542

Discussion

1 2 3 > >> (Page 1 of 3)
  • Dave Brondsema
    Dave Brondsema
    2013-10-31

    Error is:

    File '/var/local/allura/Allura/allura/model/repo.py', line 788 in _last_commit_id
      rev = commit.repo.log(commit._id, path, id_only=True).next()
    File '/var/local/allura/ForgeGit/forgegit/model/git_repo.py', line 308 in log
      for ci, refs, renamed in self._iter_commits_with_refs(*args):
    File '/var/local/allura/ForgeGit/forgegit/model/git_repo.py', line 381 in _iter_commits_with_refs
      proc = self._git.git.log(*args, format='%H%x00%d', as_process=True, **kwargs)
    File '/var/local/allura/ForgeGit/forgegit/model/git_repo.py', line 61 in log
      return self.client.log(*args, **kwargs)
    File '/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1_20131017-py2.7.egg/git/cmd.py', line 228 in <lambda>
      return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
    File '/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1_20131017-py2.7.egg/git/cmd.py', line 451 in _call_process
      ext_args = self.__unpack_args([a for a in args if a is not None])
    File '/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1_20131017-py2.7.egg/git/cmd.py', line 410 in __unpack_args
      outlist.extend(cls.__unpack_args( arg ))
    File '/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1_20131017-py2.7.egg/git/cmd.py', line 405 in __unpack_args
      return [ str(arg_list) ]
    UnicodeEncodeError: 'ascii' codec can't encode character u'\\xf6' in position 46: ordinal not in range(128)
    
     
1 2 3 > >> (Page 1 of 3)


Anonymous


Cancel   Add attachments