Unable to manually call invalid event method without producing error

Description

Commit #b5ce9e5 introduced a regression which disallows the ability to call the same handler/action defined as the `onInvalidEvent` or `invalidEventHandler`

https://github.com/ColdBox/coldbox-platform/commit/b5ce9e56cc98a4be37c76d32c3ba93abb053a365#diff-3c02ba1d68db0b42c5c04835823e902aR375

This param of:



Means that you no longer have the ability to call the invalid event handler as a 404 response, if that 404 is defined as the invalid event. As such, a new method must be created with the same code and all 404 responses directed to it, or the following code is triggered:




Suggest re-param-ing `request._lastInvalidEvent` to an empty string

Activity

Show:
Luis Majano
August 3, 2020, 7:32 PM

I believe this is fixed now.

Assignee

Luis Majano

Reporter

Jon Clausen

Labels

None

Fix versions

Affects versions

Priority

Major
Configure