Uploaded image for project: 'Spring Data REST'
  1. Spring Data REST
  2. DATAREST-1286

QuerydslBinderCustomizer - blacklisting not working for non-root paths

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.10 (Kay SR10)
    • Fix Version/s: None
    • Component/s: Repositories
    • Labels:
      None
    • Environment:
      Spring Boot 2.0.4.RELEASE, Java 1.8

      Description

      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

       

        Attachments

          Activity

            People

            Assignee:
            olivergierke Oliver Drotbohm
            Reporter:
            frank.speidel Frank Speidel
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: