Daniel Mejia
07/28/2022, 10:33 PM2022-07-28 15:12:27 coldbox.system.web.services.HandlerService The invalidEventHandler event (Error.onInvalidEvent) is also invalid: | ExtraInfo: {"ROUTE":"","CALLSTACK":[{"Template":"E:\\sites\\api\\coldbox\\system\\web\\services\\HandlerService.cfc","LineNumber":"470","Function":"INVALIDEVENT"},{"Template":"E:\\sites\\api\\coldbox\\system\\web\\services\\HandlerService.cfc","LineNumber":"333","Function":"GETHANDLERBEAN"},{"Template":"E:\\sites\\api\\coldbox\\system\\web\\Controller.cfc","LineNumber":"753","Function":"_RUNEVENT"},{"Template":"E:\\sites\\api\\coldbox\\system\\web\\Controller.cfc","LineNumber":"658","Function":"RUNEVENT"},{"Template":"E:\\sites\\api\\coldbox\\system\\Bootstrap.cfc","LineNumber":"290","Function":"PROCESSCOLDBOXREQUEST"},{"Template":"E:\\sites\\api\\coldbox\\system\\Bootstrap.cfc","LineNumber":"507","Function":"ONREQUESTSTART"},{"Template":"E:\\sites\\api\\Application.cfc","LineNumber":"42","Function":"ONREQUESTSTART"}],"FULLEVENT":".","REQUESTEVENT":"","ROUTEDURL":"","REGISTEREDHANDLERS":"customRestHandler,Error,Main","EVENT":""}
Daniel Mejia
07/28/2022, 10:33 PMDaniel Mejia
07/28/2022, 10:37 PMbdw429s
07/28/2022, 10:56 PMbdw429s
07/28/2022, 10:56 PM<http://site.com/foo/bar|site.com/foo/bar>
bdw429s
07/28/2022, 10:57 PM.
Scott Steinbeck
07/28/2022, 10:57 PMbdw429s
07/28/2022, 10:57 PM<http://site.com/index.cfm?event=|site.com/index.cfm?event=>.
bdw429s
07/28/2022, 10:58 PM<http://site.com/index.cfm?event=Error.onInvalidEvent|site.com/index.cfm?event=Error.onInvalidEvent>
Daniel Mejia
07/28/2022, 11:05 PM.com/index.cfm?event=Error.onInvalidEvent
result:
coldfusion.runtime.UndefinedElementException: Element INVALIDEVENT is undefined in PRC.
at coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:2862)
at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:2778)
at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:3074)
at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:3064)
at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:3025)
at cfError2ecfc1777516260$funcONINVALIDEVENT.runFunction(E:\sites\apistaging1\handlers\Error.cfc:19)
Daniel Mejia
07/28/2022, 11:06 PMDaniel Mejia
07/28/2022, 11:06 PMfunction onInvalidEvent(event,rc,prc){
prc.results = {};
prc.results["status"] = "FAIL";
prc.results["detail"] = prc.invalidEvent;
prc.results["message"] = "Invalid Event";
prc.results["data"] = rc;
event.renderData( data=prc.results, type='json', statusCode=404 );
}
Daniel Mejia
07/28/2022, 11:09 PMbdw429s
07/28/2022, 11:15 PMbdw429s
07/28/2022, 11:15 PMbdw429s
07/28/2022, 11:15 PMbdw429s
07/28/2022, 11:15 PMbdw429s
07/28/2022, 11:15 PMbdw429s
07/28/2022, 11:16 PMDaniel Mejia
07/28/2022, 11:39 PMDaniel Mejia
07/28/2022, 11:53 PM.com/index.cfm?event=some.invalidevent
something like this actual outputs the json I expect with the prc.invalidEvent value of 'some.invalidevent'.Daniel Mejia
07/28/2022, 11:54 PM.com/some/invalidevent
outputs 'some.invalidEvent' for prc.invalidEvent.bdw429s
07/29/2022, 1:04 AMbdw429s
07/29/2022, 1:05 AMFULLEVENT":"."
but I don't now if that means an actual period was sent in or if that was just the output of #handler#.#action#
where everything was an empty stringbdw429s
07/29/2022, 1:06 AM