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)
)
}
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
- duplicates
-
JENKINS-14827 Cannot use /usr/bin/[ as a shell script step: wrapped in "..." after save
-
- Resolved
-
[JENKINS-17174] Javascript proxy failes when sending html/xml formated messages
Environment | Original: tested on Ubuntu 12.04 and Windows 7 both using debuging in maven and tomcat | New: Jenkins 1.480.3 tested on Ubuntu 12.04 and Windows 7 both using debuging in maven and tomcat |
Fix Version/s | New: current [ 10162 ] | |
Description |
Original:
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 (not XML) 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 |
New:
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 |
Priority | Original: Blocker [ 1 ] | New: Major [ 3 ] |
Link |
New:
This issue duplicates |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 148006 ] | New: JNJira + In-Review [ 192676 ] |
Seems to have been fixed in 1.506, presumably by json-lib upgrade.