Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Issue: using not null operator with userDefined attributes, returns some entities which doesn't have userDefined attirbutes.
Reproduce: Assign one userDefined attribute to X entity, Remove all the userDefined attribute assigned to X entity. Search with notNull userDefined attributes. Actual: Lists X entity
Expected: shouldn't list X entity, as all the attributes are removed.
Cause: As the userDefined attributes are stored in json format, when we remove all the attributes, it removes all the list but it leaves '{}' blank json, which matches the nonNull field.
Fix: While removing the userDefined, check the Empty list, and remove the json object.