Directories ending with a space cannot be viewed in the Source tab

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 6.0.0
    • Affects Version/s: 4.9.0
    • Component/s: None
    • None
    • 1
    • Severity 3 - Minor

      Summary

      If a directory ends with a space character, that directory fails to load in the Source tab.

      Steps to Reproduce

      1. Create a directory ending with a space, and push it to a repository.
      2. Navigate to the Source of that repository in Bitbucket Server, and navigate to the directory that ends with a space.

      Expected Results

      The contents of the directory are shown.

      Actual Results

      The following error is shown to the user:

      The path "test_dir/another_test_dir/directory end space" does not exist at revision "refs/heads/master"
      

       

      Notes

      The error does not show a trailing space in the directory name, so it appears the space is trimmed out, causing the path to be invalid.

      Workaround

      If a trailing slash is added to the URL pointing to this directory, the contents load successfully.

            Assignee:
            Bryan Turner (Inactive)
            Reporter:
            Shashank Maruvada (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: