Cannot delete files with spaces in name

Summary

When removing a file through the delete button in a repository, files containing spaces fail to delete.

Steps to reproduce

$ touch "file name.txt"
$ git add -A
$ git commit -m "sick file name, bro"
$ git push

Open Repository Click on file name to view contents Click Delete File button Click Delete File on dialogue

Observe file name error 93F08028

B8AC6076

What is the current bug behavior?

File Delete fails, and error message is displayed. image

What is the expected correct behavior?

Just delete the file and escape the necessary characters (space).

Possible fixes

Escape (urlencode, base64 encode) the file name when deleting if special characters causes the issue.

Assignee Loading
Time tracking Loading