Upload file not working in project details
Summary
After upgrade my gitlab to 12.9, upload file link in Project overview - Details not working anymore, but similar function works in Repository - Files.
Steps to reproduce
- Upgrade gitlab to 12.9.1 or 12.9.2, I've tried both.
- As alternative step of 1, I tried Install fresh gitlab 12.9.2 by rpm in CentOS 7, Config /etc/gitlab/gitlab.rb, modify only the external_url, exec gitlab-ctl reconfigure, open browser to newly installed gitlab, change password of root, and create a demo project, create any file to init Repository.
- Navigate to "Project overview - Details", click the "+" dropdown button, and select "Upload file"
- In the "Upload New File" dialog, click the "click to upload" link, not the "Upload file" button, nothing happens while expecting to show an open file dialog.
- Drag & drop a file to the drag&drop rectangle, browser start to download that file, or to show that img if drag&drop an img file, not to upload as expected.
Example Project
There's no this issue in gitlab.com.
What is the current bug behavior?
Can't upload file in "Project overview - Details - Upload file", but it works in "Repository - Files - Upload file", and it works in Web IDE too.
What is the expected correct behavior?
It should show open file dialog after click the link.
Relevant logs and/or screenshots
Output of checks
(If you are reporting a bug on GitLab.com, write: This bug happens on GitLab.com)
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 2.6.5p114 Gem Version: 2.7.10 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 5.0.7 Git Version: 2.24.1 Sidekiq Version:5.2.7 Go Version: unknown GitLab information Version: 12.9.2 Revision: ac5568eb5d8 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.12 URL: http://gitlab1.wonker HTTP Clone URL: http://gitlab1.wonker/some-group/some-project.git SSH Clone URL: git@gitlab1.wonker:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 12.0.0 Repository storage paths: - default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/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 >= 12.0.0 ? ... OK (12.0.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: 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? ... yes Uploads directory tmp has correct permissions? ... skipped (no tmp uploads folder yet) Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 1/1 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.5) Git version >= 2.22.0 ? ... yes (2.24.1) Git user has default SSH configuration? ... yes Active users: ... 1 Is authorized keys file accessible? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Possible fixes
no
