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 ]

          pan xu added a comment -

          compare to another Jenkins server on Mac, the Difference between response body is: the linux server return an extra empty line before the "<div/>", please see the screenshot attached. I update the bug description

          pan xu added a comment - compare to another Jenkins server on Mac, the Difference between response body is: the linux server return an extra empty line before the "<div/>", please see the screenshot attached. I update the bug description

          +1. Did you find any solution for this ? 

          Joachim Hagege added a comment - +1. Did you find any solution for this ? 
          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 added a comment - - edited

          Hi,

          from this screenshot I can't see if you selected any item (FreeStyle Project, Maven, Pipeline...) from the list?

          When we first land on '/view/all/newJob' page no item category is selected (this is the key).

          If we choose existing item name we won't be able to create new project which is ok, but if we choose non existing name we also won't be able to create new project because no item category is selected.

          Preposition:

          1) Add hover selector to OK button to provide user info to select item category.

           

           

          Dalibor Plavcic added a comment - - edited Hi, from this screenshot I can't see if you selected any item (FreeStyle Project, Maven, Pipeline...) from the list? When we first land on '/view/all/newJob' page no item category is selected (this is the key). If we choose existing item name we won't be able to create new project which is ok, but if we choose non existing name we also won't be able to create new project because no item category is selected. Preposition: 1) Add hover selector to OK button to provide user info to select item category.    
          Dalibor Plavcic made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Dalibor Plavcic made changes -
          Priority Original: Blocker [ 1 ] New: Minor [ 4 ]

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

              Created:
              Updated: