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/04/02 14:56:51 UTC

[unomi] 01/01: UNOMI-449: fix cherry-pick and compilation issue

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

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

commit ee6db6323e6df844f263fa91ef4a0bc864968d9d
Author: Kevan <ke...@jahia.com>
AuthorDate: Fri Apr 2 16:56:38 2021 +0200

    UNOMI-449: fix cherry-pick and compilation issue
---
 rest/src/main/java/org/apache/unomi/rest/EventsCollectorEndpoint.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rest/src/main/java/org/apache/unomi/rest/EventsCollectorEndpoint.java b/rest/src/main/java/org/apache/unomi/rest/EventsCollectorEndpoint.java
index cf1bb0c..dd1d4ca 100644
--- a/rest/src/main/java/org/apache/unomi/rest/EventsCollectorEndpoint.java
+++ b/rest/src/main/java/org/apache/unomi/rest/EventsCollectorEndpoint.java
@@ -109,8 +109,8 @@ public class EventsCollectorEndpoint {
             // Get the first available scope that is not equal to systemscope to create the session otherwise systemscope will be used
             for (Event event : eventsCollectorRequest.getEvents()) {
                 if (StringUtils.isNotBlank(event.getEventType())) {
-                    if (StringUtils.isNotBlank(event.getSourceId()) && !event.getSourceId().equals("systemscope")) {
-                        scope = event.getSourceId();
+                    if (StringUtils.isNotBlank(event.getScope()) && !event.getScope().equals("systemscope")) {
+                        scope = event.getScope();
                         break;
                     } else if (event.getSource() != null && StringUtils.isNotBlank(event.getSource().getScope()) && !event.getSource().getScope().equals("systemscope")) {
                         scope = event.getSource().getScope();