Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Brian Ghidinelli / Brian Ghidinelli (Brian Ghidinelli)
Created: 01/05/2015
Components: Core Runtime
Versions: 10.0
Failure Type: Crash
Found In Build/Fixed In Build: Final / CF11 Update5,CF10 Update16
Priority/Frequency: Critical / Most users will encounter
Locale/System: English / Platforms All
Vote Count: 0
Problem Description:
In Application.cfc for the last several years on CF8 and CF10, we have this line in the implicit init (e.g., outside of any functions):
<cfif structKeyExists(cookie, "cfid")>
<cfset structDelete(cookie, "cfid", false) />
<cfset structDelete(cookie, "cftoken", false)>
</cfif>
Upon installing U15, this now results in a NullPointerException.
I was told about the option in the CFAdmin to disable modification of the internal CF cookies. On one server, it was already allowed but still I received NPEs. On another server I updated last night, it was prohibited. I changed the setting but I'm still getting NPEs.
This doesn't seem to happen to all users. I was able to load the page while another user was not (and i could see the stack traces in exception.log as she loaded the page). But, on my development laptop, it happens to me every single time and I'm the only user.
Steps to Reproduce:
Create an application.cfc with the above code before any functions are defined. Load a page.
We've seen it in multiple browsers/platforms (Safari/Mac, Chrome and FF/Windows).
Actual Result:
NullPointerException (which, btw, does not trigger the CF Default error page so we don't get notifications or anything else when this happens..)
Expected Result:
It should delete the cookie like it used to and not throw an error.
Any Workarounds:
Removing the above code.
Stack trace:
"Error","ajp-bio-8016-exec-148","01/05/15","17:21:38",,"'' The specific sequence of files included or processed is: /var/www/pukka/main-prod1/index.cfm, line: 29 "
java.lang.NullPointerException
at coldfusion.runtime.CFCookie.validateIfSessionCookie(CFCookie.java:143)
at coldfusion.runtime.CFCookie.<init>(CFCookie.java:81)
at coldfusion.runtime.CookieScope.unbindName(CookieScope.java:521)
at coldfusion.runtime.Scope.remove(Scope.java:93)
at coldfusion.runtime.Struct.StructDelete(Struct.java:279)
at coldfusion.runtime.CFPage.StructDelete(CFPage.java:3989)
at cfApplication2ecfc1652703925.runPage(/var/www/pukka/main-prod1/Application.cfc:29)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3916188
External Customer Info:
External Company:
External Customer Name: brianatvfive
External Customer Email:
External Test Config: My Hardware and Environment details:
Happens on Windows and RHEL with JVMs 1.7.0u65 and u71 with CF10 U15
Attachments:
Comments: