Closed Afira-Zahari-i2 closed 1 month ago
I am not able to reproduce the NullPointerException. Can you give me the full stackTrace?
But due to your report I found another troublesome behaviour that I just fixed:
I added a unit test for a second case for patch which was handled erroneously:
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"name": "addMember",
"op": "add",
"path": "members",
"value": [
{}
]
}
]
}
This will cause a BadRequestException now:
Required sub-attribute 'urn:ietf:params:scim:schemas:core:2.0:Group:members.value' is missing in patch object.
because previously it was erroneously removing existing entries from the resource.
if you can provide me with the full stacktrace today, we can probably add the fix to the next release. I am going to provide the next release today.
Hello. I've had a look and we were still on 1.24, it looks like this was already fixed by https://github.com/Captain-P-Goldfish/SCIM-SDK/commit/676b04ca8a14a5ec3a7431c5e7894bd60a807acf and this can be closed. Sorry, thanks.
On a Group PATCH request, if the request body contains an empty object value for
members
path, e.g.The response returned is a 500. When I had a look at the exception, I can see this as the cause
Similarly on a Group PUT request,
The same PUT request body used in a POST returns 400 with this