Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75406

StackoverFlowError in ConjurSecretCredentials implementations

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker 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

      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.

            cyberark_bizdev Edward Nunez
            allan_burdajewicz Allan BURDAJEWICZ
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: