In this case, all function attributes are ignored for interceptors in Coldbox. As such, the restricted preEvent fires on every request.
Metadata dump example below:
Attachments
2
Activity
Show:
Brad WoodJanuary 11, 2025 at 8:09 PM
This was a bug in the parser, mistakenly associating the eventpattern function annotation with the event parameter because they both started with the word event.
Jon ClausenJanuary 11, 2025 at 7:19 PM
Here is a screenshot of a metdata dump of the same component on Lucee
Fixed
Pinned fields
Click on the next to a field label to start pinning.
Coldbox, for example, relies on these attributes being first class struct keys of the function metadata. In Boxlang, they are nested in the
parameters
struct.In this case, all function attributes are ignored for interceptors in Coldbox. As such, the restricted
preEvent
fires on every request.Metadata dump example below: