You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by jk...@apache.org on 2022/08/02 09:34:07 UTC

[unomi] branch fixPersonaSessionPropertiesOverrides created (now 8a895e7c4)

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

jkevan pushed a change to branch fixPersonaSessionPropertiesOverrides
in repository https://gitbox.apache.org/repos/asf/unomi.git


      at 8a895e7c4 UNOMI-636: Fix deserialization of persona session properties overrides

This branch includes the following new commits:

     new 8a895e7c4 UNOMI-636: Fix deserialization of persona session properties overrides

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[unomi] 01/01: UNOMI-636: Fix deserialization of persona session properties overrides

Posted by jk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jkevan pushed a commit to branch fixPersonaSessionPropertiesOverrides
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit 8a895e7c403ffd967e3fa911a6e64f9202d5b5a9
Author: Kevan <ke...@jahia.com>
AuthorDate: Tue Aug 2 11:33:50 2022 +0200

    UNOMI-636: Fix deserialization of persona session properties overrides
---
 .../org/apache/unomi/rest/deserializers/ContextRequestDeserializer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rest/src/main/java/org/apache/unomi/rest/deserializers/ContextRequestDeserializer.java b/rest/src/main/java/org/apache/unomi/rest/deserializers/ContextRequestDeserializer.java
index 261a0fa73..9e4b24216 100644
--- a/rest/src/main/java/org/apache/unomi/rest/deserializers/ContextRequestDeserializer.java
+++ b/rest/src/main/java/org/apache/unomi/rest/deserializers/ContextRequestDeserializer.java
@@ -128,7 +128,7 @@ public class ContextRequestDeserializer extends StdDeserializer<ContextRequest>
             cr.setProfileOverrides(jsonParser.getCodec().treeToValue(node.get("profileOverrides"), Profile.class));
         }
         if (node.get("sessionPropertiesOverrides") != null) {
-            jsonParser.getCodec().treeToValue(node.get("sessionPropertiesOverrides"), Map.class);
+            cr.setSessionPropertiesOverrides(jsonParser.getCodec().treeToValue(node.get("sessionPropertiesOverrides"), Map.class));
         }
         if (node.get("sessionId") != null) {
             cr.setSessionId(node.get("sessionId").textValue());