fix properties override
@@ -369,6 +369,9 @@ public class ContextJsonEndpoint {
private Changes handleRequest(ContextRequest contextRequest, Session session, Profile profile, ContextResponse data,
ServletRequest request, ServletResponse response, Date timestamp) {
+
+ processOverrides(contextRequest, profile, session);
+
Changes changes = restServiceUtils.handleEvents(contextRequest.getEvents(), session, profile, request, response, timestamp);
data.setProcessedEvents(changes.getProcessedItems());
@@ -420,8 +423,6 @@ public class ContextJsonEndpoint {
}
}
- processOverrides(contextRequest, profile, session);
-
if (!(profile instanceof Persona)) {
data.setTrackedConditions(rulesService.getTrackedConditions(contextRequest.getSource()));
} else {
