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

Miscellaneous

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community


This Knowledge Base article was written specifically for the Atlassian Server platform and may be self applied.

If you are an Atlassian Cloud customer and you wish for Atlassian Cloud Support to perform this procedure for you please file a support request referencing this article.

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-stash.log every time the pop up is displayed on Stash 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.stash.exception.AuthorisationException: You are not permitted to access this resource
	at com.atlassian.stash.internal.aop.ExceptionRewriteAdvice.afterThrowing(ExceptionRewriteAdvice.java:36) ~[stash-platform-3.10.2.jar:na]
	at se.bjurr.sscc.SsccRepositoryMergeRequestCheck.check(SsccRepositoryMergeRequestCheck.java:53) ~[na:na]
	at com.atlassian.stash.internal.pull.DefaultMergeRequestCheckService.doCheck(DefaultMergeRequestCheckService.java:73) [stash-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 Stash Commit Checker add-on (line at se.bjurr.sscc.SsccRepositoryMergeRequestCheck.check(SsccRepositoryMergeRequestCheck.java:53) ~[na:na])

Workaround

Disable the Simple Stash Commit Checker add-on.

Resolution

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

Last modified on Feb 26, 2016

Was this helpful?

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