PDF files attached to GitLab Wiki page on Gitlab.com do not appear in page list.

Summary

When attaching PDF files to a GitLab Wiki page on GitLab.com, the attachment can be linked to but does not show up in the page list on the right hand side of the page.

Steps to reproduce

  1. Create wiki page
  2. Attach PDF file to Wiki page
  3. Link is created in markdown with file name and link within uploads directory.
  4. PDF attachment is not displayed in page list on the right hand side of page.

Example Project

test project

What is the current bug behavior?

  1. Link is created in markdown with file name and link within uploads directory.
  2. Attachment exists in cloned wiki repository
  3. PDF attachment is not displayed in page list on the right hand side of page.

What is the expected correct behavior?

PDF attachment should be displayed in uploads folder in page list structure

Relevant logs and/or screenshots

PDF_display_error

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:env:info)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)