url mapping - Grails 2.5.0 UrlMappings with two consecutive slashes -


i have inherited grails 2.2.4 urlmappings (partially reproduced below) trying upgrade 2.5.0.

named mappings api0 & api2 work, 2 consecutive slashes in api1 (between $controller & $id) not seem matched in 2.5.0 (though matched in 2.2.4). e.g.:

put /api/ticket//123.json

returns 403, despite controller allowing puts update action.

name api0: "/api/$controller/$id?(.$format)?" {     action = [get: 'show', put: 'update', post: 'save', delete: 'delete']     constraints {         id(matches: /\d+/)     } }  name api1: "/api/$controller//$id?(.$format)?" {     action = [get: 'show', put: 'update', post: 'save', delete: 'delete']     constraints {         id(matches: /\d+/)     } }  name api2: "/api/$controller/$action/$id?(.$format)?" {     constraints {         id(matches: /\d+/)     } } 

i can't change incoming urls and/or http methods (and didn't create them), please don't tell me change clients replace double slashes in urls single slashes, or urls and/or http methods don't follow rest paradigms.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -