4069: There are two problems but they seem related. The first is when trying to add a new repository, the second is when attempting to post a review. This runs in docker containers - on the first execution (ie. docker run'ing all images) everything works but on subsequent start's I receive these errors.

berdon
david
david

What version are you running?

ReviewBoard 2.5

What's the URL of the page containing the problem?

There are two problems but they seem related. The first is when trying to add a new repository, the second is when attempting to post a review. I do want to point out that this is running in a docker container. On the first execution (ie. docker run'ing all images) everything works but on subsequent start's I receive these errors.

  1. Trying to add new repository (http://cr/admin/db/scmtools/repository/add/)
  2. rbt post

What steps will reproduce the problem?

Trying to add a new repository

  1. Enter in information
  2. On save, receive error "'ascii' codec can't decode byte 0xc0 in position 1: ordinal not in range(128)"

Trying to post a diff

  1. rbt post --debug
  2. Observe error ">>> Error data: {u'stat': u'fail', u'reason': u"'ascii' codec can't decode byte 0xc0 in position 1: ordinal not in range(128)", u'err': {u'msg': u'The specified diff file could not be parsed.', u'code': 224}}"

What is the expected output? What do you see instead?

Added repository / rbt post succeeding

What operating system are you using? What browser?

Linux reviewboard.myriadmobile.com 4.4.0-x86_64-linode63 #2 SMP Tue Jan 19 12:43:53 EST 2016 x86_64 GNU/Linux

Please provide any additional information below.

Server response for "rbt post"

[pid: 20|app: 0|req: 6/6] 68.69.234.170 () {36 vars in 501 bytes} [Tue Jan 26 14:20:39 2016] GET /api/validation/diffs/ => generated 168 bytes in 4 msecs (HTTP/1.1 200) 10 headers in 380 bytes (1 switches on core 0)
[pid: 20|app: 0|req: 7/7] 68.69.234.170 () {36 vars in 535 bytes} [Tue Jan 26 14:20:39 2016] POST /api/validation/diffs/ => generated 70 bytes in 603 msecs (HTTP/1.1 401) 11 headers in 388 bytes (240 switches on core 0)
ERROR:root:Unexpected error when validating diff.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5-py2.7.egg/reviewboard/webapi/resources/validate_diff.py", line 156, in create
save=False)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5-py2.7.egg/reviewboard/diffviewer/managers.py", line 417, in create_from_upload
save=save)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5-py2.7.egg/reviewboard/diffviewer/managers.py", line 441, in create_from_data
check_existence=(not parent_diff_file_contents)))
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5-py2.7.egg/reviewboard/diffviewer/managers.py", line 584, in _process_files
request=request))):
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5-py2.7.egg/reviewboard/scmtools/models.py", line 378, in get_file_exists
base_commit_id, request)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5-py2.7.egg/reviewboard/scmtools/models.py", line 591, in _get_file_exists_uncached
base_commit_id=base_commit_id)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5-py2.7.egg/reviewboard/hostingsvcs/bitbucket.py", line 218, in get_file_exists
self._api_get_src(repository, path, revision, base_commit_id)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5-py2.7.egg/reviewboard/hostingsvcs/bitbucket.py", line 400, in _api_get_src
return self._api_get(url, raw_content=True)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5-py2.7.egg/reviewboard/hostingsvcs/bitbucket.py", line 443, in _api_get
password=decrypt_password(self.account.data['password']))
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5-py2.7.egg/reviewboard/hostingsvcs/service.py", line 55, in http_get
return self.http_request(url, method='GET', kwargs)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5-py2.7.egg/reviewboard/hostingsvcs/service.py", line 78, in http_request
r = self._build_request(url, body, headers, method=method,
kwargs)
File "/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.5-py2.7.egg/reviewboard/hostingsvcs/service.py", line 118, in _build_request
auth_key = username + ':' + password
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc0 in position 1: ordinal not in range(128)
[pid: 20|app: 0|req: 8/8] 68.69.234.170 () {38 vars in 587 bytes} [Tue Jan 26 14:20:51 2016] POST /api/validation/diffs/ => generated 184 bytes in 808 msecs (HTTP/1.1 400) 11 headers in 481 bytes (93 switches on core 0)
[pid: 20|app: 0|req: 9/9] 68.69.234.170 () {38 vars in 733 bytes} [Tue Jan 26 14:21:43 2016] GET / => generated 0 bytes in 11 msecs (HTTP/1.1 302) 7 headers in 233 bytes (1 switches on core 0)
[pid: 20|app: 0|req: 10/10] 68.69.234.170 () {38 vars in 737 bytes} [Tue Jan 26 14:21:43 2016] GET /r/ => generated 3068 bytes in 114 msecs (HTTP/1.1 200) 7 headers in 241 bytes (1 switches on core 0)
[pid: 20|app: 0|req: 11/11] 68.69.234.170 () {38 vars in 678 bytes} [Tue Jan 26 14:21:43 2016] GET /jsi18n/ => generated 773 bytes in 9 msecs (HTTP/1.1 200) 7 headers in 231 bytes (1 switches on core 0)
^[[A^[[A^[[A

david
#1 david
  • -New
    +PendingReview
  • +david
david
#2 david

Fixed in release-2.0.x (6cd4753). This will ship in 2.0.26 and 2.5.8. Thanks!

  • -PendingReview
    +Fixed