[go: up one dir, main page]

Skip to content

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

  1. Commit a file that has, for example %FF in its filename.
  2. Launch the Web IDE on the project that contains the file.
  3. 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

image

Output of checks

This bug happens on GitLab.com

Edited by 🤖 GitLab Bot 🤖