Filtering contents fails when I have multiple expressions chained with AND, and surrounded with a NOT operator.
For example not ((Name eq 'Administrator') and isOf('Group')) will omit every content that has type Group or name Administrator, instead of one specific group that has a name Administrator.
Solution hint:
SenseNet.ContentRepository.Linq.OptimizeBooleanVisitor has an unknown bug when must not occurrence needed to optimize.
Called in: SnExpression line 86
The problem:
Filtering contents fails when I have multiple expressions chained with
AND
, and surrounded with aNOT
operator. For examplenot ((Name eq 'Administrator') and isOf('Group'))
will omit every content that has typeGroup
or nameAdministrator
, instead of one specific group that has a nameAdministrator
.Solution hint: SenseNet.ContentRepository.Linq.OptimizeBooleanVisitor has an unknown bug when must not occurrence needed to optimize. Called in: SnExpression line 86