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

NPE from EnvInjectJobProperty.reconfigure when lacking RUN_SCRIPTS

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: