You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Jonathan Sinovassin-Naïk (Jira)" <ji...@apache.org> on 2022/10/06 11:31:00 UTC

[jira] [Created] (UNOMI-687) Clean scope check in EventCollectorEndpoint

Jonathan Sinovassin-Naïk created UNOMI-687:
----------------------------------------------

             Summary: Clean scope check in EventCollectorEndpoint
                 Key: UNOMI-687
                 URL: https://issues.apache.org/jira/browse/UNOMI-687
             Project: Apache Unomi
          Issue Type: Task
            Reporter: Jonathan Sinovassin-Naïk
             Fix For: unomi-2.0.1


In the file EventCollectorEndpoint, there is a check which can be removed 

[https://github.com/apache/unomi/blob/master/rest/src/main/java/org/apache/unomi/rest/endpoints/EventsCollectorEndpoint.java#L100]

In the existing code, there is a check on the nullity of the scope of the events. 

If they are null, we are using systemScope. But it can't happen because scopes are validated trough JSON schemas and can not be null



--
This message was sent by Atlassian Jira
(v8.20.10#820010)