simpleidserver / SimpleIdServer

OpenID, OAuth 2.0, SCIM2.0, UMA2.0, FAPI, CIBA & OPENBANKING Framework for ASP.NET Core
https://simpleidserver.com/
Apache License 2.0
682 stars 90 forks source link

SCIM POST /Users/.search Error 500 with 'attributes' property containing null #719

Closed LazaroOnline closed 2 months ago

LazaroOnline commented 3 months ago

POST /Users/.search returns error 500 with attributes property containing null Example body:

{ "attributes": [null] }

SimpleIdServer\src\Scim\SimpleIdServer.Scim\Extensions\SCIMRepresentationExtensions.cs line 77

if (attribute.TryContainsGroupingExpression(out SCIMComplexAttributeExpression complexAttributeExpression))

System.NullReferenceException: 'Object reference not set to an instance of an object.' attribute was null.

Tested in the current latest of "SimpleIdServer.Scim" v4.0.7

simpleidserver commented 3 months ago

This issue will be fixed in the Release 4.0.8.

simpleidserver commented 3 months ago

The issue is fixed in the master branch.

LazaroOnline commented 2 months ago

Tested in the latest master branch, it now returns 200 Ok. Thanks a lot for the quick support!