Issue 3585 in reviewboard: Post a comment containing Chinese charaters to a diff in reviewboard will faill !
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 3585 by wdaog...@gmail.com: Post a comment containing Chinese charaters to a diff in reviewboard will faill ! https://code.google.com/p/reviewboard/issues/detail?id=3585 When I comment using the statement below to a diff: 发送中文不行Cannot send any chinese characters. I will get an error from the httpd error_log,and please see it below: [Sun Sep 28 09:30:54 2014] [error] ERROR:root:Exception thrown for user dvadva1001 at http://192.168.10.200:8020/api/review-requests/22/reviews/10/diff-comments/ [Sun Sep 28 09:30:54 2014] [error] [Sun Sep 28 09:30:54 2014] [error] (1366, Incorrect string value: 'xE5x8Fx91xE9x80x81...' for column 'text' at row 1) [Sun Sep 28 09:30:54 2014] [error] Traceback (most recent call last): [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/Django-1.6.7-py2.7.egg/django/core/handlers/base.py, line 112, in get_response [Sun Sep 28 09:30:54 2014] [error] response = wrapped_callback(request, *callback_args, **callback_kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/Django-1.6.7-py2.7.egg/django/views/decorators/cache.py, line 52, in _wrapped_view_func [Sun Sep 28 09:30:54 2014] [error] response = view_func(request, *args, **kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/Django-1.6.7-py2.7.egg/django/views/decorators/vary.py, line 19, in inner_func [Sun Sep 28 09:30:54 2014] [error] response = func(*args, **kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/resources.py, line 494, in __call__ [Sun Sep 28 09:30:54 2014] [error] request, method, view, api_format=api_format, *args, **kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/resources.py, line 565, in call_method_view [Sun Sep 28 09:30:54 2014] [error] return view(request, *args, **kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/resources.py, line 747, in post [Sun Sep 28 09:30:54 2014] [error] return self.create(*args, **kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/decorators.py, line 117, in _call [Sun Sep 28 09:30:54 2014] [error] return view_func(*args, **kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/ReviewBoard-2.0.6-py2.7.egg/reviewboard/webapi/decorators.py, line 110, in _check [Sun Sep 28 09:30:54 2014] [error] return view_func(*args, **kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/decorators.py, line 117, in _call [Sun Sep 28 09:30:54 2014] [error] return view_func(*args, **kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/decorators.py, line 138, in _checklogin [Sun Sep 28 09:30:54 2014] [error] return view_func(*args, **kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/decorators.py, line 117, in _call [Sun Sep 28 09:30:54 2014] [error] return view_func(*args, **kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/decorators.py, line 117, in _call [Sun Sep 28 09:30:54 2014] [error] return view_func(*args, **kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/decorators.py, line 287, in _validate [Sun Sep 28 09:30:54 2014] [error] return view_func(*args, **new_kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/ReviewBoard-2.0.6-py2.7.egg/reviewboard/webapi/resources/review_diff_comment.py, line 127, in create [Sun Sep 28 09:30:54 2014] [error] **kwargs) [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/ReviewBoard-2.0.6-py2.7.egg/reviewboard/webapi/resources/base_comment.py, line 157, in create_comment [Sun Sep 28 09:30:54 2014] [error] new_comment.save() [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/ReviewBoard-2.0.6-py2.7.egg/reviewboard/reviews/models/base_comment.py, line 133, in save [Sun Sep 28 09:30:54 2014] [error] super(BaseComment, self).save() [Sun Sep 28 09:30:54 2014] [error] File /usr/local/lib/python2.7/site-packages/Django-1.6.7-py2.7.egg/django/db/models/base.py, line 545, in save [Sun Sep 28 09:30:54 2014] [error] force_update=force_update, update_fields=update_fields) [Sun Sep 28 09:30:54
Re: Issue 3585 in reviewboard: Post a comment containing Chinese charaters to a diff in reviewboard will faill !
Updates: Status: SetupIssue Comment #1 on issue 3585 by trowb...@gmail.com: Post a comment containing Chinese charaters to a diff in reviewboard will faill ! https://code.google.com/p/reviewboard/issues/detail?id=3585 By default, MySQL does not create databases using the UTF-8 encoding. You'll have to update your database to use UTF-8. -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings -- You received this message because you are subscribed to the Google Groups reviewboard-issues group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-issues+unsubscr...@googlegroups.com. To post to this group, send email to reviewboard-issues@googlegroups.com. Visit this group at http://groups.google.com/group/reviewboard-issues. For more options, visit https://groups.google.com/d/optout.
Re: Issue 3576 in reviewboard: Upgrade from 1.7.20 to 2.0.7 failed
Comment #9 on issue 3576 by vlov...@gmail.com: Upgrade from 1.7.20 to 2.0.7 failed https://code.google.com/p/reviewboard/issues/detail?id=3576 Ah. Maybe the guide should be updated or there's some better integration to be done with Nginx/UWSGI? -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings -- You received this message because you are subscribed to the Google Groups reviewboard-issues group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard-issues+unsubscr...@googlegroups.com. To post to this group, send email to reviewboard-issues@googlegroups.com. Visit this group at http://groups.google.com/group/reviewboard-issues. For more options, visit https://groups.google.com/d/optout.
Re: Issue 3585 in reviewboard: Post a comment containing Chinese charaters to a diff in reviewboard will faill !
Comment #2 on issue 3585 by wdaog...@gmail.com: Post a comment containing Chinese charaters to a diff in reviewboard will faill ! https://code.google.com/p/reviewboard/issues/detail?id=3585 I've change the reviewboard database and all its tables encoding into utf-8 manually. but I still get the same error: [Mon Sep 29 03:40:11 2014] [error] ERROR:root:Exception thrown for user dvadva1000 at http://192.168.10.200:8020/api/review-requests/22/reviews/14/diff-comments/ [Mon Sep 29 03:40:11 2014] [error] [Mon Sep 29 03:40:11 2014] [error] (1366, Incorrect string value: 'xE5x9CxA8xE5xA4xA7...' for column 'text' at row 1) [Mon Sep 29 03:40:11 2014] [error] Traceback (most recent call last): [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/Django-1.6.7-py2.7.egg/django/core/handlers/base.py, line 112, in get_response [Mon Sep 29 03:40:11 2014] [error] response = wrapped_callback(request, *callback_args, **callback_kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/Django-1.6.7-py2.7.egg/django/views/decorators/cache.py, line 52, in _wrapped_view_func [Mon Sep 29 03:40:11 2014] [error] response = view_func(request, *args, **kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/Django-1.6.7-py2.7.egg/django/views/decorators/vary.py, line 19, in inner_func [Mon Sep 29 03:40:11 2014] [error] response = func(*args, **kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/resources.py, line 494, in __call__ [Mon Sep 29 03:40:11 2014] [error] request, method, view, api_format=api_format, *args, **kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/resources.py, line 565, in call_method_view [Mon Sep 29 03:40:11 2014] [error] return view(request, *args, **kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/resources.py, line 747, in post [Mon Sep 29 03:40:11 2014] [error] return self.create(*args, **kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/decorators.py, line 117, in _call [Mon Sep 29 03:40:11 2014] [error] return view_func(*args, **kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/ReviewBoard-2.0.6-py2.7.egg/reviewboard/webapi/decorators.py, line 110, in _check [Mon Sep 29 03:40:11 2014] [error] return view_func(*args, **kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/decorators.py, line 117, in _call [Mon Sep 29 03:40:11 2014] [error] return view_func(*args, **kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/decorators.py, line 138, in _checklogin [Mon Sep 29 03:40:11 2014] [error] return view_func(*args, **kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/decorators.py, line 117, in _call [Mon Sep 29 03:40:11 2014] [error] return view_func(*args, **kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/decorators.py, line 117, in _call [Mon Sep 29 03:40:11 2014] [error] return view_func(*args, **kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/Djblets-0.8.9-py2.7.egg/djblets/webapi/decorators.py, line 287, in _validate [Mon Sep 29 03:40:11 2014] [error] return view_func(*args, **new_kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/ReviewBoard-2.0.6-py2.7.egg/reviewboard/webapi/resources/review_diff_comment.py, line 127, in create [Mon Sep 29 03:40:11 2014] [error] **kwargs) [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/ReviewBoard-2.0.6-py2.7.egg/reviewboard/webapi/resources/base_comment.py, line 157, in create_comment [Mon Sep 29 03:40:11 2014] [error] new_comment.save() [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/ReviewBoard-2.0.6-py2.7.egg/reviewboard/reviews/models/base_comment.py, line 133, in save [Mon Sep 29 03:40:11 2014] [error] super(BaseComment, self).save() [Mon Sep 29 03:40:11 2014] [error] File /usr/local/lib/python2.7/site-packages/Django-1.6.7-py2.7.egg/django/db/models/base.py, line 545, in save [Mon Sep 29 03:40:11 2014] [error] force_update=force_update, update_fields=update_fields) [Mon Sep 29 03:40:11 2014] [error] File