Skip to content

Ill-formed `.gitlab-ci.yml` causes Internal Server Error (500)

Summary

Ill-formed .gitlab-ci.yml causes Internal Server Error (500) when this file is tried to be opened in Web UI.

Steps to reproduce

Add the following to any .gitlab-ci.yml:

variables: !!omap
  - VARIABLE_NAME: 'variable_value'

Try to open this file using GitLab UI: https://gitlab.com/kutelev/illformed_variables/-/blob/main/.gitlab-ci.yml

Example Project

https://gitlab.com/kutelev/illformed_variables/-/blob/main/.gitlab-ci.yml

What is the current bug behavior?

GitLab shows an error message:

image

What is the expected correct behavior?

  • File content is shown, even if it is ill-formed.
  • No critical errors happen.

Relevant logs and/or screenshots

-

Output of checks

This bug happens on GitLab.com.

Results of GitLab environment info

-

Results of GitLab application Check

-

Possible fixes

-