Project

General

Profile

Actions

Defect #13644

closed

Diff - Internal Error

Added by Todd Hambley about 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Received error 500 attempting to view diff. I attached the files being compared.

An ActionView::Template::Error occurred in repositories#diff:

  undefined method `ord' for nil:NilClass
  lib/redmine/unified_diff.rb:209:in `offsets'

Partial Trace:

  lib/redmine/unified_diff.rb:209:in `offsets'
  lib/redmine/unified_diff.rb:187:in `write_offsets'
  lib/redmine/unified_diff.rb:184:in `times'
  lib/redmine/unified_diff.rb:184:in `write_offsets'
  lib/redmine/unified_diff.rb:163:in `parse_line'
  lib/redmine/unified_diff.rb:85:in `add_line'
  lib/redmine/unified_diff.rb:33:in `initialize'
  lib/redmine/unified_diff.rb:31:in `each'
  lib/redmine/unified_diff.rb:31:in `initialize'
  app/views/common/_diff.html.erb:1:in `new'
  app/views/common/_diff.html.erb:1:in `_app_views_common__diff_html_erb__374540104_111303620'
  actionpack (3.2.13) lib/action_view/template.rb:145:in `send'
  actionpack (3.2.13) lib/action_view/template.rb:145:in `render'

Environment:

  Redmine version                          2.3.0.stable.11692
  Ruby version                             1.8.7 (i686-linux)
  Rails version                            3.2.13
  Environment                              production
  Database adapter                         MySQL


Files

TL_NGRID(376).ASL (4.54 KB) TL_NGRID(376).ASL Current version of file Todd Hambley, 2013-03-29 19:35
TL_NGRID(374).ASL (4.06 KB) TL_NGRID(374).ASL Previous version of file Todd Hambley, 2013-03-29 19:35
unified_diff.rb.patch (885 Bytes) unified_diff.rb.patch lib/redmine/unified_diff (as of 2.3.0, trunk) Jongwook Choi, 2013-04-05 02:57
b.diff (145 Bytes) b.diff Toshi MARUYAMA, 2013-04-05 07:22
unified_diff.rb_r12041.diff (4.58 KB) unified_diff.rb_r12041.diff Jun NAITOH, 2013-07-27 23:48
Actions

Also available in: Atom PDF