This is an automated email from the ASF dual-hosted git repository.
dgriffon pushed a commit to branch unomi-1.5.x
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/unomi-1.5.x by this push:
new 9839c20 UNOMI-449 : fix build
9839c20 is described below
commit 9839c20523da0f8140477f527a40219a65814209
Author: David Griffon <[email protected]>
AuthorDate: Fri Apr 2 17:44:38 2021 +0200
UNOMI-449 : fix build
---
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();