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

ScmContainer improperly assumes request context for @Extension instantiation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • None

      https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/scm/ScmContainer.java is a class annotated with @Extension and calls Stapler#getCurrentRequest in the parameter-less constructor that will be called by extension lookup.

      It is an incorrect assumption that extension lookup (and therefore instantiation of annotated types) only happens during HTTP requests.

            Unassigned Unassigned
            danielbeck Daniel Beck
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: