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

Optional extensions can blow up Jenkins

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:
    • Released As:
      2.212

      Description

      If you have an optional extension (using the variant plugin) that is defining a private static method which has in its signature a type from its optional dependency, then Guice will blow up when attempting to load it, causing every subsequent extensions to fail loading.

      Upon loading a new extension, the ExtensionFinder scans for potential classloading problems but doesn't catch all cases.

      Additionally, I have found that when you load a plugin dynamically, extensions are refreshed before classloader of existing plugins have been updated which lead to having Guice trying to load classes without having the right classloading.

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              Assignee:
              vlatombe Vincent Latombe
              Reporter:
              vlatombe Vincent Latombe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: