borinquenkid opened a new issue, #16815:
URL: https://github.com/apache/grails-core/issues/16815

   Split from audit #16804 (findings F2, F15a, F16).
   
   ### Problem Description
   Three criteria translation issues in `grails-data-hibernate7-core`:
   
   1. **Projection List In-Place Mutation (F2)**: When translating a subquery 
without explicit projections, `PredicateGenerator` mutates the criteria's 
projection list in-place (`qc.getProjections().add(...)`). Subsequent 
executions carry the mutated projections.
   2. **Unresolved Property Paths Dropped Silently (F15a)**: When a property 
path cannot be resolved in a property comparison, a `null` predicate was 
returned, causing Hibernate to drop the restriction and match all rows silently.
   3. **Null Member in inList (F16)**: `in`/`inList` with a `null` element in 
the collection caused query errors instead of filtering out `null` to match SQL 
`IN (...)` semantics.
   
   ### Expected Behavior
   - Subqueries should use a local copy of projection lists instead of mutating 
the source criteria.
   - Unresolved property paths should throw a descriptive 
`ConfigurationException`.
   - `Query.In` should filter nulls from the value collection prior to 
generating the SQL `IN` predicate.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

  • [I] Hibernate 7: Criteria proj... borinquenkid (via GitHub) via notifications

Reply via email to