You need to sign in or sign up before continuing.
repositories with names ending with ".wiki" are not useable
Summary
When creating a repository with a name ending with ".wiki", it is not possible to clone it or to commit a file via the gitlab editor.
Steps to reproduce
- Create a repository with the name "a.wiki.git" .
- Browse to https://host/username/a.wiki/new/master?file_name=README.md
- Write content, and try to commit.
Result: You get redirected to https://gitlab.example.com/username/a.wiki/create/master with the error message "Git operation was rejected by pre-receive hook".
Expected behavior
The file should be commited.
Relevant logs and/or screenshots
==> /var/log/gitlab/gitlab-rails/production.log <==
Started POST "/user/a.wiki/create/master" for 136.172.17.142 at 2016-02-24 10:12:45 +0100
Processing by Projects::BlobController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"[FILTERED]", "file_name"=>"README.md", "encoding"=>"text", "commit_message"=>"Add", "target_branch"=>"master", "content"=>"test", "namespace_id"=>"user", "project_id"=>"a.wiki", "id"=>"master"}
Started POST "/api/v3/internal/allowed" for 127.0.0.1 at 2016-02-24 10:12:47 +0100
==> /var/log/gitlab/unicorn/unicorn_stderr.log <==
GitLab: The project you were looking for could not be found.
==> /var/log/gitlab/gitlab-rails/production.log <==
Completed 200 OK in 1321ms (Views: 49.4ms | ActiveRecord: 10.1ms)
==> /var/log/gitlab/nginx/gitlab_access.log <==
136.172.17.142 - - [24/Feb/2016:10:12:47 +0100] "POST /user/a.wiki/create/master HTTP/2.0" 200 12700 "https://host/user/a.wiki/new/master?file_name=README.md" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36"
==> /var/log/gitlab/gitlab-workhorse/current <==
2016-02-24_09:12:47.32578 user @ - - [2016-02-24 10:12:45.994745342 +0100 CET] "POST /user/a.wiki/create/master HTTP/1.1" 200 12123 "https://host/user/a.wiki/new/master?file_name=README.md" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36" 1.330748
Results of GitLab Application Check
Checking GitLab Shell ...
GitLab Shell version >= 2.6.10 ? ... OK (2.6.10)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
hooks directories in repos are links: ...
6/3 ... ok
11/5 ... ok
2/7 ... ok
13/8 ... ok
6/10 ... ok
21/11 ... ok
23/12 ... ok
2/13 ... ok
2/14 ... ok
23/15 ... ok
11/23 ... ok
31/24 ... ok
36/25 ... repository is empty
29/27 ... ok
21/28 ... ok
13/30 ... ok
38/31 ... ok
48/32 ... ok
48/33 ... ok
48/34 ... ok
48/35 ... ok
52/36 ... ok
3/37 ... repository is empty
42/38 ... ok
29/39 ... repository is empty
29/40 ... repository is empty
29/41 ... repository is empty
29/42 ... ok
28/43 ... ok
28/44 ... repository is empty
41/47 ... ok
2/48 ... ok
2/49 ... repository is empty
2/50 ... ok
2/51 ... repository is empty
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/var/opt/gitlab/git-data/repositories: OK
/var/opt/gitlab/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.8.21
Send ping to redis server: PONG
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP users with access to your GitLab server (only showing the first 100 results)
Server: ldapmain
....
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... yes
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: ...
6/3 ... yes
11/5 ... yes
2/7 ... yes
13/8 ... yes
6/10 ... yes
21/11 ... yes
23/12 ... yes
2/13 ... yes
2/14 ... yes
23/15 ... yes
11/23 ... yes
31/24 ... yes
36/25 ... yes
29/27 ... yes
21/28 ... yes
13/30 ... yes
38/31 ... yes
48/32 ... yes
48/33 ... yes
48/34 ... yes
48/35 ... yes
52/36 ... yes
3/37 ... yes
42/38 ... yes
29/39 ... yes
29/40 ... yes
29/41 ... yes
29/42 ... yes
28/43 ... yes
28/44 ... yes
41/47 ... yes
2/48 ... yes
2/49 ... yes
2/50 ... yes
2/51 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.1.8)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 1.7.10 ? ... yes (2.6.2)
Active users: ...
Checking GitLab ... Finished
Results of GitLab Environment Info
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.1.8p440
Gem Version: 2.5.1
Bundler Version:1.10.6
Rake Version: 10.5.0
Sidekiq Version:4.0.1
GitLab information
Version: 8.5.0
Revision: a513e09
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://host
HTTP Clone URL: https://host/some-group/some-project.git
SSH Clone URL: git@host:some-group/some-project.git
Using LDAP: yes
Using Omniauth: no
GitLab Shell
Version: 2.6.10
Repositories: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git