Closed egorksv closed 1 week ago
I have some preliminary changes for this issue, but they will require more testing before we can release this fix.
@egorksv, this behavior will be available in the next release of the SCIM SDK. To opt into this feature, set the following value in your code:
PatchOperation.APPEND_NEW_PATCH_VALUES_PROPERTY = false;
Describe the bug When multiple Patch Add operations are issued for the same compound object in the scope of the same PatchRequest, AddOperation creates a separate record for each property.
Important node: We are building SCIM Server, so the PatchRequest is deserialised from external system (Entra ID in our case)
To Reproduce Using the code from the documentation and standard User resource:
... with this PatchOp request:
The following result is achieved (skipped the irrelevant parts of User resource):
Expected behavior The code is expected to create only two Address records, one [type="work"] and one [type="home"]:
Additional context Add any other context about the problem here. For example:
Proposed Solution I have copied and patched PatchRequest/PatchOperation classes into our code base to provide immediate fix. Please advise if pull request is welcome.