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

Closed
Open
Created Apr 14, 2014 by Administrator@rootOwner

500 Error when searching through repo without any code

Created by: demisx

I have created one project for the purpose of storing some wiki pages, thus this project doesn't have any code files. Using search in the header generates the following 500 error in Gitlab 6.7.5 on Ubuntu 12.04:

Started GET "/search?utf8=%E2%9C%93&search=docs&group_id=&project_id=32&search_code=true&repository_ref=" for 127.0.0.1 at 2014-04-14 15:18:01 -0700
Processing by SearchController#show as HTML
  Parameters: {"utf8"=>"✓", "search"=>"docs", "group_id"=>"", "project_id"=>"32", "search_code"=>"true", "repository_ref"=>""}
Started GET "/search/autocomplete?project_id=32&project_ref=&term=docs" for 127.0.0.1 at 2014-04-14 15:18:01 -0700
Processing by SearchController#autocomplete as JSON
  Parameters: {"project_id"=>"32", "project_ref"=>"", "term"=>"docs"}
Completed 500 Internal Server Error in 409ms

NoMethodError (undefined method `[]' for nil:NilClass):
  app/services/search/project_service.rb:16:in `execute'
  app/controllers/search_controller.rb:11:in `show'
  app/controllers/application_controller.rb:58:in `set_current_user_for_thread'


Completed 200 OK in 782ms (Views: 0.2ms | ActiveRecord: 234.6ms)
Assignee
Assign to
Time tracking