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

incompatability between FormSubmission and HTMLUnit post Jenkins 2.289

      Several plugins have failing tests when using new versions of core (e.g. `mvn test -Djenkins.version=2.289`) and they seem to follow a simiular pattern

      calling HTMLUnit's `click` to submit a form is resulting in Jenkins erroring with something like

        15.170 [id=94]        WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://localhost:64686/jenkins/job/testFolder/support/generateAndDownload
      net.sf.json.JSONException: A JSONObject text must begin with '{' at character 1 of init
              at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:499)
              at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:919)
      ...
      

      which subsequently causes the test to fail.

      On the surface this appears to be an incompatability between HTMLUnit and Jenkins bumping to the latest HTMLUnit seemed to make no difference.

      So far observed the issue in

      • support-core
      • ldap
      • ssh-slaves
      • pipeline-input-step

          [JENKINS-65585] incompatability between FormSubmission and HTMLUnit post Jenkins 2.289

          James Nord created issue -
          James Nord made changes -
          Description Original: Several plugins have failing tests when using new versions of core (e.g. `mvn test -Djenkins.version=2.289`) and they seem to follow a simiular pattern

          calling HTMLUnit's `click` to submit a form is resulting in Jenkins erroring with something like

          {noformat}
            15.170 [id=94] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://localhost:64686/jenkins/job/testFolder/support/generateAndDownload
          net.sf.json.JSONException: A JSONObject text must begin with '{' at character 1 of init
                  at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:499)
                  at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:919)
          ...
          {noformat}

          which subsequently causes the test to fail.

          On the surface this appears to be an incompatability between HTMLUnit and Jenkins bumping to the latest HTMLUnit seemed to make no difference.

          So far observed the issue in
          * support-core
          * ldap
          New: Several plugins have failing tests when using new versions of core (e.g. `mvn test -Djenkins.version=2.289`) and they seem to follow a simiular pattern

          calling HTMLUnit's `click` to submit a form is resulting in Jenkins erroring with something like

          {noformat}
            15.170 [id=94] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://localhost:64686/jenkins/job/testFolder/support/generateAndDownload
          net.sf.json.JSONException: A JSONObject text must begin with '{' at character 1 of init
                  at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:499)
                  at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:919)
          ...
          {noformat}

          which subsequently causes the test to fail.

          On the surface this appears to be an incompatability between HTMLUnit and Jenkins bumping to the latest HTMLUnit seemed to make no difference.

          So far observed the issue in
          * support-core
          * ldap
          * ssh-slaves
          Raihaan Shouhell made changes -
          Summary Original: incompatability between FormSubmission and HTMLUnit post Jenksin 2.289 New: incompatability between FormSubmission and HTMLUnit post Jenkins 2.289
          James Nord made changes -
          Description Original: Several plugins have failing tests when using new versions of core (e.g. `mvn test -Djenkins.version=2.289`) and they seem to follow a simiular pattern

          calling HTMLUnit's `click` to submit a form is resulting in Jenkins erroring with something like

          {noformat}
            15.170 [id=94] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://localhost:64686/jenkins/job/testFolder/support/generateAndDownload
          net.sf.json.JSONException: A JSONObject text must begin with '{' at character 1 of init
                  at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:499)
                  at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:919)
          ...
          {noformat}

          which subsequently causes the test to fail.

          On the surface this appears to be an incompatability between HTMLUnit and Jenkins bumping to the latest HTMLUnit seemed to make no difference.

          So far observed the issue in
          * support-core
          * ldap
          * ssh-slaves
          New: Several plugins have failing tests when using new versions of core (e.g. `mvn test -Djenkins.version=2.289`) and they seem to follow a simiular pattern

          calling HTMLUnit's `click` to submit a form is resulting in Jenkins erroring with something like

          {noformat}
            15.170 [id=94] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving http://localhost:64686/jenkins/job/testFolder/support/generateAndDownload
          net.sf.json.JSONException: A JSONObject text must begin with '{' at character 1 of init
                  at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:499)
                  at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:919)
          ...
          {noformat}

          which subsequently causes the test to fail.

          On the surface this appears to be an incompatability between HTMLUnit and Jenkins bumping to the latest HTMLUnit seemed to make no difference.

          So far observed the issue in
          * support-core
          * ldap
          * ssh-slaves
          * pipeline-input-step
          James Nord made changes -
          Link New: This issue is caused by JENKINS-53462 [ JENKINS-53462 ]
          Thomas de Grenier de Latour made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Thomas de Grenier de Latour made changes -
          Labels New: lts-candidate
          Thomas de Grenier de Latour made changes -
          Released As New: https://github.com/jenkinsci/jenkins/releases/tag/jenkins-2.296
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]
          Tim Jacomb made changes -
          Labels Original: lts-candidate New: 2.289.2-fixed lts-candidate
          Tim Jacomb made changes -
          Labels Original: 2.289.2-fixed lts-candidate New: 2.289.2-fixed

            Unassigned Unassigned
            teilo James Nord
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: