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.

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

            Owen made changes -
            Workflow Original: Stash Workflow - Restricted [ 1444115 ] New: JAC Bug Workflow v3 [ 3135963 ]
            Owen made changes -
            Workflow Original: Stash Workflow [ 1400654 ] New: Stash Workflow - Restricted [ 1444115 ]
            Cristan Szmajda (Inactive) made changes -
            Fix Version/s New: 4.6.3 [ 62071 ]
            Fraser made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: In Progress [ 3 ] New: Closed [ 6 ]
            Cristan Szmajda (Inactive) made changes -
            Fix Version/s Original: 4.7.0 [ 61573 ]
            Cristan Szmajda (Inactive) made changes -
            Fix Version/s New: 4.7.1 [ 62069 ]
            Adam Ahmed (Inactive) made changes -
            Fix Version/s New: 4.7.0 [ 61573 ]
            Christian made changes -
            Status Original: Open [ 1 ] New: In Progress [ 3 ]
            Cristan Szmajda (Inactive) made changes -
            Labels New: lemonheads
            Cristan Szmajda (Inactive) made changes -
            Assignee New: Christian [ crolf ]

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

                Created:
                Updated:
                Resolved: