Summary
Automatic Fork Sync results in a qualified branch name (refs/heads/<branch>) instead of a short name in Remote Events
Steps to Reproduce
- Enable DEBUG logging on Bitbucket Server
- Set up a "SOURCE" repository in Bitbucket Server
- Fork the repository to a "TARGET" repository, ensuring Fork Sync is enabled
- Merge to the "SOURCE" repository
- Wait for Auto Fork Sync to trigger
- 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.
- mentioned in
-
Page Failed to load
[BSERV-10068] Auto Fork Sync sending qualified path refs/heads/<branch> to RemoteEvents
Workflow | Original: Stash Workflow - Restricted [ 2424675 ] | New: JAC Bug Workflow v3 [ 3137134 ] |
Symptom Severity | Original: Minor [ 14432 ] | New: Severity 3 - Minor [ 15832 ] |
Remote Link | New: This issue links to "Page (Extranet)" [ 319162 ] |
Fix Version/s | New: 5.4.0 [ 73619 ] | |
Fix Version/s | New: 5.0.8 [ 74411 ] | |
Fix Version/s | New: 5.1.6 [ 74412 ] | |
Fix Version/s | New: 5.2.4 [ 74413 ] | |
Fix Version/s | New: 5.3.2 [ 74414 ] | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: To be reviewed [ 10026 ] | New: Closed [ 6 ] |
Remote Link |
New:
This issue links to "Bitbucket Server › Pull Request Build › |
Remote Link |
New:
This issue links to "Bitbucket Server › Pull Request Build with Coverage › |
Remote Link |
New:
This issue links to "Bitbucket Server › 5.0.X › |
Status | Original: In Progress [ 3 ] | New: To be reviewed [ 10026 ] |
Remote Link |
New:
This issue links to "Bitbucket Server › Pull Request Build with Coverage › |
Remote Link |
New:
This issue links to "Bitbucket Server › Pull Request Build › |