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

            Hide
            jglick Jesse Glick added a comment -

            Regression from @ndeloof.

            Show
            jglick Jesse Glick added a comment - Regression from @ndeloof.

              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: