BUG empty file with name %20
Summary
Adding a file whose name is a single space character (" ") directly under a repository’s root directory causes several UI problems:
- The file’s commit history is not shown; instead the repository’s overall history is displayed.
Steps to reproduce
prepare the file
- create a new file at the root of a repository with the name " " (1 space) by using "+" menu and "new file" buttons.
- commit it.
file history
- select it in file view and push history button to show the file history.
- you'll see repository history, not the file's history
Example Project
https://gitlab.com/gitlab-org/gitlab/-/blob/master/%20?ref_type=heads
What is the current bug behavior?
- we can see the repository history.
What is the expected correct behavior?
- we can see the file history.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Results of GitLab application Check
Possible fixes
Patch release information for backports
High-severity bug remediation
Edited by 🤖 GitLab Bot 🤖
