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

Text Boxes with certain html elements as text fail form submission

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None
    • 2.319.1 and 2.303.1 on CentOS7 using Chrome

      Since updating the 2.303.1 we have been having an issue with updating one of our freestyle jobs that we just decided to dig into more.

      Anytime the freestyle configuration form is submitted the submit fails with a "This site can’t be reached" error.

      This job executes a python script that builds an HTML page. Currently we are using the "Execute Python Script" option and just pasting the script into the form. 

      Turns out this is what it doesn't like an moving the script into git and just executing it our config form now saves.

      Further playing around has shown me that if I paste this part of our script into pretty much any text box in Jenkins it causes the operation to fail.

      function ReleaseMachine( machine ){$.ajax({url:"ajax.php?reserve=false&name="+machine, success: function(result){}});alert("Machine UnBlock request has been sent to server.. Please wait")}
      

      We are satisfied with the current solution but it seems bad to me that anything placed inside a text box can cause the UI to fail.

      I would guess this has something to do with Jenkins-62437 but have no proof of that thats just about the time it started failing.

            Unassigned Unassigned
            conkers87 Kris Conklin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: