Skip to content

QuerydslPredicateBuilder and QuerydslBindings do not consider owning type #2418

Closed
@huisezhiwei

Description

@huisezhiwei

Spring data commons version : 1.13.23

I am currently maintaining an old project using Spring Boot 1.5.x .when I use @QueryDSLPredicate to bind query parameters, there is a problem with multiple different objects interfering with each other.
during debug, i found QuerydslPredicateBuilder.getPath() method interal using cache.
PropertyPathInformation will compare thier path property , and PropertyPath.equals() method not check owningType.
so when i query by id params will hit wrong cache (their name and type is same).
I find same question in spring data jpa default controller(RepositoryEntityController)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions