Skip to content

Resolve "All pages that render icons return 500"

What does this MR do?

Since we only log the error in development / test, we should also only read the JSON file in those environments.

Reading it in production was causing problems because the file doesn't exist in production.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

#56475 (closed)

Edited by Kamil Trzciński

Merge request reports