Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.7.10, 1.8-rc-3, 1.9-beta-1
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Number of attachments :2
Description
After upgrading from grails 1.3.6 to 1.3.7 bean-fields plugin render garbage after every <bean:field> tag:
org.codehaus.groovy.grails.web.pages.GroovyPageOutputStack$GroovyPageProxyWriter@602d9d
See http://grails.1312388.n4.nabble.com/Grails-1-3-7-and-bean-fields-td3311784.html
The sample app attached show the problem in view book/index
-
Hide
- bftest.zip
- 22/Feb/11 10:01 AM
- 82 kB
- Goran Ehrsson
-
- application.properties 0.2 kB
- 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/spring/resources.groovy 0.0 kB
- grails-app/conf/UrlMappings.groovy 0.2 kB
- grails-app/.../BookController.groovy 0.1 kB
- grails-app/domain/bftest/Book.groovy 0.1 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/book/index.gsp 0.6 kB
- grails-app/views/error.gsp 2 kB
- grails-app/views/index.gsp 4 kB
- grails-app/views/layouts/main.gsp 0.8 kB
- web-app/css/main.css 5 kB
- web-app/images/favicon.ico 10 kB
- web-app/images/grails_logo.jpg 8 kB
- web-app/images/grails_logo.png 10 kB
-
- grails-1.3.7-bean-fields.png
- 10 kB
- 22/Feb/11 9:30 AM
Activity
Since the standard 'grails bug-report' command produces an incomplete zip (GRAILS-7300), I attached a new zip that includes all neccesary files.
Thank you Goran.
I've managed to reproduce the issue by creating a new app and copying the necessary files.
With Jochen, we've narrowed down the changes to Groovy that triggered this problem, by "bisecting" till finding the right commit that was causing the issue.
Interestingly, the commit which was fixing a problem Luke had with his remote closures project, but which covered some other issues that you've been facing.
We found a fix for that already, we'll release another Groovy 1.7 release next week with the fix.
Guillaume/Jochen can we get some info on the actual problem here to evaluate what other code might be affected?
You can have a look at the commits on the groovy-scm mailing-list, but it won't help you much, and is difficult to know exactly what other impacts it could have.
Since no new version of Grails is released we still cannot use the bean-fields plugin.
What do we tell Grails developers on 1.3.7 that want to use bean-fields?
I created an issue for bean-fields here http://jira.grails.org/browse/GPBEANFIELDS-37
Users will probably have to wait for a Grails release including Groovy 1.7.10 which fixed the issue.
Attached screenshot that shows the extra output after each field.