Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-9123

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 6.0.0
    • 4.9.0
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: