unreasonable things happened after company-wide email change
omnibus-gitlab 7.5.3 with LDAP as the only authenticate method.
my company changed its email address from 'name.surname@abc.com' to 'name.surname@xyz.com', what happened:
- every old user required to confirm their email address to 'xxx@xyz.com', this step seems OK. But their email remains to the old one, '@abc.com', didn't update to '@xyz.com'
username changes automatically from uid to the prefix of email address, e.g. from 'neox' to 'neo.smith', it causes '@neox' failed in comment/issue pages.since some users have created several projects under their username, I don't know what would happen to those projects- I tried to update it to old uniq uid, but failed both on admin web page or by console (this can be ignored):
gitlab-rails :005 > user.username = 'neox'
=> "neox"
gitlab-rails :006 > user.save
Exception: namespace directory cannot be moved
from /opt/gitlab/embedded/service/gitlab-rails/app/models/namespace.rb:82:in `move_dir'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:424:in `block in make_lambda'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:221:in `call'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:221:in `block in halting_and_conditional'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:86:in `call'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:86:in `run_callbacks'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/callbacks.rb:310:in `update_record'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/timestamp.rb:70:in `update_record'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/persistence.rb:482:in `create_or_update'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/callbacks.rb:302:in `block in create_or_update'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:113:in `call'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:113:in `call'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:86:in `call'
... 54 levels...
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:530:in `block in transaction'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `block in transaction'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:219:in `within_new_transaction'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/activerecord-4.1.1/lib/active_record/transactions.rb:208:in `transaction'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:529:in `transaction'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:501:in `around_save'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:483:in `save'
from (irb):6
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.1/lib/rails/commands/console.rb:90:in `start'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.1/lib/rails/commands/console.rb:9:in `start'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:69:in `console'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/railties-4.1.1/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:8
It said namespace can't move, but there is no project under 'neox/'