Thomas Draier created UNOMI-198:
-----------------------------------
Summary: Segment evaluation can go into infinite recursion
Key: UNOMI-198
URL: https://issues.apache.org/jira/browse/UNOMI-198
Project: Apache Unomi
Issue Type: Bug
Reporter: Thomas Draier
Assignee: Thomas Draier
Every time a profile is update, an updatedProfile event is sent and triggers
the segment evaluation rule. It's easy to create a segment of all users that
are not in this segment, which will produce an infinite recursion and go into
StackOverflowError :
{code:json}
{
"itemId": "_3a71uuslk",
"itemType": "segment",
"version": 4,
"condition": {
"parameterValues": {
"segments": ["_3a71uuslk"],
"matchType": "none"
},
"type": "profileSegmentCondition"
},
"metadata": {
"id": "_3a71uuslk",
"name": "test",
"description": null,
"scope": "systemscope",
"tags": [],
"systemTags": [],
"enabled": false,
"missingPlugins": false,
"hidden": false,
"readOnly": false
}
}
{code}
Probably other kind of rules can also go into StackOverflowError. We should try
to avoid going into this kind of recursion
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)