version 10.1.2-ce.0 : Creating a new snippet fails
Summary
Creating a new snippet fails with error: Author can't be blank
Steps to reproduce
-
go to
https://[my.gitlab.server]/snippets/new
-
enter data
-
click
create snippet
-
error is displayed
Example Project
This is not project specific -- it does work on https://gitlab.com
What is the current bug behavior?
No snipped is created.
What is the expected correct behavior?
New snippet is created with logged in user a author.
Relevant logs and/or screenshots
Output of checks
This bug happens on self hosted GitLab version 10.1.2-ce.0
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Debian 8.9 Current User: git Using RVM: no Ruby Version: 2.3.5p376 Gem Version: 2.6.13 Bundler Version:1.13.7 Rake Version: 12.1.0 Redis Version: 3.2.5 Git Version: 2.13.6 Sidekiq Version:5.0.4 Go Version: unknownGitLab information Version: 10.1.2 Revision: af60a6c Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://gitlab.itservices.stmk.wifi.at HTTP Clone URL: https://gitlab.itservices.stmk.wifi.at/some-group/some-project.git SSH Clone URL: git@gitlab.itservices.stmk.wifi.at:some-group/some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 5.9.3 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab Shell ...GitLab Shell version >= 5.9.3 ? ... OK (5.9.3) Repo base directory exists? default... yes Repo storage directories are symlinks? default... no Repo paths owned by git:root, or git:git? default... yes Repo paths access is drwxrws---? default... yes hooks directories in repos are links: ... 2/1 ... ok 2/2 ... ok 2/3 ... ok 2/4 ... ok 2/5 ... ok 2/6 ... ok 2/7 ... ok 2/8 ... ok 2/9 ... ok 2/10 ... ok 2/11 ... ok 2/12 ... ok 2/13 ... ok 2/14 ... ok 2/15 ... ok 2/16 ... ok 2/17 ... ok 2/18 ... ok 2/19 ... ok 2/20 ... ok 2/21 ... ok 2/22 ... ok 2/23 ... ok 2/24 ... ok 2/25 ... ok 2/26 ... ok 2/27 ... ok 2/28 ... ok 2/29 ... ok 2/30 ... ok 2/31 ... ok 2/32 ... ok 2/33 ... ok 2/34 ... ok 2/35 ... ok 2/36 ... ok 2/37 ... ok 2/38 ... ok 2/39 ... ok 2/40 ... ok 2/41 ... ok 2/42 ... ok 2/43 ... ok 3/44 ... ok 3/45 ... ok 3/46 ... ok 3/47 ... ok 3/48 ... ok 3/49 ... ok 3/50 ... ok 3/51 ... ok 3/52 ... ok 2/53 ... ok 5/54 ... ok 5/55 ... ok 5/57 ... ok 5/58 ... ok 5/59 ... ok 5/60 ... ok 5/61 ... ok 5/62 ... ok 2/63 ... ok 3/64 ... ok 5/66 ... ok 2/67 ... ok 2/68 ... ok 3/69 ... ok 2/70 ... ok 3/71 ... ok 3/72 ... ok 2/73 ... ok 3/74 ... ok 3/75 ... ok 3/76 ... ok 3/77 ... ok 3/78 ... ok 3/79 ... ok 3/80 ... ok 3/81 ... ok 3/82 ... ok 3/83 ... ok 3/84 ... ok 3/85 ... ok 3/86 ... ok 3/87 ... ok 3/88 ... ok 3/89 ... ok 3/90 ... ok 2/91 ... ok 3/92 ... repository is empty 2/93 ... ok 2/94 ... ok 2/95 ... ok 3/96 ... ok 3/97 ... ok 3/98 ... ok 3/99 ... ok 3/101 ... ok 3/102 ... ok 3/103 ... ok 3/104 ... ok 3/105 ... ok 3/106 ... ok 2/107 ... ok 5/108 ... ok 2/109 ... ok 3/110 ... ok 2/111 ... ok 2/112 ... ok 3/113 ... repository is empty 2/114 ... ok 3/115 ... ok 2/116 ... ok 2/118 ... ok 2/119 ... ok 2/120 ... ok 3/121 ... ok 2/122 ... ok 2/123 ... ok 3/124 ... repository is empty 2/125 ... ok 3/126 ... ok 3/128 ... ok 3/129 ... ok 3/130 ... ok 3/131 ... ok 3/132 ... repository is empty Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Reply by email is disabled in config/gitlab.yml Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
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? ... no Try fixing it: sudo chown -R git /var/opt/gitlab/gitlab-rails/uploads sudo find /var/opt/gitlab/gitlab-rails/uploads -type f -exec chmod 0644 {} ; sudo find /var/opt/gitlab/gitlab-rails/uploads -type d -not -path /var/opt/gitlab/gitlab-rails/uploads -exec chmod 0700 {} ; For more information see: doc/install/installation.md in section "GitLab" Please fix the error above and rerun the checks. 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: ... 2/1 ... yes 2/2 ... yes 2/3 ... yes 2/4 ... yes 2/5 ... yes 2/6 ... yes 2/7 ... yes 2/8 ... yes 2/9 ... yes 2/10 ... yes 2/11 ... yes 2/12 ... yes 2/13 ... yes 2/14 ... yes 2/15 ... yes 2/16 ... yes 2/17 ... yes 2/18 ... yes 2/19 ... yes 2/20 ... yes 2/21 ... yes 2/22 ... yes 2/23 ... yes 2/24 ... yes 2/25 ... yes 2/26 ... yes 2/27 ... yes 2/28 ... yes 2/29 ... yes 2/30 ... yes 2/31 ... yes 2/32 ... yes 2/33 ... yes 2/34 ... yes 2/35 ... yes 2/36 ... yes 2/37 ... yes 2/38 ... yes 2/39 ... yes 2/40 ... yes 2/41 ... yes 2/42 ... yes 2/43 ... yes 3/44 ... yes 3/45 ... yes 3/46 ... yes 3/47 ... yes 3/48 ... yes 3/49 ... yes 3/50 ... yes 3/51 ... yes 3/52 ... yes 2/53 ... yes 5/54 ... yes 5/55 ... yes 5/57 ... yes 5/58 ... yes 5/59 ... yes 5/60 ... yes 5/61 ... yes 5/62 ... yes 2/63 ... yes 3/64 ... yes 5/66 ... yes 2/67 ... yes 2/68 ... yes 3/69 ... yes 2/70 ... yes 3/71 ... yes 3/72 ... yes 2/73 ... yes 3/74 ... yes 3/75 ... yes 3/76 ... yes 3/77 ... yes 3/78 ... yes 3/79 ... yes 3/80 ... yes 3/81 ... yes 3/82 ... yes 3/83 ... yes 3/84 ... yes 3/85 ... yes 3/86 ... yes 3/87 ... yes 3/88 ... yes 3/89 ... yes 3/90 ... yes 2/91 ... yes 3/92 ... yes 2/93 ... yes 2/94 ... yes 2/95 ... yes 3/96 ... yes 3/97 ... yes 3/98 ... yes 3/99 ... yes 3/101 ... yes 3/102 ... yes 3/103 ... yes 3/104 ... yes 3/105 ... yes 3/106 ... yes 2/107 ... yes 5/108 ... yes 2/109 ... yes 3/110 ... yes 2/111 ... yes 2/112 ... yes 3/113 ... yes 2/114 ... yes 3/115 ... yes 2/116 ... yes 2/118 ... yes 2/119 ... yes 2/120 ... yes 3/121 ... yes 2/122 ... yes 2/123 ... yes 3/124 ... yes 2/125 ... yes 3/126 ... yes 3/128 ... yes 3/129 ... yes 3/130 ... yes 3/131 ... yes 3/132 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.3 ? ... yes (2.3.5) Git version >= 2.7.3 ? ... yes (2.13.6) Git user has default SSH configuration? ... yes Active users: ... 11
Checking GitLab ... Finished
Possible fixes
Add logged in user as author to the hidden form data.(?)