You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Kevan Jahanshahi (Jira)" <ji...@apache.org> on 2021/10/27 16:13:00 UTC
[jira] [Created] (UNOMI-522) EventCollector saving temporary
profiles
Kevan Jahanshahi created UNOMI-522:
--------------------------------------
Summary: EventCollector saving temporary profiles
Key: UNOMI-522
URL: https://issues.apache.org/jira/browse/UNOMI-522
Project: Apache Unomi
Issue Type: Bug
Components: core
Affects Versions: 1.5.7, 1.4.0
Reporter: Kevan Jahanshahi
There is issues with profile handling in the EventCollector.
* In case you send an event that will update the profile, like a login event.
* on a new session ID
* with no profile already known by unomi
* EventCollector is creating a temporary profile, prefixed by: "temp_"
* normally, this kind of profile should not persisted, but in case the event sent trigger rules and actions that will modify the profile (that is new), then the profile will be saved with the temporary id prefixed by "temp_"
I think the profile creation handling in the event collector is really bad, and should no deal with temporary id.
The question is not easy to answer, does the event collector should do the same as context.js ?
* create the profile
* send the profile id in the cookie ?
May be event collector should not be used to create profile, but then how can we control this ?
Anyway we should not persist this temporary profile.
It can be dangerous with the profile merge, because user can get this temporary profile assigned to them.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)