From ebeb43f4924008bd8460b57b95b81713c03bfdaf Mon Sep 17 00:00:00 2001 From: Yuriy Movchan Date: Thu, 12 Dec 2024 21:10:02 +0300 Subject: [PATCH] fix(orm): exclude objectClass filter not correclty process substring filter Signed-off-by: Yuriy Movchan --- .../src/main/java/org/gluu/search/filter/FilterProcessor.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oxOrm/filter/src/main/java/org/gluu/search/filter/FilterProcessor.java b/oxOrm/filter/src/main/java/org/gluu/search/filter/FilterProcessor.java index b6fb8d12..d2c5e2f8 100644 --- a/oxOrm/filter/src/main/java/org/gluu/search/filter/FilterProcessor.java +++ b/oxOrm/filter/src/main/java/org/gluu/search/filter/FilterProcessor.java @@ -45,6 +45,9 @@ public Filter excludeFilter(Filter genericFilter, Filter... excludeFilters) { Filter resultFilter = new Filter(type, resultFilters.toArray(new Filter[0])); resultFilter.setAssertionValue(genericFilter.getAssertionValue()); + resultFilter.setSubInitial(genericFilter.getSubInitial()); + resultFilter.setSubAny(genericFilter.getSubAny()); + resultFilter.setSubFinal(genericFilter.getSubFinal()); return resultFilter; }