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

Auto Fork Sync sending qualified path refs/heads/<branch> to RemoteEvents

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.4.0, 5.0.8, 5.1.6, 5.2.4, 5.3.2
    • 5.0.0, 5.1.0, 5.2.0, 5.3.0
    • None
    • None

    Description

      Summary

      Automatic Fork Sync results in a qualified branch name (refs/heads/<branch>) instead of a short name in Remote Events

      Steps to Reproduce

      1. Enable DEBUG logging on Bitbucket Server
      2. Set up a "SOURCE" repository in Bitbucket Server
      3. Fork the repository to a "TARGET" repository, ensuring Fork Sync is enabled
      4. Merge to the "SOURCE" repository
      5. Wait for Auto Fork Sync to trigger
      6. Check RemoteEvents logs

      Expected Results

      master sent to Remote Events as below:

      2017-08-18 19:17:28,340 DEBUG [events.remote.ratelimit.threads:thread-3]  c.a.e.r.impl.RemoteEventDispatcher Successfully dispatched events Set(com.atlassian.stash.plugin.remote.event.StashBranchChangedRemoteEvent@5d9d7fdc[branchName=master,repositoryProject=TESTING,repositorySlug=source,committer=testuser,sourceId=<null>,sourceUrl=<null>], ...)

      Actual Results

      We see that refs/heads/master is sent to Remote Events in the atlassian-bitbucket.log file:

      2017-08-18 19:17:45,570 DEBUG [events.remote.ratelimit.threads:thread-2]  c.a.e.r.impl.RemoteEventDispatcher Successfully dispatched events Set(com.atlassian.stash.plugin.remote.event.StashBranchChangedRemoteEvent@1bc9c280[branchName=refs/heads/master,repositoryProject=TESTING2,repositorySlug=target,committer=testuser,sourceId=<null>,sourceUrl=<null>], ...)

      Workaround

      You may be able to work around this by manually merging instead of using the auto-sync functionality.

      Attachments

        Issue Links

          Activity

            People

              bturner Bryan Turner (Inactive)
              ezeidan Elias Zeidan (they/them)
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: