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

NPE from EnvInjectJobProperty.reconfigure when lacking RUN_SCRIPTS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • envinject-plugin
    • None

      If you are a user lacking RUN_SCRIPTS permission, and have an EnvInjectJobProperty configured on a job, then unselect this option and try to resave the job, you get

      java.lang.NullPointerException
      	org.jenkinsci.plugins.envinject.EnvInjectJobProperty.reconfigure(EnvInjectJobProperty.java:127)
      	org.jenkinsci.plugins.envinject.EnvInjectJobProperty.reconfigure(EnvInjectJobProperty.java:25)
      	hudson.util.DescribableList.rebuild(DescribableList.java:171)
      	hudson.model.Job.doConfigSubmit(Job.java:1131)
      	hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:787)
      

      presumably since property == null.

            gbois Gregory Boissinot
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: