ScmContainer improperly assumes request context for @Extension instantiation

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Unassigned
            Reporter:
            Daniel Beck
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: