According to this mailinglist entry, grails filters should be invoked on a forward. which effectively causes filters to be invoked
1 + x number of forwards.
However, in my situation i question the method of how this is done. Here is a rough mashup of my system:
- i have a filter which is invoked on the uri condition of
- an urlmapping that goes something like this:
$restmay contain (as an example) the value
- an ApiController thats sole purpose is to forward to another uri depending on
So lets say i access the url
what then happens is that the api filter is invoked and it does all the
version and apiKey validatation. it then continues to forward to the
/book/show/1 which then invokes the Api filter a second time even though the filter is mapped up agains
/api/** and the new uri is effectively
Now let it be said, i agree that filters should be invoked on a
forward, but i dont agree that the api filter should be invoked a second
time when i am doing a forward to
This can't be correct behaviour? can it?