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 2021/01/25 10:36:43 UTC

[unomi] branch fixMultipleEventsProfileUpdate created (now 2fd094c)

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

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


      at 2fd094c  UNOMI-417: fix profile persist when receivint multiple events that modify the profile

This branch includes the following new commits:

     new 2fd094c  UNOMI-417: fix profile persist when receivint multiple events that modify the profile

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-417: fix profile persist when receivint multiple events that modify the profile

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

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

commit 2fd094cbafafa600fc8e2e6ba51bf0bc80866fa7
Author: Kevan <ke...@jahia.com>
AuthorDate: Mon Jan 25 11:36:30 2021 +0100

    UNOMI-417: fix profile persist when receivint multiple events that modify the profile
---
 wab/src/main/java/org/apache/unomi/web/ServletCommon.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wab/src/main/java/org/apache/unomi/web/ServletCommon.java b/wab/src/main/java/org/apache/unomi/web/ServletCommon.java
index bf700c3..6c48edd 100644
--- a/wab/src/main/java/org/apache/unomi/web/ServletCommon.java
+++ b/wab/src/main/java/org/apache/unomi/web/ServletCommon.java
@@ -96,7 +96,7 @@ public class ServletCommon {
                     eventToSend.getAttributes().put(Event.HTTP_RESPONSE_ATTRIBUTE, response);
                     logger.debug("Received event " + event.getEventType() + " for profile=" + profile.getItemId() + " session="
                             + (session != null ? session.getItemId() : null) + " target=" + event.getTarget() + " timestamp=" + timestamp);
-                    changes = eventService.send(eventToSend);
+                    changes |= eventService.send(eventToSend);
                     // If the event execution changes the profile we need to update it so the next event use the right profile
                     if ((changes & EventService.PROFILE_UPDATED) == EventService.PROFILE_UPDATED) {
                         profile = eventToSend.getProfile();