[ 
https://issues.apache.org/jira/browse/UNOMI-336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17111097#comment-17111097
 ] 

Noa commented on UNOMI-336:
---------------------------

Second event's cURL:
Notice, the cookie value should be the value from the cookie added by the first 
request.

curl --location --request POST 
'http://localhost:8181/context.json?timestamp=1582240009000' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic a2FyYWY6a2FyYWY=' \
--header 'Content-Type: text/plain' \
--header 'Cookie: context-profile-id=96fc764f-f848-4bdc-940c-3b409c265955' \
--data-raw '{
 "sessionId": "session1",
 "events": [
 {
 "eventType":"type1",
 "properties" : {
 "source": "root",
 "email" : "[email protected]"
 }
 }
 ]
}'

> Segment with PastEventCondition doesn't work properly 
> ------------------------------------------------------
>
>                 Key: UNOMI-336
>                 URL: https://issues.apache.org/jira/browse/UNOMI-336
>             Project: Apache Unomi
>          Issue Type: Bug
>          Components: core
>            Reporter: Noa
>            Priority: Major
>             Fix For: 1.5.2
>
>
> Segment with PastEventCondition doesn't work properly when adding events with 
> a customized timestamp. 
> Steps to reproduce:
> 1) Create a segment with a pastEventCondition with minimumEventCount = 2 and 
> numberOfDays = 30d.
> 2) Create an event through the context servlet, that satistfies the 
> eventCondition of the pastEventCondition.
> A profile should have been created, with 
> systemProperies.pastEvents.eventTriggered.... = 1.
> 3)  Create another event, from the same profile, that satisfies the 
> eventCondition, BUT send a "timestamp" parameter in the URL with a timestamp 
> that is over 30d ago. 
> This event didn't occure in the last 30d, so the profile shouldn't be part of 
> the segment.
> Expected result: the profile's segments list should be empty and 
> systemProperies.pastEvents.eventTriggered should be 1.
> Actual result: The profile segments list contains the segment and 
> systemProperies.pastEvents.eventTriggered = 2



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to