From 9a2237ea81c8090b61184982834060cdf2271f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20K=C3=B6hler?= Date: Wed, 13 Jul 2022 15:17:54 +0200 Subject: [PATCH] replace chars (whitespace / ') for correct filtering --- .../src/main/java/org/odata4j/consumer/ConsumerCountRequest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/odata4j-core/src/main/java/org/odata4j/consumer/ConsumerCountRequest.java b/odata4j-core/src/main/java/org/odata4j/consumer/ConsumerCountRequest.java index 74323098..38f98716 100644 --- a/odata4j-core/src/main/java/org/odata4j/consumer/ConsumerCountRequest.java +++ b/odata4j-core/src/main/java/org/odata4j/consumer/ConsumerCountRequest.java @@ -49,6 +49,7 @@ public int execute() throws ODataProducerException { } if(filter != null) { + filter = filter.replaceAll(" ", "%20").replaceAll("'", "%27"); uri = uri + "?$filter=" + filter; }