I have a bug on our site that seems to be related to how CQSE (the Servlet Engine running in Adobe AEM/CQ 5.6.1) outputs something in a JSP.
The use case is just using a .json.jsp to output a JSON object/hash, with some HTML fragments in the JSON values.
Here is an example of a JSP that gives me unexpected results:
<%@include file="/libs/foundation/global.jsp"%><%response.setHeader("Content-Type", "text");%> {"key":"<img src=\"/a/b/c/d/e/f/g/h/i.j.40.40.png\">"}
What I get when I hit the URL on my localhost is:
{"key":"<img src="\">"}
Of course, I tested it in Tomcat to be sure its not some JSP spec thing, and got:
{"key":"<img src=\"/a/b/c/d/e/f/g/h/i.j.40.40.png\">"}
- What is happening?
- What can I do to help provide better information for debugging help? What I do know is that our Maven pom.xml's do not specify specific version numbers (which I think is...bad, right?) and so I imagine something has changed in the past 2 weeks (we know that this was working in production as late as January 8, 2015, but even if I use code from several months back, the issue reproduces).