This is an automated email from the ASF dual-hosted git repository.

sergehuber pushed a commit to branch UNOMI-945-context-sanitize-fix
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit d610b0004e150ecd684275736410381253cd161e
Author: Serge Huber <[email protected]>
AuthorDate: Mon Jun 29 15:03:55 2026 +0200

    UNOMI-945: Return sanitized list from ContextJsonEndpoint.sanitizeValue()
    
    Align with unomi-3.0.x #778: the list branch must return newValues so
    script:: and parameter:: entries are stripped from context filter payloads.
---
 .../main/java/org/apache/unomi/rest/endpoints/ContextJsonEndpoint.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/rest/src/main/java/org/apache/unomi/rest/endpoints/ContextJsonEndpoint.java 
b/rest/src/main/java/org/apache/unomi/rest/endpoints/ContextJsonEndpoint.java
index bb234b9b2..f75d664c5 100644
--- 
a/rest/src/main/java/org/apache/unomi/rest/endpoints/ContextJsonEndpoint.java
+++ 
b/rest/src/main/java/org/apache/unomi/rest/endpoints/ContextJsonEndpoint.java
@@ -412,7 +412,7 @@ public class ContextJsonEndpoint {
                     newValues.add(newObject);
                 }
             }
-            return values;
+            return newValues;
         } else if (value instanceof Map) {
             Map<Object, Object> newMap = new LinkedHashMap<>();
             ((Map<?, ?>) value).forEach((key, value1) -> {

Reply via email to