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

Error validating SCIM requests with null values #823

Open
nwoolls opened this issue Dec 3, 2024 · 1 comment
Open

Error validating SCIM requests with null values #823

nwoolls opened this issue Dec 3, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@nwoolls
Copy link
Contributor

nwoolls commented Dec 3, 2024

If I post a SCIM POST request to the server with a null value for emails, I receive:

{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:Error"
  ],
  "status": "400",
  "scimType": "invalidValue",
  "detail": "attribute emails is not an array"
}

Similarly, if I POST a request with a null value for a schema attribute, I get an error as well:

{
    "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User","urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"],
    "externalId": "external",
    "userName": "{{$guid}}",
    "emails": null,
    "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": null,
    "name": {
        "formatted": "formatted",
        "givenName": "givenName",
        "middleName": "middleName",
        "familyName": "familyName"
    }
}
{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:Error"
  ],
  "status": "400",
  "scimType": "invalidValue",
  "detail": "Property urn:ietf:params:scim:schemas:extension:enterprise:2.0:User cannot contains an array"
}

I can do some extra work serializing to omit nulls, but maybe this should be handled more gracefully by the server?

@simpleidserver simpleidserver self-assigned this Dec 3, 2024
@simpleidserver simpleidserver moved this to In Progress in Release 5.0.3 Dec 3, 2024
@simpleidserver simpleidserver moved this from In Progress to Done in Release 5.0.3 Dec 4, 2024
@simpleidserver simpleidserver closed this as completed by moving to Done in Release 5.0.3 Dec 4, 2024
@simpleidserver simpleidserver reopened this Dec 4, 2024
@simpleidserver simpleidserver added the bug Something isn't working label Dec 4, 2024
@simpleidserver simpleidserver moved this from Done to In Progress in Release 5.0.3 Dec 4, 2024
thabart added a commit that referenced this issue Dec 4, 2024
@simpleidserver
Copy link
Owner

The issue is fixed in the branch Release503 :

6aa7c93

@simpleidserver simpleidserver moved this from In Progress to Done in Release 5.0.3 Dec 4, 2024
@simpleidserver simpleidserver closed this as completed by moving to Done in Release 5.0.3 Dec 4, 2024
@simpleidserver simpleidserver reopened this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants