Failure in browser_ui/3_create/repository/file/file_with_unusual_name_spec.rb | Create File with unusual name when file name starts with a dash and contains hash, semicolon, colon, and question mark renders repository file tree correctly

Full description

Create File with unusual name when file name starts with a dash and contains hash, semicolon, colon, and question mark renders repository file tree correctly

File path

./qa/specs/features/browser_ui/3_create/repository/file/file_with_unusual_name_spec.rb

Stack trace

Failure/Error:
  Resource::File.fabricate_via_api! do |file|
    file.project = project
    file.commit_message = 'Add new file'
    file.name = "test-folder/#{file_name}"
    file.content = "### Heading\n\n[Gitlab link](https://gitlab.com/)"
  end

QA::Resource::Errors::InternalServerError:
  Failed to GET http://gitlab-ee-60e5c49b.test/relative/api/v4/groups/gitlab-qa-sandbox-group%2Fqa-test-2022-01-02-01-01-53-33836c8264dfe31e?private_token=[****] - (500): `{"message":"500 Internal Server Error"}`.

First happened in https://gitlab.com/gitlab-org/gitlab-qa-mirror/-/jobs/1934087007.