Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SearchRequestBuilder#invoke processing. #243

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

kqarryzada
Copy link
Collaborator

This commit updates the SearchRequestBuilder's parsing of ListResponses returned from SCIM services to be permissive of improperly-cased attributes in the response (e.g., "resources" instead of "Resources"). This is intended to broaden compatibility.

This change includes:

  • Documentation updates to give more information about SearchRequests.
  • Simplify the invoke() logic by including try-with-resources blocks.

Reviewer: vyhhuang
Reviewer: dougbulkley

JiraIssue: DS-49756

Resolves #97
Resolves #150

This commit updates the SearchRequestBuilder's parsing of ListResponses
returned from SCIM services to be permissive of improperly-cased
attributes in the response (e.g., "resources" instead of "Resources").
This is intended to broaden compatibility.

This change includes:
* Documentation updates to give more information about SearchRequests.
* Simplify the invoke() logic by including try-with-resources blocks.

Reviewer: vyhhuang
Reviewer: dougbulkley

JiraIssue: DS-49756
@kqarryzada kqarryzada self-assigned this Feb 27, 2025
Copy link

@vyhhuang vyhhuang left a comment

Choose a reason for hiding this comment

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

These changes seem good to me.

Copy link

@dougbulkley dougbulkley left a comment

Choose a reason for hiding this comment

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

I got confused by your statement:
"...to be permissive of improperly-cased attributes in the response...."
You do give an example, but without looking at the code I assumed it meant all attributes, not just a select few, maybe that is worth mentioning to save confusion, or maybe not. Approved.

@kqarryzada kqarryzada merged commit e43e23a into master Feb 28, 2025
10 checks passed
@kqarryzada kqarryzada deleted the DS-49756-update-searchrequestbuilder branch February 28, 2025 17:36
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.

NullPointerException in SearchRequestBuilder.class SearchRequestBuilder should be case insensitive
3 participants