Status/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 06/22/2010
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Minor / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Problem:
Summary: getPageContext().getResponse().setHeader() change in behaviour between CF8 & CF9In CF8, the code below yields one HTTP "expires" header:<cfset getPageContext().getResponse().setHeader("expires", javaCast("String", "#dateAdd(’s’, 10, now())#"))><cfset getPageContext().getResponse().setHeader("expires", javaCast("String", "#dateAdd(’n’, 10, now())#"))><cfset getPageContext().getResponse().setHeader("expires", javaCast("String", "#dateAdd(’h’, 10, now())#"))>And in CF9 it yields three.-- Adam
Method:
ksaini: repo case:
Run this code with jmeter and see Response header.
<cfheader name="foo" value="1">
<cfset getPageContext().getResponse().setHeader("expires", javaCast("String", "#dateAdd('s', 10, now())#"))>
<cfset getPageContext().getResponse().setHeader("expires", javaCast("String", "#dateAdd('n', 10, now())#"))>
<cfset getPageContext().getResponse().setHeader("expires", javaCast("String", "#dateAdd('h', 10, now())#"))>
<cfdump var="#getPageContext().getResponse()#">
<cfset response = getPageContext().getResponse()>
<cfif response.containsHeader("foo")>
yes
<cfelse>
no
</cfif>
<p>
<cfif response.containsHeader("expire")>
yes
<cfelse>
no
</cfif>
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041696
External Customer Info:
External Company:
External Customer Name: Adam Cameron
External Customer Email: 17EB1A7649DA54C7992015A9
External Test Config: 06/22/2010
Attachments:
Comments: