Grails spring-security static rules for rest resource seems not working properly
I have an Grails (2.0.4) application using Spring Security plugin (version 1.2.7.3) and the secured annotation approach (the default one, more here ). Now, I have these URLs in UrlMapping.groovy with the resource key or the controller/action pair, like this: "/$controller/$action?/$id?" { constraints { // apply constraints here } } // other rules, all working properly "/api/item/$id?"(resource: 'itemRest') '/api/item/batch-delete'(controller: 'itemRest', action: 'batchDelete') The RESTful mapping works perfectly with ItemRestController: every method (show, update, save, delete) is correctly