Uploaded image for project: 'Apache Unomi'
  1. Apache Unomi
  2. UNOMI-522

EventCollector saving temporary profiles

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • unomi-1.4.0, unomi-1.5.7
    • unomi-2.0.0
    • unomi(-core)
    • None

    Description

      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.

      Attachments

        Activity

          People

            jkevan Kevan Jahanshahi
            jkevan Kevan Jahanshahi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m