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

            jglick Jesse Glick created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue is blocking SECURITY-86 [ SECURITY-86 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking SECURITY-86 [ SECURITY-86 ]
            jglick Jesse Glick made changes -
            Link This issue duplicates JENKINS-19852 [ JENKINS-19852 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 154680 ] JNJira + In-Review [ 194988 ]

              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: