Our app outputs reports in different formats - HTML, PDF, and TXT. I noticed a strange behavior recently.
In some cases the output looks like this.
Hey There
For the life of me I can’t figure this out. This is code that has worked for years.
The above output is from simplified XSLT that just hardcodes the string “Hey There”. That’s what I would expect to see in the browser.
Here is the CFM that outputs the text.
<CFSET reportOutput = javaObject.getText()> <!--- Runs an XSLT transform using Xalan. --->
<CFHEADER NAME=Content-Disposition>
<CFCONTENT TYPE=text/plain;charset=ISO-8859-1 RESET=YES><CFOUTPUT>#reportOutput#</cfoutput>
Here is simplified XSLT:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:text>Hey There</xsl:text>
</xsl:template>
</xsl:stylesheet>
There are two things that I notice between situations where it works and doesn’t. This strange behavior occurs with Windows 2022 Datacenter (not Standard) and Lucee 5.4.6.9. One site has Windows 2022 Standard and Lucee 5.4.3.2 and there is no problem.
Any ideas?
Thanks,
Mike