Folder name with special characters doesn't show its content in the UI
Summary
A customer is experiencing issues with URL encoded characters in directory names. When the character %2F
is inserted in a directory name, and then the code is pushed to GitLab, GitLab shows the directory as empty. In the UI, GitLab decodes the directory path correctly but the contents don't show up. Here's the test project I'm using. This weird behavior seems to come from those URL encoded characters.
Steps to reproduce
- Create a git repository in the CLI
- Add a directory with the character
%2F
in the directory name - Add files to the that directory
- Push that repository to a GitLab project
- Open the project and try to open the directory
Example Project
What is the current bug behavior?
The contents of the directory with the character %2F
don't show up
What is the expected correct behavior?
The contents of the directory with the character %2F
should show up
Relevant logs and/or screenshots
Directory in the CLI
Directory in the UI
Directory contents
WebIDE
Note: @psjakubowska The issue was partially fixed by #427827 (closed) and is no longer present on the Repository view. However, it is still possible to reproduce inside the WebIDE.