pingidentity / scim2

The UnboundID SCIM 2.0 SDK for Java
175 stars 72 forks source link

Resolve error with copying SCIM SDK ObjectMapper #202

Closed kqarryzada closed 11 months ago

kqarryzada commented 11 months ago

This commit resolves an error with copying an ObjectMapper that was created with 'JsonUtils.createObjectMapper()'. This presented as an IllegalStateException from Jackson's 'ObjectMapper._checkInvalidCopy()' method.

Part of this commit includes adding a new constructor for ScimJsonFactory since there is a dedicated constructor used for copies in the superclass (JsonFactory#JsonFactory(JsonFactory, ObjectCodec)). ScimJsonFactory will explicitly call this "copy constructor" when making a copy, even though the behavior is (currently) identical to using the default constructor.

JiraIssue: DS-47635