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

When accessing files under "subtree" in a repository from the UI, 500 error is shown

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.6.3, 4.7.1
    • 4.6.2
    • None

      Summary

      When accessing files under "subtree" in a repository from the UI, 500 error is shown.
      This problem only happened immediately after adding "subtree", however, if we changed the problematic files even once, the files were shown correctly.

      Steps to Reproduce

      1. Create a repository which is named "main"
      2. Clone "main" repository on local, commit some changes and push the changes to the repository
      3. Create a repository which is named "sub"
      4. Clone "sub" repository on local, and execute the following commands
        $ touch test.txt
        $ git add test.txt
        $ git commit -a -m "added test.txt
        $ git push
        
      5. Go to the directory where "main" repository" locates on your local
      6. Execute the following commands
        $ git remote add sub <BBS_BASE_DIR>/scm/<PROJECT_NAME OR USER_NAME>/sub.git
        $ git subtree add --prefix=sub/ sub master
        $ git push
        
      7. Go to sub/test.txt in "main" repository on the UI

      Expected Results

      sub/test.txt should be shown correctly on the UI.

      Actual Results

      500 error was shown.

      Notes

      • This problem didn't happen on Stash 3.6.1 at least
      • After committing some changes to the problematic files, they were shown correctly

      Workaround

      As I mentioned above, reflecting some changes to the files solve this problem.

          Form Name

            [BSERV-8780] When accessing files under "subtree" in a repository from the UI, 500 error is shown

            There are no comments yet on this issue.

              crolf Christian
              yokamoto Yuki Okamoto (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: