Skip to content

SVG static assets broken and not displayed #9332

@dgaussin

Description

@dgaussin

Every asset with svg type are displayed as broken in web interface.

image

We installed sentry 9 with python and nginx as proxy on CentOS 7.2

When I look the content-type returned, svg files are not recognized.

$ curl -v https://sentry/_static/1533634345/sentry/dist/php.svg
(...)
< Content-Type: application/octet-stream

If I check the file on server, the svg is not recognized.

$ file php.svg 
php.svg: HTML document, ASCII text, with very long lines, with no line terminators

If we serve the file directly with nginx, the correct mime type is sent as image/svg+xml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions