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

Closed
Open
Created Feb 24, 2014 by Administrator@rootOwner

Updating own profile, via Admin Area, when you have admin rights fails.

Created by: zipkid

When you have admin right and you go to 'Admin Area', select your own user and edit. admin_area___gitlab

When saving (any or no changes) you get a 500 error as apparently the 'admin' valuse is passed as null (as it is disabled)

in production.log

Processing by Admin::UsersController#update as HTML
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"<token>", "user"=>{"name"=>"GOETHALS Stefan", "username"=>"zipkid", "email"=>"<email>", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "projects_limit"=>"10", "can_create_group"=>"1", "skype"=>"zipkid", "linkedin"=>"zipkid", "twitter"=>"zipkid", "website_url"=>"zipkid.eu"}, "id"=>"zipkid"}
Mysql2::Error: Column 'admin' cannot be null: UPDATE `users` SET `admin` = NULL, `updated_at` = '2014-02-24 14:07:41' WHERE `users`.`id` = 2
Completed 500 Internal Server Error in 19ms

ActiveRecord::StatementInvalid (Mysql2::Error: Column 'admin' cannot be null: UPDATE `users` SET `admin` = NULL, `updated_at` = '2014-02-24 14:07:41' WHERE `users`.`id` = 2):
  app/controllers/admin/users_controller.rb:74:in `block in update'
  app/controllers/admin/users_controller.rb:73:in `update'
  app/controllers/application_controller.rb:57:in `set_current_user_for_thread'
Assignee
Assign to
Time tracking