Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 2.0-RC1
-
Fix Version/s: 2.0-RC2
-
Component/s: None
-
Labels:None
Description
With the Weceem plugin I have found that Grails 2rc1 gives incorrect results for:
WcmContentFile.findAllBySpace(space)
What happens is you get back all content nodes where x.space = space, not just WcmContentFile and descendent types.
The graph is like this:
WcmContent <---- WcmContentFile <---- WcmContentDirectory
<---- WcmFolder
<---- WcmHTMLContent etc.
The above query should return only WcmContentFile and WcmContentDirectory but it returns all types.
I tried to isolate this with different domain objects but could not. The only isolation I managed is to install weceem plugin into a fresh app and test a query at startup in BootStrap. This shows the failure in an app that uses weceem plugin.
The attached bug-report app includes some test domain classes that attempt to mimic and isolate the ORM hierarchy that causes the problem but to no avail yet.
-
Hide
- G2Inheritance-bug-report-16112011.zip
- 16/Nov/11 5:53 AM
- 24 kB
- Marc Palmer
-
- grails-app/.../ApplicationResources.groovy 0.1 kB
- grails-app/conf/BootStrap.groovy 1 kB
- grails-app/conf/BuildConfig.groovy 2 kB
- grails-app/conf/Config.groovy 4 kB
- grails-app/conf/DataSource.groovy 1 kB
- grails-app/conf/UrlMappings.groovy 0.2 kB
- grails-app/conf/spring/resources.groovy 0.0 kB
- grails-app/domain/.../Book.groovy 0.2 kB
- grails-app/domain/.../HardbackBook.groovy 0.1 kB
- grails-app/domain/.../Journal.groovy 0.2 kB
- grails-app/domain/.../Publication.groovy 0.5 kB
- grails-app/domain/.../Publisher.groovy 0.1 kB
- grails-app/i18n/messages.properties 3 kB
- grails-app/.../messages_cs_CZ.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 4 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_sv.properties 3 kB
- grails-app/i18n/messages_th.properties 6 kB
- grails-app/.../messages_zh_CN.properties 2 kB
- grails-app/views/error.gsp 0.3 kB
- grails-app/views/index.gsp 3 kB
- grails-app/views/layouts/main.gsp 2 kB
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Fixed by https://github.com/SpringSource/grails-data-mapping/commit/b0c8fb3e11945efb14f9410302f30fdfb53ac5d2