You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
where-query with multi-level assocication restriction produces wrong result in simple unit spec #14622
Example that reproduces the problem uploaded to Github
Full description of the issue provided (see below)
Steps to Reproduce
check sample app
run unit tests
Expected Behaviour
QuerySpec should pass just like HibernateQuerySpec does
Actual Behaviour
Condition not satisfied:
words.size() == 4
| | |
| 2 false
[querytest.Word : 1, querytest.Word : 2]
Expected :4
Actual :2
at querytest.QuerySpec.test where query with multi-level association restriction(QuerySpec.groovy:49)
Thanks for the original multilevel-association reproducer. The exact sentence, phrase, and word where query is now covered by WhereQueryIssueVerificationSpec. The regression landed through PR #15460, shipped in Grails 7.0.8, and remains in current 8.0.x. Closing this as fixed.
Activity
added unit specs reproducing grails/grails-core#10507
jamesfredley commentedon Feb 26, 2026
This was reported against GORM 6.0.7 / Grails 3.2.6. The where-query association handling has been significantly reworked in Grails 7.x, including:
ddae6ee)03747c5)DetachedCriteriaTransformerhas received multiple fixes for nested property resolutionIf you are still experiencing this issue on Grails 7.x, please reopen with a minimal reproducer against the current version.
jamesfredley commentedon Jul 24, 2026
Thanks for the original multilevel-association reproducer. The exact sentence, phrase, and word
wherequery is now covered byWhereQueryIssueVerificationSpec. The regression landed through PR #15460, shipped in Grails 7.0.8, and remains in current8.0.x. Closing this as fixed.