the search keywords changed when switching the branch of a project in code result tab
Summary
In the search page, the keyword changed when I switch the Branch Ref in the code tab. the whitespaces in keywords changed to '+' condition: Advanced search is NOT enabled
Steps to reproduce
when I search for something which contains whitespaces in the search pages, then there are some results shown below:
And then I changed the branch, the keyword has been changed and then no result showed:
What is the current bug behavior?
keywords for searching changed by system.
What is the expected correct behavior?
persist the original search context that user inputed
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: CentOS 7.6.1810 Current User: gitlab Using RVM: yes RVM Version: 1.29.7 Ruby Version: 2.6.3p62 Gem Version: 3.0.3 Bundler Version:1.17.3 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.23.0. Sidekiq Version:5.2.7 Go Version: go1.12.7 linux/amd64GitLab information Version: 12.2.0-pre Revision: e4204e7bbaf Directory: /opt/gitlab/gitlab/ce/gdk-ce/gitlab DB Adapter: PostgreSQL DB Version: 9.6.12 URL: http://localhost:3000 HTTP Clone URL: http://localhost:3000/some-group/some-project.git SSH Clone URL: ssh://gitlab@localhost:2222/some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 9.3.0 Repository storage paths:
- default: /opt/gitlab/gitlab/ce/gdk-ce/repositories GitLab Shell path: /opt/gitlab/gitlab/ce/gdk-ce/gitlab-shell Git: /usr/local/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 9.3.0 ? ... OK (9.3.0) Running /opt/gitlab/gitlab/ce/gdk-ce/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /opt/gitlab/gitlab/ce/gdk-ce/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... no Try fixing it: sudo chmod 700 /opt/gitlab/gitlab/ce/gdk-ce/gitlab/public/uploads For more information see: doc/install/installation.md in section "GitLab" Please fix the error above and rerun the checks. Uploads directory tmp has correct permissions? ... skipped (no tmp uploads folder yet) Init script exists? ... no Try fixing it: Install the init script For more information see: doc/install/installation.md in section "Install Init Script" Please fix the error above and rerun the checks. Init script up-to-date? ... can't check because of previous errors Projects have namespace: ... 3/2 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.3) Git version >= 2.21.0 ? ... yes (2.23.0) Git user has default SSH configuration? ... no Try fixing it: mkdir ~/gitlab-check-backup-1565947245 sudo mv /opt/gitlab/gitlab/.ssh/id_rsa ~/gitlab-check-backup-1565947245 sudo mv /opt/gitlab/gitlab/.ssh/id_rsa.pub ~/gitlab-check-backup-1565947245 For more information see: doc/ssh/README.md in section "SSH on the GitLab server" Please fix the error above and rerun the checks. Active users: ... 1
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished