Skip to content

Web IDE cannot display files or files in folders with curly brackets

Summary

When having folders or files with curly brackets in your repository, Web IDE is not able to display files under the specific folder. Used for e.g. cookiecutter templates.

Steps to reproduce

In the example project, open a file in the folder {{cookiecutter.project_slug}} or the file {{cookiecutter.project_slug}}.md.

In your own repository: Add a file called {{test}} or folder {{test2}} and try opening it using the Web IDE.

Example Project

https://gitlab.com/frust/cookiecutter-django

What is the current bug behavior?

Files cannot be displayed in the Web IDE.

The performed HTTP request is:

https://gitlab.com/frust/cookiecutter-django/blob/master/%7B%7D/LICENSE?format=json

and should probably be:

https://gitlab.com/frust/cookiecutter-django/blob/master/%7B%7Bcookiecutter.project_slug%7D%7D/LICENSE?format=json`

Somewhere the path informations gets lost.

What is the expected correct behavior?

Files should be displayed in the Web IDE.

Output of checks

This bug happens on GitLab.com

Edited by Tobias Huste