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

Configuration page parameter subset non-functional with Chrome

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • core
    • None
    • Jenkins 2.73.3 (and 2.73.2) on Win 7 Pro 64-bit
      Java jdk1.8.0_131 64-bit
      Chrome 62.0.3202.94 (Official Build) (64-bit)
      No reverse proxy or containers used.
      HTTP access.

      The issue was noticed after upgrade to 2.73.3, but may have coincided with rollout of update of Chrome. Jenkins was downgraded to 2.73.2 without improvement.

      Two possibly related symptoms:

      1. The reverse proxy config warning is triggered, although no host or Jenkins config changes have been made. This warning clears on reload, returns on hard reload.
      2. Certain job parameter panes cannot be added to the job configuration. It appears to be built-in ones, not ones related to plugins.

      Both symptoms appear in Chrome, but are not apparent in Internet Explorer or Firefox.

      Symptom 1: Chrome console reports:

      prototype.js:1585 GET http://myhostname:8082/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test net::ERR_TOO_MANY_REDIRECTS

      The network monitor indicates that the connection was stalled.

      Symptom 2: Creating a new free-style job and attempting to add parameters from the drop-down, some can be added, some cannot. This also applies to adding parameters to an existing job.

      For an existing job:

      On page load there are some messages in the Chrome console of form:

      Failed to load resource: the server responded with a status of 404 (Not Found)
      :8082/$stapler/bound/bbfa1e6c-461f-4a73-9623-5620c7e326ca/render Failed to load resource: the server responded with a status of 404 (Not Found)
      :8082/$stapler/bound/7345c7a2-42ea-4951-add2-4f15e09a37f3/render Failed to load resource: the server responded with a status of 404 (Not Found).

      Adding a Boolean parameter fails:

      prototype.js:1585 GET http://myhostname:8082/$stapler/bound/d3dea35c-4ef9-4c07-897c-17520ede0f8a/render 404 (Not Found)

      Saving a job after adding a faulty parameter type leads to a stack trace:

      java.lang.NullPointerException: ParameterDefinitions is null when this is a not valid value at hudson.model.ParametersDefinitionProperty.<init>(ParametersDefinitionProperty.java:75) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:529) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:783) at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at hudson.model.Descriptor.newInstance(Descriptor.java:592) Caused: java.lang.Error: Failed to instantiate class hudson.model.ParametersDefinitionProperty from {"specified":true} at hudson.model.Descriptor.newInstance(Descriptor.java:600) at hudson.model.JobPropertyDescriptor.newInstance(JobPropertyDescriptor.java:72) at jenkins.model.OptionalJobProperty$OptionalJobPropertyDescriptor.newInstance(OptionalJobProperty.java:56) at hudson.model.ParametersDefinitionProperty$DescriptorImpl.newInstance(ParametersDefinitionProperty.java:226) at hudson.model.ParametersDefinitionProperty$DescriptorImpl.newInstance(ParametersDefinitionProperty.java:221) at hudson.model.JobProperty.reconfigure(JobProperty.java:187) at hudson.model.JobProperty.reconfigure(JobProperty.java:79) at hudson.util.DescribableList.rebuild(DescribableList.java:175) at hudson.model.Job.doConfigSubmit(Job.java:1305) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:771) at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343) at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:52) at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715) Caused: javax.servlet.ServletException

      The following parameter types can not be added:

      • Boolean
      • Choice
      • File
      • Label
      • Node
      • Run
      • String

       This also appears to affect the addition of a subset of build steps:

      • Buildout builder
      • Create/Update text file
      • Custom Python Build
      • Execute Windows Batch
      • Execute Shell
      • Export parameters to file

      And post-build steps:

      • Build other projects
      • Post build task
      • Publish TAP Results
      • Email Notification
      • Send console log to Logstash
      • Delete workspace when build is done

       

            Unassigned Unassigned
            davidgumbrell David Gumbrell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: