Web IDE can't open files that have %XX in their filenames
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
The GitLab Web IDE can't open files that have in their filenames substrings that look like they could be percent-encoded.
Steps to reproduce
- Commit a file that has, for example
%FF
in its filename. - Launch the Web IDE on the project that contains the file.
- Click on the filename in the directory tree on the left hand side of the screen.
Example Project
https://gitlab.com/upn5do/pages-percent-encoding-test
What is the current bug behavior?
When I try to open a file called, for example, with%FFpercent-then-hexadecimal.txt
in the Web IDE, I receive the following message:
Unable to open 'with%FFpercent-then-hexadecimal.txt'
{"status":400,"body":{"error":"file_path should be a valid file path"}}
What is the expected correct behavior?
The file can be interacted with as any other file.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Edited by 🤖 GitLab Bot 🤖