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

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform Notice: Server, Data Center, and Cloud By Request - This article was written for the Atlassian server and data center platforms but may also be useful for Atlassian Cloud customers. If completing instructions in this article would help you, please contact Atlassian Support and mention it.

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

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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:

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.


Last modified on Oct 25, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.