[ https://issues.apache.org/jira/browse/VELOCITY-915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson resolved VELOCITY-915. ------------------------------------- Resolution: Fixed Fix Version/s: 2.2 Fixed in trunk. The last proposed flag, `event_handler.invalid_references.alternated`, wasn't implemented (since it's a bit too complex to determine if an alternate value has been used at some point in the evaluation of the reference). > Allow invalid reference events for quiet references to improve backward > compatibility > ------------------------------------------------------------------------------------- > > Key: VELOCITY-915 > URL: https://issues.apache.org/jira/browse/VELOCITY-915 > Project: Velocity > Issue Type: Improvement > Components: Engine > Affects Versions: 2.0, 2.1 > Reporter: Pierre Post > Assignee: Claude Brisson > Priority: Major > Fix For: 2.2 > > > Apache Velocity 2.0 changed the mechanism of sending invalid reference > events. As of version 2.0, no events are generated in case of quiet > references. As it is understandable to produce less irrelevant events for > most use cases, there still exist some other use cases where these events > must be received for quiet references. Besides, this was absolutely > legitimate in versions 1.x and we now have projects that rely on that > behavior but cannot be migrated to 2.x without further development effort. > If there is no other way to reproduce the old 1.x behavior, please add an > initialization parameter that enables the sending of invalid reference events > for quiet references as this would greatly improve backwards compatibility > with 1.x versions, e.g. > {noformat} > # Send invalid reference events for quiet references (false by default) > eventhandler.invalidreferences.include.quiet_references = true{noformat} > There already exist other parameters only to ensure backwards compatibility. > Thank you very much. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org For additional commands, e-mail: dev-h...@velocity.apache.org