Posted in ColdFusion | Posted on 09-28-2005 | 5,412 views
I double checked the release notes and didn't see a mention of this - but two nice bug fixes are in ColdFusion 7.0.1 that relate to Application.cfc.
First - remember the bug where cflocation calls would run onError? That is fixed.
The second bug involved onSessionEnd. If you did not specify a specific session timeout value and relied on the default in the ColdFusion Admin, the onSessionEnd event would never fire. This has been fixed as well.


cffile action="upload" destination="c:\temp\test.jpg"
CF creates a directory named test.jpg and then puts your file in it, so it winds up at c:\temp\test.jpg\test.jpg.
:(
just my 2 cents.
Before the updater I had a gridcol with both dates and text (the query that populated the grid would return "exhausted" if the date was less than today, or "greater than 5 years" if applicable - or simply a date in the mm/dd/yyyy format). In my cfgridcolumn I added type="date" and everything worked out perfect - the dates sorted correctly and the text items were grouped accordingly. After the updater, any non-date text items are turned into blank cells in the grid. Removing type=date returns the text and the dates to the column, but doesn't sort correctly. What gives?
Also - where is the Ask a jedi box and all the other links, etc on your site? They're gone!?
Would my issue be considered a bug since it is a change in functionality that produces an undesired result? After all, it worked before the updater...
If so, how do I report that?
Do not forget that you MUST cfinclude the file or it will not load. If you ONLY have a cflocation in onRequest, you will not see anything.
<!--- ************************** Application.cfc ************************** --->
<cfcomponent output="false">
<cfscript>
this.name="Debug_CFLOCATION";
this.sessionManagement=true;
this.applicationTimeout=createtimespan(2,0,0,0);
this.sessionTimeout=createtimespan(0,0,30,0);
</cfscript>
<cffunction name="onApplicationStart" returntype="void" output="false">
</cffunction>
<cffunction name="onSessionStart" returntype="void" output="false">
</cffunction>
<cffunction name="onRequestStart" returntype="void" output="false">
</cffunction>
<cffunction name="onRequestEnd" returntype="void" output="false">
</cffunction>
<cffunction name="onSessionEnd">
</cffunction>
<cffunction name="onApplicationEnd" output="false">
</cffunction>
<cffunction name="onError">
<cfargument name="Exception" required="true"/>
<cfargument type="String" name = "EventName" required="true"/>
<cfswitch expression="#arguments.exception.rootcause.type#">
<cfcase value="coldfusion.runtime.AbortException">
<cfreturn/>
</cfcase>
<cfdefaultcase>
<cfdump var="#exception#"/>
</cfdefaultcase>
</cfswitch>
</cffunction>
</cfcomponent>
<!--- ************************** Index.cfm ************************** --->
<cfparam name="form.submit" default=""/>
<cfparam name="url.logoff" default="0"/>
<cfif len(form.submit)>
<cfset session.user = form.user/>
<cflocation url="index.cfm" addtoken="no"/>
<cfelseif url.logoff>
<cfscript>
structDelete(session,"user");
StructClear(session);
</cfscript>
<cflocation url="index.cfm" addtoken="no"/>
</cfif>
<cfif IsDefined("session.user") and len(session.user)>
User <cfoutput><b>#session.user#</b></cfoutput> logged in<br />
<a href="index.cfm?logoff=1">Log Off</a>
<cfelse>
<cfform action="index.cfm" method="post" name="frmLogin">
User Name:<input type="text" size="12" name="user"/> <input type="submit" name="submit" value="Log In"/>
</cfform>
</cfif>
http://www.macromedia.com/cfusion/knowledgebase/in...
[Add Comment] [Subscribe to Comments]