Captain-P-Goldfish / SCIM-SDK

a scim implementation as described in RFC7643 and RFC7644
https://github.com/Captain-P-Goldfish/SCIM/wiki
BSD 3-Clause "New" or "Revised" License
122 stars 38 forks source link

Empty string in MsAzurePatchComplexValueRebuilder causes NullPointerException #652

Closed stefan-wauters closed 5 months ago

stefan-wauters commented 5 months ago

Sending the following PATCH request with the activateMsAzureWorkaround enabled results in a NullPointerException:

{
  "schemas": ["urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],
  "Operations": {
    "op": "replace",
    "path": "manager",
    "value": ""
  }
}

because jsonNode is null in the this line:

if (jsonNode.isObject() || jsonNode.isArray())

The expected behaviour is that the workaround is also applied on an empty string value.