Cannot enter / render folder with jinja template {{ in the name }} - UI bug

Summary

It is not possible to enter the folder with {{ in the name }} via web UI.

I have a cookiecutter project which uses jinja to template files and folders. If you go to project https://gitlab.com/remak_team/open-source/rmk-pypackage and click on the folder {{cookiecutter.project_slug}} page won't render the underlying structure instead it loads same page but url changes.

This is an example how url is being generated by clicking on {{cookiecutter.project_slug}}

https://gitlab.com/remak_team/open-source/rmk-pypackage/tree/5+7/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D/%7B%7Bcookiecutter.project_slug%7D%7D

Steps to reproduce

Web UI only flow

  1. Go to gitlab.com
  2. Create a project
  3. Create a folder with name {{problematic.name}}
  4. Click on the folder and observe the change

Web UI + git

  1. Go to gitlab.com
  2. Create a project
  3. In your computer create new git repository
  4. Create a file and add it to git
  5. Create folder {{problematic.name}}
  6. Create another file in {{problematic.name}}/.gitkeep
  7. Add and commit all changes
  8. Push to gitlab
  9. Go to gitlab.com
  10. Try to click on the {{problematic.name}}

Example Project

https://gitlab.com/1oglop1/testproject https://gitlab.com/remak_team/open-source/rmk-pypackage

What is the current bug behavior?

Gitlab UI does not access and render files under {{problematic.name}}

What is the expected correct behavior?

Render children files and folders of {{problematic.name}}

Relevant logs and/or screenshots

image

Assignee Loading
Time tracking Loading