2529: Error 500 when trying to upload a diff

smbs*****@gmai***** (Google Code) (Is this you? Claim this profile.)
March 17, 2012
What version are you running?
1.6.4

What's the URL of the page containing the problem?
http://localhost/reviewboard/r/new/

What steps will reproduce the problem?
1.when I created a review request and tried to upload a diff file,it suggests"some error occurs(error 500)".
The base directory area I input 'http://localhost/svn/hello', which can be accessed with web browser.

The error log message can be seen in log.txt.

What is the expected output? What do you see instead?
Review request should be created without error.

What operating system are you using? What browser?

WinXP
Please provide any additional information below.

1.Some information about Subversion settings:I used Subversion and Apache, the Repository path: http://localhost/svn/hello or file:///F:/Mysvn/hello, the repository works well,supports http and file protocol.

2.I configured the repository setting in the Database--Scmtools-Repositories,as follow
Hosting service : custom
Repository type : Subversion
Path : http://localhost/svn/hello
Username : username
Password : password
Access Control :
Publicly accessible : is selected
Users with access : All users are selected

Thanks for your generous help!
Traceback (most recent call last):
 
  File "D:\Python25\Lib\site-packages\django\core\handlers\base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
 
  File "d:\python25\lib\site-packages\Djblets-0.6.16-py2.5.egg\djblets\auth\util.py", line 46, in _checklogin
    return view_func(request, *args, **kwargs)
 
  File "d:\python25\lib\site-packages\ReviewBoard-1.6.4-py2.5.egg\reviewboard\reviews\views.py", line 262, in new_review_request
    'fields': simplejson.dumps(form.field_mapping),
 
  File "D:\Python25\Lib\site-packages\django\shortcuts\__init__.py", line 20, in render_to_response
    return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
 
  File "D:\Python25\Lib\site-packages\django\template\loader.py", line 183, in render_to_string
    return t.render(Context(dictionary))
 
  File "D:\Python25\Lib\site-packages\django\template\base.py", line 123, in render
    return self._render(
david
#1 david
It looks like something is wrong with your database encoding. You'll need to check the configuration of your database.
  • +SetupIssue
#2 keke****@gmai***** (Google Code) (Is this you? Claim this profile.)
The database i used is mysql,and default encoding is utf-8.
Do  I need some other settings in Reviewboarad?
#3 smbs*****@gmai***** (Google Code) (Is this you? Claim this profile.)
I found the answer.Because I user tortoise svn in windows,when I use the tortoise patch tool to create a patch file,it has some Chinese character.That causes a decode error.
The simplest solution is to use some other tools to create patch,or edit python file to support Chinese character CODEC.
#4 smbs*****@gmai***** (Google Code) (Is this you? Claim this profile.)
And that's the problem of tortoise svn...