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

Closed
Open
Created May 27, 2013 by Administrator@rootOwner

500 Internal Server Error caused by redmine issues_tracker settings

Created by: itxx00

1.Summary:

when set issues_tracker in gitlab.yml config file just use issues_url and new_issue_url , will cause 500 internal error using gitlab issues.

2.teps to reproduce: 1st: in config/gitlab.yml:

issues_tracker:
     redmine:
       ## project_url: "http://redmine.test.net/projects/:issues_tracker_id"
       issues_url: "http://redmine.test.net/issues/:id"
       new_issue_url: "http://redmine.test.net/projects/:issues_tracker_id/issues/new"

Note that I just do not want to set the project_url, 2nd: restart gitlab and browse the issues page.

3.Expected behavior: I expected that gitlab will ignore "project_url".

4.Observed behavior: It seems that if I want to use redmine as issues tracker I must specify the "project_url" .

5.production logs: log file content:

Started GET "/root/test" for  at 2013-05-27 11:37:50 +0800
Processing by ProjectsController#show as HTML
  Parameters: {"id"=>"root/test"}
  Rendered shared/_clone_panel.html.haml (0.6ms)
  Rendered projects/_clone_panel.html.haml (9.0ms)
  Rendered events/_event_last_push.html.haml (0.1ms)
Read fragment views/events/32-20130527024237 (0.4ms)
Read fragment views/events/31-20130527023858 (0.3ms)
Read fragment views/events/30-20130527023838 (0.3ms)
  Rendered events/_event.html.haml (2.6ms)
  Rendered projects/show.html.haml within layouts/project_resource (24.1ms)
  Rendered layouts/_head.html.haml (1.5ms)
  Rendered layouts/_search.html.haml (19.2ms)
  Rendered layouts/_head_panel.html.haml (23.2ms)
  Rendered layouts/_init_auto_complete.html.haml (6.5ms)
  Rendered layouts/_flash.html.haml (0.1ms)
  Rendered shared/_no_ssh.html.haml (1.3ms)
  Rendered layouts/nav/_project.html.haml (6.8ms)
Completed 500 Internal Server Error in 95ms

ActionView::Template::Error (undefined method `gsub' for nil:NilClass):
    14:
    15:   - if @project.issues_enabled
    16:     = nav_link(controller: %w(issues milestones labels)) do
    17:       = link_to url_for_project_issues do
    18:         Issues
    19:         - if @project.used_default_issues_tracker?
    20:           %span.count.issue_counter= @project.issues.opened.count
  app/helpers/issues_helper.rb:42:in `url_for_project_issues'
  app/views/layouts/nav/_project.html.haml:17:in `block in _app_views_layouts_nav__project_html_haml___75426315721462377_45103580'
  app/helpers/tab_helper.rb:69:in `nav_link'
  app/views/layouts/nav/_project.html.haml:16:in `_app_views_layouts_nav__project_html_haml___75426315721462377_45103580'
  app/views/layouts/project_resource.html.haml:12:in `_app_views_layouts_project_resource_html_haml__4514118586459379563_70073368898780'
  app/controllers/projects_controller.rb:64:in `block (2 levels) in show'
  app/controllers/projects_controller.rb:58:in `show'

6.Output of checks: All are green.sorry for no pics or logs.

Assignee
Assign to
Time tracking