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

<f:number clazz="positive-number"> broken with extra FormValidation

XMLWordPrintable

    • 2.277

      if your Jelly uses

       <f:number clazz="positive-number" min="1" step="1" default="1"/>
      

      and also has a doCheck method then an initial failure validation is never cleared.

      to reproduce, unpack the provided test project and build it. (this will use a jenkins version prior to table to div)
      start the plugin with `mvn hpi:run` and go to the http://localhost:8080/jenkins/configure page.
      Observe that there is a validation error for the "My Field" in "JENKINS-64429" section.
      Change the value so that it is valid (to 1) and tab out of the field
      Observe that the validation error clears.

      stop the Jenkins process.
      clean the work and target (rm -fr work/ target/)
      build with a newer version of jenkins core (mvn hpi:run -Djenkins.version=2.270) and go to the http://localhost:8080/jenkins/configure page.
      Observe that there is a validation error for the "My Field" in "JENKINS-64429" section.
      Change the value so that it is valid (to 1) and tab out of the field
      Observe that the validation warning does not disappear

            fqueiruga FĂ©lix Queiruga Balado
            teilo James Nord
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: