Broken Links in 5.2 Dashboard Push Events After Changing Username
Created by: terrywang
Summary: links in dashboard are broken because the links still refer to the old username (terry) instead of the new one (terrywang).
Steps to reproduce: Update GitLab from 4.0 to 5.1, change the username from terry
to terrywang
(login using username was made possible). Then upgrade to 5.2. On dashboard click on the project / username
in the push events.
Expected behaviour: The links in push events in Dashboard, for instance => terrywang pushed to branch master at terrywang / vagrant
, it is showing the correct username
(after changing username), it should redirect users to http://HOSTNAME/terrywang/vagrant
instead of http://HOSTNAME/terry/vagrant
Observed behaviour: The links in push events in Dashboard, for instance => terrywang pushed to branch master at terrywang / vagrant
, it is showing the correct username
(after changing username) but it links to http://HOSTNAME/terry/vagrant
. For some reason the links are not updated after the name change.
NOTE: the links in Projects on the right hand side of the Dashboard works fine.
Not sure if this is a bug or due to missing steps when upgrading. I think it's something worth looking into;-)
Output of checks
I masked the domain name. It still exist in 5.2.1.
git@devops:~/gitlab$ bundle exec rake gitlab:env:info RAILS_ENV=production
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.0
System information
System: Ubuntu 13.04
Current User: git
Using RVM: no
Ruby Version: 1.9.3p327
Gem Version: 1.8.23
Bundler Version:1.3.5
Rake Version: 10.0.4
GitLab information
Version: 5.2.0
Revision: 6654db2
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://devops.company.com
HTTP Clone URL: http://devops.company.com/some-project.git
SSH Clone URL: [email protected]:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.4.0
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
For 5.2.1
git@devops:~/gitlab$ bundle exec rake gitlab:env:info RAILS_ENV=production
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.0
System information
System: Ubuntu 13.04
Current User: git
Using RVM: no
Ruby Version: 1.9.3p327
Gem Version: 1.8.23
Bundler Version:1.3.5
Rake Version: 10.0.4
GitLab information
Version: 5.2.1
Revision: 26ed59f
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://devops.company.com
HTTP Clone URL: http://devops.company.com/some-project.git
SSH Clone URL: [email protected]:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.4.0
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
git@devops:~/gitlab$