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

Incorrect path parsing for custom schema extensions #697

Open
cycp opened this issue Jul 19, 2024 · 1 comment
Open

Incorrect path parsing for custom schema extensions #697

cycp opened this issue Jul 19, 2024 · 1 comment
Assignees

Comments

@cycp
Copy link

cycp commented Jul 19, 2024

Describe the bug
Custom schema extensions will be parsed incorrectly. The following example will add bar: "some value" to the path "urn:scim:schemas:extension:foo:1.0".User instead of "urn:scim:schemas:extension:foo:1.0:User".

To Reproduce
Attempt a patch operation with a custom schema extension. e.g.

{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:PatchOp"
  ],
     "Operations":[
       {
         "op":"replace",
         "value": {
            "urn:scim:schemas:extension:foo:1.0:User": {
                bar: "some value",        
            }
         }
       }
     ]
}

Expected behavior
Operations for custom schema extensions should replace the values at the correct path, both when path is defined and not defined in data.Operations.

@chenlevy4
Copy link

+1

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

3 participants