Project

General

Profile

Actions

Bug #5528

open

Empty Unicode file causes the PR to return HTTP 500

Added by Arun Chandrasekaran almost 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
Start date:
30.01.2019
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

Description

2019-01-30 15:32:44.687 [28848] ERROR [rhodecode.lib.codeblocks] ERROR: | req_id:bbce25e3-9d84-4f4d-83d3-6356b3b828ff
2019-01-30 15:32:44.688 [28848] ERROR [rhodecode.config.middleware] error occurred handling this request for path: /code/ARCHIVES/core/ARCHIVES/pull-request/286 | req_id:bbce25e3-9d84-4f4d-83d3-6356b3b828ff
Traceback (most recent call last):
File "/opt/rhodecode/store/mcjhzq84p171b42cwjlszbz8611ir1b8-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/tweens.py", line 39, in excview_tween
response = handler(request)
File "/opt/rhodecode/store/mcjhzq84p171b42cwjlszbz8611ir1b8-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/router.py", line 156, in handle_request
view_name
File "/opt/rhodecode/store/mcjhzq84p171b42cwjlszbz8611ir1b8-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/view.py", line 642, in call_view
response = view_callable(context, request)
File "/opt/rhodecode/store/mcjhzq84p171b42cwjlszbz8611ir1b8-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/viewderivers.py", line 390, in attr_view
return view(context, request)
File "/opt/rhodecode/store/mcjhzq84p171b42cwjlszbz8611ir1b8-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/viewderivers.py", line 368, in predicate_wrapper
return view(context, request)
File "/opt/rhodecode/store/mcjhzq84p171b42cwjlszbz8611ir1b8-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/viewderivers.py", line 439, in rendered_view
result = view(context, request)
File "/opt/rhodecode/store/mcjhzq84p171b42cwjlszbz8611ir1b8-python2.7-pyramid-1.9.2/lib/python2.7/site-packages/pyramid/viewderivers.py", line 138, in _class_view
response = getattr(inst, attr)()
File "/opt/rhodecode/store/vn3vc3y4l7a19yriazpwpmnas8iijqcw-python2.7-rhodecode-enterprise-ce-4.15.1/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 2352, in local_wrapper
return wrapper(func, *args, **kwds)
File "/opt/rhodecode/store/vn3vc3y4l7a19yriazpwpmnas8iijqcw-python2.7-rhodecode-enterprise-ce-4.15.1/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 1665, in __wrapper
return func(*fargs, **fkwargs)
File "/opt/rhodecode/store/vn3vc3y4l7a19yriazpwpmnas8iijqcw-python2.7-rhodecode-enterprise-ce-4.15.1/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 2352, in local_wrapper
return wrapper(func, *args, **kwds)
File "/opt/rhodecode/store/vn3vc3y4l7a19yriazpwpmnas8iijqcw-python2.7-rhodecode-enterprise-ce-4.15.1/lib/python2.7/site-packages/rhodecode/lib/auth.py", line 1739, in __wrapper
return func(*fargs, **fkwargs)
File "/opt/rhodecode/store/vn3vc3y4l7a19yriazpwpmnas8iijqcw-python2.7-rhodecode-enterprise-ce-4.15.1/lib/python2.7/site-packages/rhodecode/apps/repository/views/repo_pull_requests.py", line 572, in pull_request_show
hide_whitespace_changes, diff_context)
File "/opt/rhodecode/store/vn3vc3y4l7a19yriazpwpmnas8iijqcw-python2.7-rhodecode-enterprise-ce-4.15.1/lib/python2.7/site-packages/rhodecode/apps/repository/views/repo_pull_requests.py", line 241, in _get_diffset
diffset, _parsed, target_commit.raw_id, source_commit.raw_id)
File "/opt/rhodecode/store/vn3vc3y4l7a19yriazpwpmnas8iijqcw-python2.7-rhodecode-enterprise-ce-4.15.1/lib/python2.7/site-packages/rhodecode/apps/_base/
init_.py", line 307, in render_patchset_filtered
filtered_patchset, source_ref=source_ref, target_ref=target_ref)
File "/opt/rhodecode/store/vn3vc3y4l7a19yriazpwpmnas8iijqcw-python2.7-rhodecode-enterprise-ce-4.15.1/lib/python2.7/site-packages/rhodecode/lib/codeblocks.py", line 414, in render_patchset
filediff = self.render_patch(patch)
File "/opt/rhodecode/store/vn3vc3y4l7a19yriazpwpmnas8iijqcw-python2.7-rhodecode-enterprise-ce-4.15.1/lib/python2.7/site-packages/rhodecode/lib/codeblocks.py", line 531, in render_patch
hunkbit = self.parse_hunk(hunk, source_file, target_file)
File "/opt/rhodecode/store/vn3vc3y4l7a19yriazpwpmnas8iijqcw-python2.7-rhodecode-enterprise-ce-4.15.1/lib/python2.7/site-packages/rhodecode/lib/codeblocks.py", line 593, in parse_hunk
self.parse_lines(before, after, source_file, target_file, no_hl=no_hl))
File "/opt/rhodecode/store/vn3vc3y4l7a19yriazpwpmnas8iijqcw-python2.7-rhodecode-enterprise-ce-4.15.1/lib/python2.7/site-packages/rhodecode/lib/codeblocks.py", line 660, in parse_lines
input_file=target_file, no_hl=no_hl)
File "/opt/rhodecode/store/vn3vc3y4l7a19yriazpwpmnas8iijqcw-python2.7-rhodecode-enterprise-ce-4.15.1/lib/python2.7/site-packages/rhodecode/lib/codeblocks.py", line 710, in get_line_tokens
input_file, line_number, lexer)
File "/opt/rhodecode/store/vn3vc3y4l7a19yriazpwpmnas8iijqcw-python2.7-rhodecode-enterprise-ce-4.15.1/lib/python2.7/site-packages/rhodecode/lib/codeblocks.py", line 724, in get_tokenized_filenode_line
return self.highlighted_filenodes[filenode][line_number - 1]
IndexError: list index out of range
2019-01-30 15:32:44.689 [28848] DEBUG [rhodecode.lib.exc_tracking] Stored generated exception 140308965303952 as: /tmp/rc_exception_store_v1/140308965303952_rhodecode_1548891164.689603 | req_id:bbce25e3-9d84-4f4d-83d3-6356b3b828ff
2019-01-30 15:32:44.699 [28848] INFO [rhodecode.lib.middleware.request_wrapper] IP: 10.0.0.59 Request to /ARCHIVES/core/ARCHIVES/pull-request/286 time: 1.206s [Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko
2019-01-30 15:32:44.701 [28848] DEBUG [rhodecode.config.middleware] sa pool status: NullPool | req_id:00000000-0000-0000-0000-000000000000
2019-01-30 15:32:44.701 [28848] DEBUG [rhodecode.config.middleware] Request processing finalized | req_id:00000000-0000-0000-0000-000000000000
2019-01-30 15:32:45.255 [28848] DEBUG [rhodecode.lib.middleware.vcs] request start: checking if request is of VCS type in order: ['hg', 'git', 'svn'] | req_id:bdf2638f-6494-4dbc-afee-d74e90a45dc1
2019-01-30 15:32:45.256 [28848] DEBUG [rhodecode.lib.middleware.vcs] request path: /_static/rhodecode/images/favicon.ico detected as HG PROTOCOL False | req_id:bdf2638f-6494-4dbc-afee-d74e90a45dc1
2019-01-30 15:32:45.257 [28848] DEBUG [rhodecode.lib.middleware.vcs] request path: /_static/rhodecode/images/favicon.ico detected as GIT PROTOCOL False | req_id:bdf2638f-6494-4dbc-afee-d74e90a45dc1
2019-01-30 15:32:45.257 [28848] DEBUG [rhodecode.lib.middleware.vcs] request path: /_static/rhodecode/images/favicon.ico detected as SVN PROTOCOL False | req_id:bdf2638f-6494-4dbc-afee-d74e90a45dc1
2019-01-30 15:32:45.257 [28848] DEBUG [rhodecode.tweens] Processing request with <function sanity_check at 0x7f9c405a19b0> handler | req_id:bdf2638f-6494-4dbc-afee-d74e90a45dc1
2019-01-30 15:32:45.259 [28848] DEBUG [beaker.container] data file /home/arun/.rccontrol/community-1/data/sessions/container_file/1/1f/1f424bc62df64dd0ada90bfbd41f0cb3.cache | req_id:bdf2638f-6494-4dbc-afee-d74e90a45dc1
2019-01-30 15:32:45.260 [28848] DEBUG [rhodecode.lib.auth] AuthUser: starting data propagation for new potential user | req_id:bdf2638f-6494-4dbc-afee-d74e90a45dc1
2019-01-30 15:32:45.266 [28848] DEBUG [rhodecode.lib.auth] Trying Auth User lookup by USER ID: 2 | req_id:bdf2638f-6494-4dbc-afee-d74e90a45dc1
2019-01-30 15:32:45.266 [28848] DEBUG [rhodecode.model.user] AuthUser: fill data execution based on: user_id:2 api_key:None username:None | req_id:bdf2638f-6494-4dbc-afee-d74e90a45dc1
2019-01-30 15:32:45.269 [28848] DEBUG [rhodecode.model.user] AuthUser: filling found user: data | req_id:bdf2638f-6494-4dbc-afee-d74e90a45dc1


Files

locale_ar.tar (2 KB) locale_ar.tar Attachment contains the file that causes this issue. Arun Chandrasekaran, 31.01.2019 01:40
Actions #2

Updated by Redmine Integration over 5 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF