Hi All,

Currently, I'm working on to support the "path" attribute in the SCIM PATCH
ADD operation. While working on that, I come across some confusion on how
we are going to handle the following few use-cases.
1. According to the SCIM protocol specification, if the "path" attribute is
not provided in the request then we assume that the target location is
resource itself.

If omitted, the target location is assumed to be the resource
> itself. The "value" parameter contains a set of attributes to be
> added to the resource.


But if the path attribute is present in the request but path attribute
value is empty. In this case, how we are going to treat the request, are we
going to assume the target location as a resource itself and process the
Patch Add operation or going to throw an error? if we are going to throw an
error what should be the error message?

2. According to the specification, path attribute can have a filter
condition. as an example,

 "path":"addresses[type eq \"work\"]"

Where we going to patch the address its type is equal to work.

Under the Patch Add operation, we haven't specifically instructed how we
need to handle it.
So how we are going to handle this kind of use-case?
But this is kind of Patch Replace upon provided condition. In Patch Replace
it has been explained how we going to treat.
So shall we treat this kind of operation as patch replace?

Please provide your guidance around this.
[1] https://tools.ietf.org/html/rfc7644#section-3.5.2.1

Thanks,
Sarubi.
-- 
*Sarubi Thillainathan* | Software Engineer | WSO2 Inc.
(m) +94 (0) 76 684 9101 | (e) sar...@wso2.com,stsa...@gmail.com

*[image: https://wso2.com/signature] <https://wso2.com/signature>*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to