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

SCIM API returns 500 for invalid request body #19409

Open
Avarjana opened this issue Feb 6, 2024 · 1 comment · May be fixed by wso2/charon#406
Open

SCIM API returns 500 for invalid request body #19409

Avarjana opened this issue Feb 6, 2024 · 1 comment · May be fixed by wso2/charon#406

Comments

@Avarjana
Copy link
Contributor

Avarjana commented Feb 6, 2024

Describe the issue:

SCIM patch operation will return 500 when operations key is sent without the uppercase O as in Operations. Docs should be corrected as well: [Doc]

How to reproduce:

  • Try a sample SCIM API request as follows with operations key instead of Operations
curl -L -X PATCH 'https://api.asg.io/scim2/Roles/5831857c-e402-4758-b5e2-a0710fc604b2' -H 'Content-Type: application/json' -H 'Authorization: Basic YWRtaW46YWRtaW4=' -H 'Cookie: atbv=******' -d '{
    "schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
    "operations": [
        {
            "op": "remove",
            "path": "users[value eq 75b62139-e819-46ea-b0e4-75e2b24c8804]"
        }
    ]
}'

Expected behavior:

Response should be 400 instead of 500.

@AnuradhaSK
Copy link
Contributor

AnuradhaSK commented Feb 6, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
3 participants