CFAbort Still Firing onError

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)>

&lt;cfif not isAuthenticated()&gt;
	&lt;cfinclude template="/#application.mapping#/wwwroot/admin/login.cfm"&gt;
	&lt;cfabort&gt;
&lt;/cfif&gt;

</cfif> </code>

Now, obviously I can use the same hacks as before, but it looks like I need to file a new bug report.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Comments