Defect #21000

An unbalanced closing pre or code tag results in undefined method `casecmp' for nil:NilClass

Added by Ricardo S over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:
Priority:HighDue date:
Assignee:Jean-Philippe Lang% Done:


Category:Text formatting
Target version:-
Resolution:Fixed Affected version:


After r14484, starting a wiki text with </code> or </pre> results in the error:

An ActionView::Template::Error occurred in wiki#show: undefined method `casecmp' for nil:NilClass
app/helpers/application_helper.rb:612:in `parse_non_pre_blocks'
app/helpers/application_helper.rb:582:in `textilizable'
app/views/wiki/_content.html.erb:2:in `_app_views_wiki__content_html_erb___1050873637_98682770'
app/views/wiki/show.html.erb:44:in `_app_views_wiki_show_html_erb___219731868__628886978'
app/controllers/wiki_controller.rb:97:in `show'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

My redmine environment:

  Redmine version                3.1.0.devel
  Ruby version                   2.2.3-p173 (2015-08-18) [i386-linux-gnu]
  Rails version                  4.2.3
  Environment                    production
  Database adapter               SQLServer

Associated revisions

Revision 14676
Added by Jean-Philippe Lang over 6 years ago

Fixed unsafe call to #casecmp (#20369, #21000).


#1 Updated by Jean-Philippe Lang over 6 years ago

  • Category changed from Wiki to Text formatting
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Fixed in r14676, thanks for pointing this out.

#2 Updated by Toshi MARUYAMA over 6 years ago

  • Affected version deleted (3.1.0)

Also available in: Atom PDF