Certain code snippet in the issue detail causing a 500 error when showing issue
Created by: saifis
When the issue has a certain code snippet in its details, every time trying to show the issue a 500 error will occur, the log is as follows,
ActionView::Template::Error (EPIPE):
53: .ui-box-bottom
54: .wiki
55: = preserve do
56: = markdown @issue.description
57:
58:
59: .voting_notes#notes= render "notes/notes_with_form"
lib/redcarpet/render/gitlab_html.rb:25:in block_code' app/helpers/gitlab_markdown_helper.rb:44:in
render'
app/helpers/gitlab_markdown_helper.rb:44:in markdown' app/views/issues/show.html.haml:56:in
block in _app_views_issues_show_html_haml__1760082082704723076_35486460'
app/views/issues/show.html.haml:55:in _app_views_issues_show_html_haml__1760082082704723076_35486460' app/controllers/issues_controller.rb:41:in
show'
and the magic killer code snippet that causes it is,
// settings -- { validate: true, limit: 5, name: bar,
welcome: function (){ console.log( "welcome!" ); },
// helloWorld: function (){ console.log("hello!"); } }
// options -- { validate: true, name: bar,
helloWorld: function (){ console.log("hello!"); } }
// defaults -- { validate: false, limit: 5, name: foo, welcome: function (){
console.log("welcome!"); } }