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
  • #4190

Closed
Open
Created Jun 04, 2013 by Administrator@rootOwner

500 error after click `cancel' in editing file

Created by: dengzhp

Only click the below 'cancel' button will 500 error. The above cancel button is ok.

version: 5.2-stable

production log:

Started GET "/foo/someproj/tree/11770880523fc3b853bf7824b4859236932d4ecf/res/query.py" for 127.0.0.1 at 
2013-06-04 14:03:42 +0800
Processing by TreeController#show as HTML
  Parameters: {"project_id"=>"foo/someproj", "id"=>"11770880523fc3b853bf7824b4859236932d4ecf/res/query.py"}
  Rendered shared/_ref_switcher.html.haml (6.0ms)
  Rendered tree/_tree.html.haml (7.5ms)
  Rendered tree/show.html.haml within layouts/project_resource (14.7ms)
Completed 500 Internal Server Error in 110ms

ActionView::Template::Error (undefined method `contents' for #):
    37:         %td
    38:         %td
    39: 
    40:     = render_tree(tree)
    41: 
    42:   - if tree.readme
    43:     = render "tree/readme", readme: tree.readme
  app/models/tree.rb:9:in `method_missing'
  app/helpers/tree_helper.rb:8:in `render_tree'
  app/views/tree/_tree.html.haml:40:in `_app_views_tree__tree_html_haml___102761856_99202380'
  app/views/tree/show.html.haml:4:in `_app_views_tree_show_html_haml__886923296_97289050'
  app/controllers/tree_controller.rb:11:in `show'
Assignee
Assign to
Time tracking