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

Add operation of a multi value attribute via patch action fails on path values with selection filters #309

Open
eziv-ptc opened this issue Mar 16, 2021 · 0 comments

Comments

@eziv-ptc
Copy link

Description:
PathcOperationUtil.doPatchAdd "loses" the value for the selection filter and hence the entire patch action fails. This happens when adding a new attribute. When replacing an attribute value (via "add" or "replace") - the old selection filter is used instead of the new one (from the request).

Affected Product Version:
3.3.33 and above

Steps to reproduce:

  1. Create a single user
  2. Update a multi value attribute for that user with a patch request that contains a selection filter. For example:
{
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:PatchOp"
    ],
    "Operations": [
        {
            "op": "Add",
            "path": "emails[type eq \"work\"].value",
            "value": "john_doe@foo.com"
        }
   ]
}
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

No branches or pull requests

1 participant