Please be advised that this website will become read-only on December 09, 2016 and will be shut down soon after.
      Please use https://tracker.adobe.com, going forward.
More...If you are searching in Tracker for old issues created through bugbase, you can search by the <project_key>-<old bugbase number>.
<project_key> is mapped as:
 
ColdFusion        : CF     
Framemaker        : FRMAKER
RoboHelp          : RH     
Adobe AIR         : AIR    
Adobe Flash Player: FP     
Less...

ColdFusion 9.0  -  Bug 3041696

Created on Tuesday, June 22, 2010

Login for more options

Title

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

Description

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:

Test Configuration

06/22/2010

App Language(s) English
OS Language(s) English
Platform(s) Platforms All
Browser(s)

Notes (2)

  • Aaron Neff

    1:54:28 AM GMT+00:00 Sep 30, 2015

    I wish all deferred bugs became auto-fixed =P

    -Aaron

  • Adam Cameron

    9:25:53 AM GMT+00:00 Sep 29, 2015

    FYI - *thanks for nothing* in the context of CF9 btw - but this is no longer an issue on CF11.

Duplicate ID
Reported By Adam Cameron

Status

State Closed
Status Deferred
Reason NotEnoughTime

Importance

Priority 1-Low
Frequency Unknown
Failure Type Unspecified
Product Area Language

Build

Found In Build 0000
Fixed In Build

Attachments (0)

No Files Attached

Votes (0)

Your session has expired! Click to login
Current form data will be preserved

Cancel