Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3862 by msu...@aurea.com: Loading Patch hangs due to french local
https://code.google.com/p/reviewboard/issues/detail?id=3862

*** READ THIS BEFORE POSTING!
***
*** You must complete this form in its entirety, or your bug report will be
*** rejected.
***
*** If you have a security issue to report, please send it confidentially
to
*** secur...@reviewboard.org. Posting security-related issues to this bug
*** tracker causes us to have to do an emergency release.
***
*** For customer support, please post to reviewbo...@googlegroups.com
***
*** If you have a patch, please submit it to
http://reviews.reviewboard.org/
***
*** This bug tracker is public. Please check that any logs or other
information
*** that you include has been stripped of confidential information.


What version are you running?
2.0.15

What's the URL of the page containing the problem?
http://review.XXXX/r/new/

What steps will reproduce the problem?
1. Select patch file to upload
2. Enter the directory for the diff
3. Stuck on loading screen.

What is the expected output? What do you see instead?
Expected to get to the new review request page so that I can fill in the rest of the information.

What operating system are you using? What browser?
Amazon linux.

Please provide any additional information below.

Here is what the patch file looks like:
-----------
Index: myPath/uIHM.pas
===================================================================
--- myPath/uIHM.pas     (révision 300)
+++ myPath/uIHM.pas     (copie de travail)
@@ -31501,7 +31501,7 @@
      Screen.Cursor := crHourGlass;
      lSlParams := TStringList.Create;

- StartProgress(gContexte.MSG_Traduire('PATIENCE'), 0, 0, 0, 300, False); + StartProgress(gContexte.MSG_Traduire('PATIENCE1'), 0, 0, 0, 300, False);

      //Supprimer la liste précédente des prétickets
      {$IFDEF ADO}

-----------


The patch file works after I rename one field: révision --> revision

Changed:
--- myPath/uIHM.pas     (révision 300)
To:
--- myPath/uIHM.pas     (revision 300)



The error from the logs:

2015-05-05 15:42:33,038 - ERROR - - Exception thrown for user XXXX at http://review.XXX/api/validation/diffs/

'utf8' codec can't decode byte 0xe9 in position 2: invalid continuation byte
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/views/decorators/cache.py", line 52, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/Django-1.6.10-py2.6.egg/django/views/decorators/vary.py", line 19, in inner_func
    response = func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/Djblets-0.8.16-py2.6.egg/djblets/webapi/resources.py", line 498, in __call__
    request, method, view, api_format=api_format, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/Djblets-0.8.16-py2.6.egg/djblets/webapi/resources.py", line 569, in call_method_view
    return view(request, *args, **kwargs)
File "/usr/lib/python2.6/site-packages/Djblets-0.8.16-py2.6.egg/djblets/webapi/resources.py", line 751, in post
    return self.create(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/Djblets-0.8.16-py2.6.egg/djblets/webapi/decorators.py", line 117, in _call
    return view_func(*args, **kwargs)
File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/webapi/decorators.py", line 110, in _check
    return view_func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/Djblets-0.8.16-py2.6.egg/djblets/webapi/decorators.py", line 117, in _call
    return view_func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/Djblets-0.8.16-py2.6.egg/djblets/webapi/decorators.py", line 138, in _checklogin
    return view_func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/Djblets-0.8.16-py2.6.egg/djblets/webapi/decorators.py", line 117, in _call
    return view_func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/Djblets-0.8.16-py2.6.egg/djblets/webapi/decorators.py", line 117, in _call
    return view_func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/Djblets-0.8.16-py2.6.egg/djblets/webapi/decorators.py", line 287, in _validate
    return view_func(*args, **new_kwargs)
File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/webapi/resources/validate_diff.py", line 144, in create
    save=False)
File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/diffviewer/managers.py", line 156, in create_from_upload
    save=save)
File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/diffviewer/managers.py", line 180, in create_from_data
    check_existence=(not parent_diff_file_contents)))
File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/diffviewer/managers.py", line 277, in _process_files
    for f in parser.parse():
File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/diffviewer/parser.py", line 57, in parse
    next_linenum, new_file = self.parse_change_header(i)
File "/usr/local/lib/python2.6/site-packages/ReviewBoard-2.0.15-py2.6.egg/reviewboard/diffviewer/parser.py", line 132, in parse_change_header
    file.origInfo = file.origInfo.decode('utf-8')
  File "/usr/lib64/python2.6/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 2: invalid continuation byte

--
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.

Reply via email to