Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #2985

Closed
Open
Created Feb 14, 2013 by Administrator@rootOwner

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:inrender' app/helpers/gitlab_markdown_helper.rb:44:in markdown' app/views/issues/show.html.haml:56:inblock 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:inshow'

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!"); } }
Assignee
Assign to
Time tracking