-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
-
conjur-credential:2.2.4
The Conjur Credentials plugin may cause StackOverflowError.
2025-03-11 11:30:41.962+0000 [id=10309221] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving https://engci-private-blr.cisco.com/jenkins/cs-apjc/manage/descriptorByName/com.cloudbees.jenkins.plugins.bitbucket.endpoints.BitbucketCloudEndpoint/fillCredentialsIdItems java.lang.StackOverflowError at java.base/java.lang.StackStreamFactory$AbstractStackWalker.callStackWalk(Native Method) at java.base/java.lang.StackStreamFactory$AbstractStackWalker.beginStackWalk(StackStreamFactory.java:370) at java.base/java.lang.StackStreamFactory$AbstractStackWalker.walk(StackStreamFactory.java:243) at java.base/java.lang.StackWalker.walk(StackWalker.java:498) at java.logging/java.util.logging.LogRecord$CallerFinder.get(LogRecord.java:709) at java.logging/java.util.logging.LogRecord.inferCaller(LogRecord.java:683) at java.logging/java.util.logging.LogRecord.getSourceMethodName(LogRecord.java:383) at io.jenkins.lib.support_log_formatter.SupportLogFormatter.format(SupportLogFormatter.java:68) at java.logging/java.util.logging.StreamHandler.publish(StreamHandler.java:199) at java.logging/java.util.logging.ConsoleHandler.publish(ConsoleHandler.java:95) at java.logging/java.util.logging.Logger.log(Logger.java:979) at java.logging/java.util.logging.Logger.doLog(Logger.java:1006) at java.logging/java.util.logging.Logger.log(Logger.java:1117) at com.cloudbees.opscenter.client.plugin.OperationsCenterCredentialsProvider.getCredentials(OperationsCenterCredentialsProvider.java:168) at com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(CredentialsProvider.java:429) at org.conjur.jenkins.conjursecrets.ConjurSecretCredentials.credentialWithID(ConjurSecretCredentials.java:86) at org.conjur.jenkins.conjursecrets.ConjurSecretCredentials.setConjurConfigurationForCredentialWithID(ConjurSecretCredentials.java:104) at org.conjur.jenkins.conjursecrets.ConjurSecretUsernameCredentialsImpl.setConjurConfiguration(ConjurSecretUsernameCredentialsImpl.java:85) at org.conjur.jenkins.conjursecrets.ConjurSecretCredentials.setConjurConfigurationForCredentialWithID(ConjurSecretCredentials.java:107) at org.conjur.jenkins.conjursecrets.ConjurSecretUsernameCredentialsImpl.setConjurConfiguration(ConjurSecretUsernameCredentialsImpl.java:85) at org.conjur.jenkins.conjursecrets.ConjurSecretCredentials.setConjurConfigurationForCredentialWithID(ConjurSecretCredentials.java:107) at org.conjur.jenkins.conjursecrets.ConjurSecretUsernameCredentialsImpl.setConjurConfiguration(ConjurSecretUsernameCredentialsImpl.java:85) at org.conjur.jenkins.conjursecrets.ConjurSecretCredentials.setConjurConfigurationForCredentialWithID(ConjurSecretCredentials.java:107) at org.conjur.jenkins.conjursecrets.ConjurSecretUsernameCredentialsImpl.setConjurConfiguration(ConjurSecretUsernameCredentialsImpl.java:85) at org.conjur.jenkins.conjursecrets.ConjurSecretCredentials.setConjurConfigurationForCredentialWithID(ConjurSecretCredentials.java:107) at org.conjur.jenkins.conjursecrets.ConjurSecretUsernameCredentialsImpl.setConjurConfiguration(ConjurSecretUsernameCredentialsImpl.java:85) at org.conjur.jenkins.conjursecrets.ConjurSecretCredentials.setConjurConfigurationForCredentialWithID(ConjurSecretCredentials.java:107) at org.conjur.jenkins.conjursecrets.ConjurSecretUsernameCredentialsImpl.setConjurConfiguration(ConjurSecretUsernameCredentialsImpl.java:85) at org.conjur.jenkins.conjursecrets.ConjurSecretCredentials.setConjurConfigurationForCredentialWithID(ConjurSecretCredentials.java:107)
Code refs
- https://github.com/jenkinsci/conjur-credentials-plugin/blob/v2.2.4/src/main/java/org/conjur/jenkins/conjursecrets/ConjurSecretCredentials.java#L183
- https://github.com/jenkinsci/conjur-credentials-plugin/blob/v2.2.4/src/main/java/org/conjur/jenkins/conjursecrets/ConjurSecretUsernameCredentialsImpl.java#L117-L118
How to Reproduce
- Spin Up Jenkins
- Install Conjur Credentials plugin and Bitbucket Branch Source plugin
- Configure "Conjur Appliance" under Manage Jenkins > System:
- Account: myaccount
- Appliance URL: http://localhost:8888
- Create a credentials of type Conjur Secret Username Credentials:
- Username: myuser
- Account: myaccount
- Appliance URL: http://localhost:8888
- Go to *Manage Jenkins > System* and the StackOverflowError occurs.