Skip to content

Fix deserialization of GenericScimResource.#299

Merged
kqarryzada merged 1 commit into
masterfrom
DS-51507-fix-gsr-deserialization
May 21, 2026
Merged

Fix deserialization of GenericScimResource.#299
kqarryzada merged 1 commit into
masterfrom
DS-51507-fix-gsr-deserialization

Conversation

@kqarryzada

Copy link
Copy Markdown
Collaborator

Jackson 3 enabled the DeserializationFeature.FAIL_ON_TRAILING_TOKENS setting by default. This caused problems for the custom deserializer since extra JSON data can be present if a GenericScimResource is embedded within a list response. As a result, this commit updates the deserializer to address this edge case.

This also includes a nullability annotation correction and minor test cleanup.

Reviewer: dougbulkley
Reviewer: vyhhuang

JiraIssue: DS-51507

Jackson 3 enabled the DeserializationFeature.FAIL_ON_TRAILING_TOKENS
setting by default. This caused problems for the custom deserializer
since extra JSON data can be present if a GenericScimResource is
embedded within a list response. As a result, this commit updates the
deserializer to address this edge case.

This also includes a nullability annotation correction and minor test
cleanup.

Reviewer: dougbulkley
Reviewer: vyhhuang

JiraIssue: DS-51507
@kqarryzada kqarryzada self-assigned this May 21, 2026

@vyhhuang vyhhuang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes look fine to me.

@@ -130,13 +118,6 @@ public void testBasicParsing() throws Exception
Meta meta = cso.getMeta();
Assert.assertNotNull(meta);

Assert.assertEquals(
dateFormat.format(meta.getCreated().getTime()),
"2015-02-27T11:28:39.042Z");

@kqarryzada kqarryzada May 21, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to mention, but I removed these since I originally swapped it with DateTimeUtils.format(). That was better than using a manual formatter that only supports UTC. However, I realized that the next case using ObjectNode already implicitly calls into this. Thus, I removed this so it wouldn't be duplicitous.

@kqarryzada kqarryzada merged commit a931137 into master May 21, 2026
6 checks passed
@kqarryzada kqarryzada deleted the DS-51507-fix-gsr-deserialization branch May 21, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants