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

Fix patch /Groups when path parameter is present in the body #398

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

amanda-ariyaratne
Copy link
Contributor

Purpose

This issue fixes wso2/product-is#16933

In the PATCH /Groups request when the path attribute is set as members, the value should be in the form of an array. However in the existing implementation, the value attribute in the request body is casted to JSONObject which causes a runtime exception. This PR changes the type of casting to JSONArray.

As per the documentation [1], the value attribute should be an array.
Screenshot 2024-01-03 at 15 53 08

[1] https://is.docs.wso2.com/en/latest/apis/scim2-rest-apis/#/Groups%20Endpoint/patchGroup

@jenkins-is-staging
Copy link

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/7406385492
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

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

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/7406385492

@amanda-ariyaratne amanda-ariyaratne merged commit 6d285bb into wso2:master Jan 4, 2024
2 checks passed
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.

Getting 500 on SCIM Group Patch Operation
3 participants