tracker issue : CF-3041696

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 83423:(Watson Migration Closure)Summary: getPageContext()

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/LowImpact

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 06/22/2010

Components: Language, Tags

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:

FYI - *thanks for nothing* in the context of CF9 btw - but this is no longer an issue on CF11.
Comment by External U.
21982 | September 29, 2015 10:55:53 AM GMT
I wish all deferred bugs became auto-fixed =P -Aaron
Comment by External U.
21983 | September 30, 2015 03:24:28 AM GMT