An error occured is shown every time users see a Pull Request

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

Users are getting "An error occured" dialog every time they go to view a pull request.

After they click OK to the error box, the Pull Requests still displays as expected and can be approved and merged.

However the same error may be shown on merge even though the merge still works. This happens to all our users who are not project admins.

The log below is shown in the atlassian-bitbucket.log every time the pop up is displayed on Bitbucket Server UI:

1 2 3 4 5 6 7 2015-07-06 12:19:37,466 ERROR [http-nio-8443-exec-141] user @1HGFTZFx739x61282x5 adse4s IP "GET /rest/api/latest/projects/CB/repos/project/pull-requests/142/merge HTTP/1.1" s.b.s.SsccRepositoryMergeRequestCheck com.atlassian.bitbucket.exception.AuthorisationException: You are not permitted to access this resource at com.atlassian.bitbucket.internal.aop.ExceptionRewriteAdvice.afterThrowing(ExceptionRewriteAdvice.java:36) ~[bitbucket-platform-3.10.2.jar:na] at se.bjurr.sscc.SsccRepositoryMergeRequestCheck.check(SsccRepositoryMergeRequestCheck.java:53) ~[na:na] at com.atlassian.bitbucket.internal.pull.DefaultMergeRequestCheckService.doCheck(DefaultMergeRequestCheckService.java:73) [bitbucket-service-impl-3.10.2.jar:na] ... ...

This only started occurring after upgrade from 3.10.0 to 3.10.2.

Cause

The issue happens after the code goes through the code of the Simple Bitbucket Server Commit Checker add-on (line at se.bjurr.sscc.SsccRepositoryMergeRequestCheck.check(SsccRepositoryMergeRequestCheck.java:53) ~[na:na])

Workaround

Disable the Simple Bitbucket Server Commit Checker add-on.

Resolution

Please report this issue to the vendor's public issue tracker so they can fix it.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.