Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QuerydslBinderCustomizer - blacklisting not working for non-root paths [DATAREST-1286] #1647

Open
spring-projects-issues opened this issue Sep 17, 2018 · 1 comment
Assignees
Labels

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Sep 17, 2018

Frank Speidel opened DATAREST-1286 and commented

Trying to add a an attribute to the backlist of a repository:

@Override
default void customize(final QuerydslBindings bindings, final QSample sample) {
 bindings.excluding(sample.sub.any().subAttribute);
}

The path is not resolved correctly and therefore blacklisting is not working. Preparation of path takes place here:

QuerydslBindings.fromRootPath

For the example above, original path is a follows:

any(sample.sub).subAttribute

which is transformed into invalid value:

ple.sub).subAttribute

https://github.com/spring-projects/spring-data-commons/blob/master/src/main/java/org/springframework/data/querydsl/binding/QuerydslBindings.java#L332

 


Affects: 3.0.10 (Kay SR10)

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Oct 14, 2019

Frank Speidel commented

Hi, is there any update on this?
Currently we are facing a similar issue when trying to run the customizer in order to apply case insensitive comparsion. Again this doesn't work for such complex structure. Is Spring Data REST not intended to be used for objects having collections referenced as described above?

Unfortunately this gets a blocker now.

 

Best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants