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

checkJobName api always return an extra blank line in response body: " <div/>"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • jobgenerator-plugin
    • None
    • Linux 2.6.32-220.23.2.ali927.el5.x86_64 x86_64
      Jenkins ver. 2.112

      on create job page, when typing in the job name text box, Jenkins call checkJobName api to check the item name, but this api always return an extra blank line in response body: "  <div/>"

      It caused the UI disable the submit button and I could never create a job. Please see the screenshot attached.

       

      An example of the checkJobName api call and response:
      Request URL:
      http://myjenkins.com/view/all/checkJobName?value=dfd
      Response:

      HTTP/1.1 200 OK Date: Thu, 22 Mar 2018 02:33:27 GMT Content-Type: text/html;charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Vary: Accept-Encoding X-Content-Type-Options: nosniff Server: Tengine/Aserver Strict-Transport-Security: max-age=0 Timing-Allow-Origin: * EagleEye-TraceId: 0a67792f15216860072187973e2e7b RequestUri: jenkins.qa.umeng.com/view/all/checkJobName RequestApp: jenkins.qa.umeng.com Content-Encoding: gzip

       
      <div/>

          [JENKINS-50330] checkJobName api always return an extra blank line in response body: " <div/>"

          pan xu created issue -
          pan xu made changes -
          Attachment New: jenkinsbug.png [ 41919 ]
          Description Original: on create job page, when typing in the job name text box, Jenkins call checkJobName api to check the item name, but this api always return an Incomplete response body : "  <div/>".

          It caused the UI disable the submit button and I could never create a job.

           

          An example of the checkJobName api call and response:
          Request URL:
          http://myjenkins.com/view/all/checkJobName?value=dfd
          Response:

          HTTP/1.1 200 OK Date: Thu, 22 Mar 2018 02:33:27 GMT Content-Type: text/html;charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Vary: Accept-Encoding X-Content-Type-Options: nosniff Server: Tengine/Aserver Strict-Transport-Security: max-age=0 Timing-Allow-Origin: * EagleEye-TraceId: 0a67792f15216860072187973e2e7b RequestUri: jenkins.qa.umeng.com/view/all/checkJobName RequestApp: jenkins.qa.umeng.com Content-Encoding: gzip


          <div/>

           
          New: on create job page, when typing in the job name text box, Jenkins call checkJobName api to check the item name, but this api always return an extra blank line in response body: "  <div/>"

          It caused the UI disable the submit button and I could never create a job. Please see the screenshot attached.

           

          An example of the checkJobName api call and response:
           Request URL:
           [http://myjenkins.com/view/all/checkJobName?value=dfd]
           Response:

          HTTP/1.1 200 OK Date: Thu, 22 Mar 2018 02:33:27 GMT Content-Type: text/html;charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Vary: Accept-Encoding X-Content-Type-Options: nosniff Server: Tengine/Aserver Strict-Transport-Security: max-age=0 Timing-Allow-Origin: * EagleEye-TraceId: 0a67792f15216860072187973e2e7b RequestUri: jenkins.qa.umeng.com/view/all/checkJobName RequestApp: jenkins.qa.umeng.com Content-Encoding: gzip

           
          <div/>
          Summary Original: checkJobName api always return Incomplete body: " <div/>" New: checkJobName api always return an extra blank line in response body: " <div/>"
          pan xu made changes -
          Attachment Original: jenkinsbug.png [ 41918 ]
          Dalibor Plavcic made changes -
          Assignee New: Dalibor Plavcic [ dplavcic ]
          Dalibor Plavcic made changes -
          Attachment New: jenkinsbug_select_item_from_the_list.png [ 43467 ]
          Dalibor Plavcic made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Dalibor Plavcic made changes -
          Priority Original: Blocker [ 1 ] New: Minor [ 4 ]
          Dalibor Plavcic made changes -
          Issue Type Original: Bug [ 1 ] New: Improvement [ 4 ]
          pan xu made changes -
          Attachment New: selectItemfirst.png [ 45151 ]
          A Z made changes -
          Issue Type Original: Improvement [ 4 ] New: Bug [ 1 ]
          A Z made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]

            dplavcic Dalibor Plavcic
            xpblack pan xu
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: