Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.3.5
-
Component/s: View technologies
-
Labels:None
-
Environment:WIndows 7
Description
The model attribute of the after filter is set to null when a render template is called instead of returning a model.
In the attached sample project, I have a filter that simply prints out the result:
after = { model ->
println model
}
When I do a standard view render, it returns a correct model.
def good = {
[ test: 'test' ]
}
call http://localhost:8080/filterBroken/broken/good
Output: [test:test]
However, when I call a template render, it returns null instead of the expected [test:test] model.
def bad = {
render( template:'/bad', model:[ test:'test' ] )
}
call http://localhost:8080/filterBroken/broken/bad
Output: null
Expected: [test:test]
-
Hide
- filterBroken-bug-report-14102010.zip
- 14/Oct/10 3:39 AM
- 21 kB
- Tomas Lin
-
- grails-app/conf/BootStrap.groovy 0.1 kB
- grails-app/conf/BuildConfig.groovy 1 kB
- grails-app/conf/Config.groovy 4 kB
- grails-app/conf/DataSource.groovy 0.8 kB
- grails-app/conf/UrlMappings.groovy 0.2 kB
- grails-app/conf/.../BrokenFilters.groovy 0.3 kB
- grails-app/conf/spring/resources.groovy 0.0 kB
- grails-app/.../BrokenController.groovy 0.2 kB
- grails-app/i18n/messages.properties 3 kB
- grails-app/i18n/messages_da.properties 3 kB
- grails-app/i18n/messages_de.properties 4 kB
- grails-app/i18n/messages_es.properties 3 kB
- grails-app/i18n/messages_fr.properties 2 kB
- grails-app/i18n/messages_it.properties 2 kB
- grails-app/i18n/messages_ja.properties 2 kB
- grails-app/i18n/messages_nl.properties 3 kB
- grails-app/.../messages_pt_BR.properties 3 kB
- grails-app/.../messages_pt_PT.properties 3 kB
- grails-app/i18n/messages_ru.properties 4 kB
- grails-app/i18n/messages_th.properties 5 kB
- grails-app/.../messages_zh_CN.properties 2 kB
- grails-app/views/_bad.gsp 0.0 kB
- grails-app/views/broken/good.gsp 0.0 kB
- grails-app/views/error.gsp 2 kB
- grails-app/views/index.gsp 4 kB
- grails-app/views/layouts/main.gsp 0.7 kB
- test/unit/.../BrokenControllerTests.groovy 0.3 kB
- test/unit/.../BrokenFiltersTests.groovy 0.3 kB
- application.properties 0.2 kB
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Hide
Eugenio Lattanzio
added a comment -
It's a mayor issue for me, Can anybody provide a workaround for this?
Show
Eugenio Lattanzio
added a comment - It's a mayor issue for me, Can anybody provide a workaround for this?
This affects version 1.3.4 as well.