Details
Description
The space characters in URL mapped parameters/embedded variables are not correctly passed to the controller.
This worked well in Grails version 1.2.1 but is broken in Grails version 1.3.4.
UrlMappins.groovy
class UrlMappings {
static mappings = {
"/mapIt/$myparam?"(controller:"items", action:"index")
}
}
MapItController.groovy
class MapItController {
def index = {
render "$params.myparam"
}
}
| URL | output(1.3.4) | expected output(1.2.1) |
|---|---|---|
| /mapIt/Hello+World | Hello+World | Hello World |
| /mapIt/Hello World | Hello%20World | Hello World |
| /mapIt/Hello%20World | Hello%20World | Hello World |
Issue Links
- relates to
-
GRAILS-4479
space characters in params in the remoteLink tag are not being translated to spaces in the controller action
-
It wasn't broken until 1.3.2 at least.