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

Javascript proxy failes when sending html/xml formated messages

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins 1.480.3 tested on Ubuntu 12.04 and Windows 7 both using debuging in maven and tomcat
    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            Seems to have been fixed in 1.506, presumably by json-lib upgrade.

            Show
            jglick Jesse Glick added a comment - Seems to have been fixed in 1.506, presumably by json-lib upgrade.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: