SCIMReferenceCode
SCIMReferenceCode copied to clipboard
Non-compliant PATCH calls
Your test suite tries to PATCH a group with the following call:
PATCH http://{{Server}}{{Port}}/{{Api}}/Groups/{{groupid}}
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:PatchOp"
],
"Operations": [
{
"name": "addMember",
"op": "add",
"path": "members",
"value": [
{
"displayName":"new User",
"value":"{{id4}}"
}
]
}
]
}
However, it seems that 'displayName' should be 'display' as per https://tools.ietf.org/html/rfc7644.
This causes my endpoint to seemingly correctly output:
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"status": 400,
"scimType": "invalidPath",
"detail": "invalidPath: no attribute named 'displayName' from 'members'"
}
Which in turn causes a subsequent test to fail as the user is not a member of that group.
Can you confirm this is an error, and should I open a pull request to fix?
Thanks!