tracker issue : CF-4198354

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

[ANeff] Bug for: abort in callback triggers onError() instead of onAbort()

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff ()

Created: 02/22/2017

Components: Language, Application Framework, ApplicationCFC

Versions: 2016,11.0

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2016.0.01.298513 / 308252

Priority/Frequency: Normal / Very few users will encounter

Locale/System: / Win All

Vote Count: 0

abort in callback triggers onError() instead of onAbort()

Repro:

component {
	THIS.name = "callbackabort";
	//void function onRequest() {abort;}//displays "onAbort()" (good)
	void function onRequest() {replace("a", "a", function() {abort;}, "all");}//displays "onError()" (bad)
	void function onError() {writeOutput("onError()");}
	void function onAbort() {writeOutput("onAbort()");}
}

Actual result: "onError()"

Expected result: "onAbort()"

Attachments:

Comments:

Of course the expected behavior should also apply to replaceNoCase()'s callback. Please verify? Thanks!, -Aaron
Comment by Aaron N.
1165 | March 30, 2017 01:43:41 AM GMT