Wiki secondary pages not shown to guests if no Home page exists
Summary
Guest account doesn't have the right menu with all wiki pages when the project has no Home page created (but only secondaries pages)
Steps to reproduce
Step 1
Create a private project Create a secondary wiki (with name != Home) Invite a user as guest Connect as guest user and click Wiki
--> "Empty Page"
What is the expected correct behavior?
Step 2 Now create the wiki Home page as main user Show wiki pages as guest users
--> the home page is shown, and at right you have the menu (or bar ?) with both "Home" and "Specific" pages links
Results of GitLab environment info
Expand for output related to GitLab environment info
$ sudo gitlab-rake gitlab:env:info /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:10: warning: already initialized constant Asana::Errors::APIError /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:10: warning: previous definition of APIError was here /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:20: warning: already initialized constant Asana::Errors::NotAuthorized /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:20: warning: previous definition of NotAuthorized was here /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:29: warning: already initialized constant Asana::Errors::Forbidden /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:29: warning: previous definition of Forbidden was here /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:38: warning: already initialized constant Asana::Errors::NotFound /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:38: warning: previous definition of NotFound was here /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:49: warning: already initialized constant Asana::Errors::ServerError /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:49: warning: previous definition of ServerError was here /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:65: warning: already initialized constant Asana::Errors::InvalidRequest /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:65: warning: previous definition of InvalidRequest was here /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:80: warning: already initialized constant Asana::Errors::RateLimitEnforced /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:80: warning: previous definition of RateLimitEnforced was here /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/version.rb:4: warning: already initialized constant Asana::VERSION /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/version.rb:4: warning: previous definition of VERSION was hereSystem information System: Debian 7.11 Current User: git Using RVM: no Ruby Version: 2.3.6p384 Gem Version: 2.6.13 Bundler Version:1.13.7 Rake Version: 12.3.0 Redis Version: 3.2.11 Git Version: 2.14.3 Sidekiq Version:5.0.5 Go Version: unknown
GitLab information Version: 10.7.3 Revision: 2555d6c Directory: /var/srv/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: http://vld-test/gitlab HTTP Clone URL: http://vld-test/gitlab/some-group/some-project.git SSH Clone URL: git@vld-test:some-group/some-project.git Using LDAP: no Using Omniauth: no
GitLab Shell Version: 7.1.2 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
$ sudo gitlab-rake gitlab:check SANITIZE=true /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:10: warning: already initialized constant Asana::Errors::APIError /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:10: warning: previous definition of APIError was here /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:20: warning: already initialized constant Asana::Errors::NotAuthorized /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:20: warning: previous definition of NotAuthorized was here /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:29: warning: already initialized constant Asana::Errors::Forbidden /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:29: warning: previous definition of Forbidden was here /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:38: warning: already initialized constant Asana::Errors::NotFound /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:38: warning: previous definition of NotFound was here /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:49: warning: already initialized constant Asana::Errors::ServerError /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:49: warning: previous definition of ServerError was here /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:65: warning: already initialized constant Asana::Errors::InvalidRequest /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:65: warning: previous definition of InvalidRequest was here /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:80: warning: already initialized constant Asana::Errors::RateLimitEnforced /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/errors.rb:80: warning: previous definition of RateLimitEnforced was here /opt/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/version.rb:4: warning: already initialized constant Asana::VERSION /var/srv/gitlab/embedded/lib/ruby/gems/2.3.0/gems/asana-0.6.0/lib/asana/version.rb:4: warning: previous definition of VERSION was here Checking GitLab Shell ...GitLab Shell version >= 7.1.2 ? ... OK (7.1.2) 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: ... 4/1 ... ok 4/2 ... ok 5/3 ... ok 5/4 ... ok 5/5 ... ok 6/7 ... ok 13/8 ... ok 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? ... yes 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: ... 4/1 ... yes 4/2 ... yes 5/3 ... yes 5/4 ... yes 5/5 ... yes 6/7 ... yes 13/8 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.3.6) Git version >= 2.9.5 ? ... yes (2.14.3) Git user has default SSH configuration? ... yes Active users: ... 8
Checking GitLab ... Finished