I've encountered an issue with the filter parser. Namely, it threw a NullReferenceException when I tried to parse an expression similar to the following:
(userName eq "bjensen") and emails[type eq "work" and value co "example.org"] and phoneNumbers[primary eq "true"]
I tracked the exception down and noticed that the Clone() method of the SCIMComplexAttributeExpression did not properly clone the object. I fixed it in this PR and added a test case that covers the fix.
Hello there!
I've encountered an issue with the filter parser. Namely, it threw a
NullReferenceException
when I tried to parse an expression similar to the following:(userName eq "bjensen") and emails[type eq "work" and value co "example.org"] and phoneNumbers[primary eq "true"]
I tracked the exception down and noticed that the
Clone()
method of theSCIMComplexAttributeExpression
did not properly clone the object. I fixed it in this PR and added a test case that covers the fix.