Skip to content

SVG uploaded sometimes does not display

Summary

For some reason, sometimes SVG would display properly, but sometimes it would not, but is still downloadable.

Steps to reproduce

1st image (works)

1979-models.svg

2nd image (does not display)

1979-model-project-level-with-co.svg

What is the current bug behavior?

SVG sometimes does not display

What is the expected correct behavior?

SVG always displays

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)