Folder and files within a project named "edit" cannot be viewed in GitLab
Created by: plutz
Update: Versin 4.1.0 d14069e3
When a project hosted in GitLab has a folder named "edit" you cannot descend into the folder. Ruby tries to parse the last part of the URL /edit as a command.
This also applies to files with "edit" in the name. For instance, you cannot edit the file name "edit.php."
How to reproduce:
- create a folder named "edit"
- add content to the folder
- push the project with the folder named "edit" to GitLab
- go to the files tab for the project
- try to descend into the folder named "edit"
You will see the list of files in the current folder refresh. Occasionally a message is given stating "Only files can be edited."
This is similar to Issue #2686 (closed) which was closed. I tried to get traction in that issue, but no one reopened it.
Philip