Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Define multiple distinct URIs in a Grails 2 web application filter

Tags:

filter

grails

Is it possible to define multiple distinct URI's using Grails 2 web application filter?

For example, something like:

def filters = {
    someFilterMethod(uri: '/auth/**|/*/user/modify') {
        ...
    }
}
like image 831
user1470989 Avatar asked Nov 08 '12 23:11

user1470989


1 Answers

This is an open issue which is planned to be fixed in Grails 2.3 (according to the JIRA entry).

As a work-around you could extract the common code block to be used by multiple filter methods.

like image 197
Andre Steingress Avatar answered Nov 15 '22 13:11

Andre Steingress