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

Javascript proxy failes when sending html/xml formated messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • Jenkins 1.480.3 tested on Ubuntu 12.04 and Windows 7 both using debuging in maven and tomcat

      In Jenkins 1.480.3 we can no longer send HTML or XML formated texts using JavaScript Proxy. It works in 1.466 and for HTML and partly in 1.480.1.

      function broken()
      {
      var promote = <st:bind value="${it}"/>
      document.getElementById('result').innerHTML="";
      promote.doStuff(function(t)

      { document.getElementById('result').innerHTML= t.responseObject(); }

      )
      }
      In this case the function(t) code will not be executed if the method returns code with HTML or XML tags.

      I made a small example plugin https://github.com/hanabishi/js-breaker

            Unassigned Unassigned
            hanabishi Marcus Jacobsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: