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

Błażej O_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 16, 2013

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
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2013

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.

Błażej O_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 19, 2013

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