My users copy-paste comments from email (e.g. bulleted points) or any
other sources. Summary may not contain pure ASCII characters.  e.g.
this case character with byte code 0x96  appeared in the "Summary"
section.

Post-review shows error "Internal Server Error" when User tries to
submit review request.

Apache Error log shows:

DjangoUnicodeDecodeError: 'utf8' codec can't decode byte 0x96 in
position 122: unexpected code byte. You passed in <<removed text>>
(<type 'str'>)
ERROR:root:Exception thrown for user deepak at
http://reviewboard.mimosasystems.com/api/json/reviewrequests/new/

'utf8' codec can't decode byte 0x96 in position 122: unexpected code
byte. You passed in <<removed text>> (<type 'str'>)
Traceback (most recent call last):
  File "c:\python25\lib\site-packages\django-1.1.1-py2.5.egg\django
\core\handlers\base.py", line 92, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "c:\python25\lib\site-packages\django-1.1.1-py2.5.egg\django
\views\decorators\cache.py", line 44, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "c:\python25\lib\site-packages\Djblets-0.5.5-py2.5.egg\djblets
\webapi\decorators.py", line 59, in _checklogin
    response = view_func(request, *args, **kwargs)
  File "c:\python25\lib\site-packages\django-1.1.1-py2.5.egg\django
\views\decorators\http.py", line 37, in inner
    return func(request, *args, **kwargs)
  File "c:\python25\lib\site-packages\ReviewBoard-1.0.5.1-py2.5.egg
\reviewboard\webapi\json.py", line 439, in new_review_request
    user, repository, request.POST.get('changenum', None))
  File "c:\python25\lib\site-packages\ReviewBoard-1.0.5.1-py2.5.egg
\reviewboard\reviews\managers.py", line 74, in create
    review_request.save()
  File "c:\python25\lib\site-packages\ReviewBoard-1.0.5.1-py2.5.egg
\reviewboard\reviews\models.py", line 395, in save
    super(ReviewRequest, self).save()
  File "c:\python25\lib\site-packages\django-1.1.1-py2.5.egg\django\db
\models\base.py", line 410, in save
    self.save_base(force_insert=force_insert,
force_update=force_update)
  File "c:\python25\lib\site-packages\django-1.1.1-py2.5.egg\django\db
\models\base.py", line 474, in save_base
    rows = manager.filter(pk=pk_val)._update(values)
  File "c:\python25\lib\site-packages\django-1.1.1-py2.5.egg\django\db
\models\query.py", line 444, in _update
    return query.execute_sql(None)
  File "c:\python25\lib\site-packages\django-1.1.1-py2.5.egg\django\db
\models\sql\subqueries.py", line 120, in execute_sql
    cursor = super(UpdateQuery, self).execute_sql(result_type)
  File "c:\python25\lib\site-packages\django-1.1.1-py2.5.egg\django\db
\models\sql\query.py", line 2369, in execute_sql
    cursor.execute(sql, params)
  File "c:\python25\lib\site-packages\Djblets-0.5.5-py2.5.egg\djblets
\log\middleware.py", line 52, in execute
    sql = self.db.ops.last_executed_query(self.cursor, sql, params)
  File "c:\python25\lib\site-packages\django-1.1.1-py2.5.egg\django\db
\backends\__init__.py", line 213, in last_executed_query
    u_params = tuple([to_unicode(val) for val in params])
  File "c:\python25\lib\site-packages\django-1.1.1-py2.5.egg\django\db
\backends\__init__.py", line 211, in <lambda>
    to_unicode = lambda s: force_unicode(s, strings_only=True)
  File "c:\python25\lib\site-packages\django-1.1.1-py2.5.egg\django
\utils\encoding.py", line 92, in force_unicode
    raise DjangoUnicodeDecodeError(s, *e.args)
DjangoUnicodeDecodeError: 'utf8' codec can't decode byte 0x96 in
position 122: unexpected code byte. You passed in <<removed text>>
(<type 'str'>)

=================================================

we have ReviewBoard server on Win2K3 server and post-review run from
Windows boxes. (XP/Win2K3 Servers).
Any suggestions to get around the issue?

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to