"Attach a File" upload in wiki option always ends with "404 Project Not Found"
Summary
Since our IT updated our Gitlab CE version we cannot extend our wiki with images. The "Attach a file" button on the bottom only results in "404 Project Not Found".
According to our IT responsible they updated 3 times in total: Upgrade: gitlab-ce:amd64 (11.7.0-ce.0, 11.9.4-ce.0) Upgrade: gitlab-ce:amd64 (11.9.4-ce.0, 11.11.7-ce.0) Upgrade: gitlab-ce:amd64 (11.11.7-ce.0, 12.1.2-ce.0)
Steps to reproduce
For me the same behavior was independent of webbrowser, browser cache and project settings. I have tried on new and old projects where it previously worked. We use an intranet only server and so far no https.
- create a new empty project
- create a wiki,
- create a page,
- click the attach a file button,
- select any small file for testing.
- observe bug
Example Project
This bug was not reproducable on on Gitlab.com.
What is the current bug behavior?
Upload fails showing "404 Project Not Found".
What is the expected correct behavior?
File being uploaded and link added to Content editor.
Relevant logs and/or screenshots
Output of checks
This bug was notreproducable on on Gitlab.com.
Results of GitLab environment info
Expand for output related to GitLab environment info
---sudo gitlab-rake gitlab:env:info
System information System: Debian 8.11 Current User: git Using RVM: no Ruby Version: 2.6.3p62 Gem Version: 2.7.9 Bundler Version:1.17.3 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.21.0 Sidekiq Version:5.2.7 Go Version: unknown
GitLab information Version: 12.1.2 Revision: 655b38f85a0 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 10.7 URL: http://gitlab.example.com HTTP Clone URL: http://gitlab.example.com/some-group/some-project.git SSH Clone URL: git@gitlab.example.com:some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:GitLab Shell
Version: 9.3.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
~bug ~wiki
Conclusion
Since this bug/behavior was not reproducible on gitlab.com and our IT will change our backend infrastructure again soon, we decided to stop debugging this.
For the moment, we found it feasible to work around by commit/pushing files into the wiki repository and linking them instead of using the Attach a file option.
Because files uploaded with "Attach a file" are not added to the wiki repository itself, we decided to never use this button again anyway. In a manual annoying effort, all our pictures were saved and added in custem structure pushed to the wiki instead.
This issue can be closed, I want to thank anyone who has taken the time to read it and tried to help.
best Nicolas