tracker issue : CF-4183886

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

[regression] onError() not called from onSessionEnd() if there is an exception thrown in onSessionEnd

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Suchika Singh)

Created: 08/25/2016

Components: Language

Versions: 2016

Failure Type:

Found In Build/Fixed In Build: 2016.0.03.299981 /

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Linux All,Mac 10 All,Solaris All,Win XP All

Vote Count: 0

Listed in the version 2016.0.03.300466 Issues Fixed doc
Problem:
onError() not called from onSessionEnd() if there is an exception thrown in onSessionEnd
Method:
Run the following code:
<!--- Application.cfc --->
<cfcomponent> 
<cfset This.name = "TestApplication"> 
<cfset This.Sessionmanagement=true> 
<cfset This.Sessiontimeout="#createtimespan(0,0,0,15)#"> 

  <cffunction name="onSessionStart"> 
    <cflog file="#This.Name#" type="Information" text="Session: 
        #Session.sessionid# started"> 
</cffunction> 
 
<cffunction name="onSessionEnd"> 
    <cfargument name = "SessionScope" required=true/> 
        <cfdump var=#na#>
	<cflog file="#This.Name#" type="Information" text="Session: 
            #arguments.SessionScope.sessionid# ended"> 
</cffunction> 
 
<cffunction name="onError"> 
    <cfargument name="Exception" required=true/> 
    <cfargument type="String" name = "EventName" required=true/> 
    <!--- Log all errors. ---> 
    <cflog file="#This.Name#" type="error" text="Event Name: #Eventname#"> 
    <cflog file="#This.Name#" type="error" text="Message: #exception.message#"> 
   </cffunction> 
 
</cfcomponent>

<!-- index.cfm -->
<cfoutput>Do nothing </cfoutput>
Result:
onError Method is not called 

Expected:
onError method should be called

This works in CF11.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4183886

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments: