So, at MAX I spoke about how cflocation and cfabort could fire the onError method in your Application.cfc error. I could have sworn this was all fixed up in 7.0.1, however, I'm seeing it fire again when I use code like so in my onRequestStart:
<cfif findNoCase("/admin/", arguments.thePage)>
<cfif not isAuthenticated()>
<cfinclude template="/#application.mapping#/wwwroot/admin/login.cfm">
<cfabort>
</cfif>
</cfif>
Now, obviously I can use the same hacks as before, but it looks like I need to file a new bug report.
Archived Comments
I'm pretty sure that Dean confirmed this bug with me also. I have an existing bug opened that Dean has examined. See if you can pull it up and vote for it. Let me know if you want me to hunt down my notes and bug #.
In some cases you can use CFEXIT to achive the same result without the error being logged (at least in 7.0;)
Jedi Master -
Please helpe me out. I am struck with a problem of creating event-beans in mach-ii framework. my form contains a cfloop which creates duplicate form fields and if any error popsout then how to validate and show the error with line and field highlighted to the user? Your expert advice is appreciated.
Need a quick resolution for a project...help please.
Sorry, I don't use MachII. Have you tried the MachII listserv?
in the "hacks" article you have this:
extends="test.Application">
what is Test ?
Test was the root folder.
doh! gotcha. thanks