- edited description
4.0.0 of this plugin does not seem compatible with 6.0.0 of Bitbucket
Hello,
if I update a pull request of a forked repository via commit and push, this does not work and I get the following exception in the log output:
2019-02-19 11:11:25,470 ERROR [threadpool:thread-7] c.a.s.i.c.DefaultTransferableStateManager Error while processing asynchronous task
java.lang.NoSuchMethodError: com.atlassian.bitbucket.scm.git.command.GitScmCommandBuilder.alternates(Ljava/lang/Iterable;)Lcom/atlassian/bitbucket/scm/git/command/GitScmCommandBuilder;
at com.atlassian.bitbucket.internal.unapprove.GitRescopeAnalyzer.calculatePatchId(GitRescopeAnalyzer.java:105)
at com.atlassian.bitbucket.internal.unapprove.GitRescopeAnalyzer.isUpdated(GitRescopeAnalyzer.java:66)
at com.atlassian.bitbucket.internal.unapprove.AutoUnapproveListener.lambda$onPullRequestRescoped$0(AutoUnapproveListener.java:64)
at com.atlassian.stash.internal.concurrent.DefaultTransferableStateManager$StateTransferringRunnable.run(DefaultTransferableStateManager.java:166)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.lang.Thread.run(Unknown Source)
... 1 frame trimmed
The JavaDoc doesn't show up the method alternates(...)
@ https://docs.atlassian.com/bitbucket-server/javadoc/6.0.0/git-api/reference/com/atlassian/bitbucket/scm/git/command/GitScmCommandBuilder.html
But the builder is still implementing GitCommandBuilderSupport
and the GitCommandBuilderSupport
provides the missing method as far i can see
@ https://docs.atlassian.com/bitbucket-server/javadoc/6.0.0/git-api/reference/com/atlassian/bitbucket/scm/git/command/GitCommandBuilderSupport.html#alternates(java.lang.Iterable%3Ccom.atlassian.bitbucket.repository.Repository%3E)
It'd be great if that could be fixed. Thanks in advance!
Regards
Comments (2)
-
reporter -
- changed status to resolved
Version 4.0.1 has been released and contains a fix for this bug. It is available for download from Atlassian Marketplace https://marketplace.atlassian.com/apps/1211449/auto-unapprove-for-bitbucket-server
- Log in to comment