Add and commit empty file started with dot in Web-IDE opens gitlab's web-IDE internal html instead of empty file.
Summary
Add and commit empty file started with dot in Web-IDE opens gitlab web-IDE internal html instead of empty file.
Steps to reproduce
- Open new or existing project on gitlab.com
- Open Web IDE
- Create new file with dot (".") as the first symbol. Examples
.1
,.gitignore
,.2
. - Leave the file empty and commit to current branch
Example Project
Example Project: https://gitlab.com/speshuric/dot
What is the current bug behavior?
There is some bogus text in Web IDE (actually this is Web IDE html page):
<!DOCTYPE html>
<html class="" lang="en">
<head prefix="og: http://ogp.me/ns#">
<meta charset="utf-8">
<link href="https://assets.gitlab-static.net" rel="dns-prefetch">
<link crossorigin="" href="https://assets.gitlab-static.net" rel="preconnnect">
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="object" property="og:type">
<meta content="GitLab" property="og:site_name">
<meta content="IDE" property="og:title">
...
What is the expected correct behavior?
Continue to edit empty file
Relevant logs and/or screenshots
How commit is performed:
After commit is done:
Output of checks
This bug happens on GitLab.com
Possible fixes
Just reload page