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

Closed
Open
Created Jul 14, 2012 by Administrator@rootOwner

Error 500 after having deleted a user with issues assigned

Created by: skrew

Hi,

On dashboard or project home page, i got error 500:

 Started GET "/" for xx.xx.xx.xx at 2012-07-14 20:41:54 +0200
 Processing by DashboardController#index as HTML
   Rendered events/_event_issue.html.haml (4.2ms)
   Rendered events/_event.html.haml (4.6ms)
   Rendered dashboard/index.html.haml within layouts/application (11.5ms)
 Completed 500 Internal Server Error in 19ms

 ActionController::RoutingError (No route matches {:action=>"show", :controller=>"issues", :project_id=>#<Project id: 3, name: "xxxx", path: "xxxx", description: nil, created_at: "2012-07-01 13:29:41", updated_at: "2012-07-01 13:29:41", private_flag: true, code: "xxxx", owner_id: 1, default_branch: "master", issues_enabled: true, wall_enabled: true, merge_requests_enabled: true, wiki_enabled: true>, :id=>nil}):
   app/views/events/_event_issue.html.haml:5:in `_app_views_events__event_issue_html_haml___529116932_93543190'
   app/views/events/_event.html.haml:4:in `_app_views_events__event_html_haml__675314158_94533910'
   app/views/dashboard/index.html.haml:13:in `_app_views_dashboard_index_html_haml___804243436_99355210'
   app/controllers/dashboard_controller.rb:12:in `index'

(NOT GOOD, SEE SOLUTION IN BOTTOM) Quick (and ugly) fix for getting gitlab back: remove these 2 lines in app/views/events/_event_issue.html.haml:

 = link_to project_issue_path(event.project, event.issue) do
   %strong= truncate event.issue_title

How to reproduce:

-> Create one user XX -> Create an issue in a project for the new user XX -> Delete user XX

EDIT: Confirmed, table events contain rows with target_id pointing to no-more existing entries in issues table. issues was deleted with user, but not events->issues

Assignee
Assign to
Time tracking