"Oops..." error while clicking "Issues" menu after longer inactivity (ScriptRunner related?)

Hello.

One of our key users have a seemingly random problem while clicking "Issues" tab after longer inactivity. He gets an "Oops - an error has occurred" message.

Atlassian support helped me with narrowing the search of source of the issue and suggested it is realted to Script Runner plugin:

{code}Thank you for contacting Atlassian Support

Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:153)
	at com.onresolve.jira.groovy.jql.IssuesInSprint.getBoardId(script13670789095662048495194

The above stack traces seems to belong to this third-party plugin called Script Runner.{code}

This error doesn't seem dangerous, just highly inconvenient. I would be glad for any help on finding a source of this error.

Here is a full stack trace from error message.

Stack Trace: [hide]
com.atlassian.jira.issue.search.SearchException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	... 268 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174)
	... 274 more

1 answer

1 accepted

1 vote

Yeah. When you go to Issues it tries to rerun the last query you did. Maybe this worked previously but now doesn't.

To make it forget the last query get your user to navigate to:

<jira>/issues/?jql=

To fix the error permanently follow the instructions here: https://confluence.atlassian.com/display/DOC/Connecting+to+LDAP+or+JIRA+or+Other+Services+via+SSL

If you don't want to do that you should probably disable the inSprint() function.

Thank you for your quick reply, You saved the day again :)

Unfortunatelly we already tried adding certificates into the keystore, and can't import some of them. Probably we're just doing something wrong :) Anyway, thank you for the priceless help you provide! :)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

143 views 0 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you