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

Root CAs component appears broken

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: support-core-plugin
    • Labels:
      None
    • Environment:
      core 2.89.4
      support-core 2.44
      Java 1.8.0_121
    • Similar Issues:

      Description

      It looks the component just tries to list an uninitialized KeyStore which results in:

      java.security.KeyStoreException: Uninitialized keystore
      	at java.security.KeyStore.aliases(KeyStore.java:1233)
      	at com.cloudbees.jenkins.support.impl.RootCAs.getRootCAList(RootCAs.java:149)
      	at com.cloudbees.jenkins.support.impl.RootCAs$GetRootCA.call(RootCAs.java:132)
      	at com.cloudbees.jenkins.support.impl.RootCAs$GetRootCA.call(RootCAs.java:125)
      	at hudson.remoting.LocalChannel$1.call(LocalChannel.java:52)
      	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      For reference on how to do it:
      https://stackoverflow.com/questions/8884831/listing-certificates-in-jvm-trust-store
      https://github.com/jenkinsci/jenkins-scripts/pull/82/files

        Attachments

          Issue Links

            Activity

            Hide
            dnusbaum Devin Nusbaum added a comment -

            Released in 2.47. See the changelog.

            Show
            dnusbaum Devin Nusbaum added a comment - Released in 2.47. See the changelog .
            Hide
            duemir Denys Digtiar added a comment -

            Merged and ready for release.

            Show
            duemir Denys Digtiar added a comment - Merged and ready for release.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Owen Wood
            Path:
            src/main/java/com/cloudbees/jenkins/support/impl/RootCAs.java
            src/test/java/com/cloudbees/jenkins/support/impl/RootCAsTest.java
            http://jenkins-ci.org/commit/support-core-plugin/7dff4755c4698035810de3ad4139f8ae49603d62
            Log:
            Merge pull request #139 from duemir/JENKINS-49668

            JENKINS-49668 - Root CAs component is fixed.

            Compare: https://github.com/jenkinsci/support-core-plugin/compare/bc37791ee0b2...7dff4755c469

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Owen Wood Path: src/main/java/com/cloudbees/jenkins/support/impl/RootCAs.java src/test/java/com/cloudbees/jenkins/support/impl/RootCAsTest.java http://jenkins-ci.org/commit/support-core-plugin/7dff4755c4698035810de3ad4139f8ae49603d62 Log: Merge pull request #139 from duemir/ JENKINS-49668 JENKINS-49668 - Root CAs component is fixed. Compare: https://github.com/jenkinsci/support-core-plugin/compare/bc37791ee0b2...7dff4755c469
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Denys Digtiar
            Path:
            src/main/java/com/cloudbees/jenkins/support/impl/RootCAs.java
            src/test/java/com/cloudbees/jenkins/support/impl/RootCAsTest.java
            http://jenkins-ci.org/commit/support-core-plugin/2266af7e2a58b7394901ae6bfe3f7055a987b4b8
            Log:
            JENKINS-49668 - Root CAs component is fixed.

            Links below provide some explanation example as to how to get the actual
            trust store for inspection. They were used to replace the current broken
            code which simply tries to enumerate empty KeyStore.

            https://github.com/jenkinsci/jenkins-scripts/pull/82/files
            https://stackoverflow.com/questions/8884831/listing-certificates-in-jvm-trust-store

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Denys Digtiar Path: src/main/java/com/cloudbees/jenkins/support/impl/RootCAs.java src/test/java/com/cloudbees/jenkins/support/impl/RootCAsTest.java http://jenkins-ci.org/commit/support-core-plugin/2266af7e2a58b7394901ae6bfe3f7055a987b4b8 Log: JENKINS-49668 - Root CAs component is fixed. Links below provide some explanation example as to how to get the actual trust store for inspection. They were used to replace the current broken code which simply tries to enumerate empty KeyStore. https://github.com/jenkinsci/jenkins-scripts/pull/82/files https://stackoverflow.com/questions/8884831/listing-certificates-in-jvm-trust-store

              People

              • Assignee:
                duemir Denys Digtiar
                Reporter:
                duemir Denys Digtiar
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: