Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
Register now
Whitespace at end of filename causes pipeline to fail
### Summary First reported by @jramsay in https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/48201#note_335676486. In that merge request, a filename had a trailing space, which was causing the build to fail (https://gitlab.com/gitlab-com/www-gitlab-com/-/jobs/536539091#L86): > `bad URI(is not URI?): "/releases/posts/2020-05-22-gitlab-13-0-released.html.md "` In his own words: > this was tricky to spot because the merge request diff doesn't show the whitespace at the end of the filename. Without putting quotes around the filename or using `formatting like this `, it's difficult to highlight the problem. […] These are the kind of details that can really help people when they get stuck. ### Steps to reproduce 1. Set up a CI job that fails if there are trailing whitespaces in filenames. 1. Push a filename with a trailing whitespace. 1. :boom: ### Example Project 1. Commit that removes trailing space: https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/48201/diffs?commit_id=5d4571f4bbcb668c37bd5a2774eae1e0e152b053 1. Failing build: https://gitlab.com/gitlab-com/www-gitlab-com/-/jobs/536539091#L86 ### What is the current *bug* behavior? It's difficult to see if a filename has trailing spaces, which can lead to builds failing. Users may be completely blocked because of this, having to reach out to someone else for assistance. In a better case scenario, they solve it, but finding the problem in the first place delays them significantly. ### What is the expected *correct* behavior? Trailing spaces should be visible or highlighted in some way that allows users to quickly diagnose the problem and fix it by themselves. In the repository, blob view, diffs, and merge requests. ### Output of checks This bug happens on GitLab.com
issue