-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
PATCH Remove operation for sub-attribute in a complex (multi-valued) attribute not working #57
Comments
I tried to reproduce the bugs with the latest changes made on the branch "release/1.1.9" without success. |
Hey, yep, I was able to still reproduce it. I think the problem is that the Parent of the sub-attribute I am trying to Replace or Remove is null. It seem that on a Patch request, the first thing is to Get the current data from the database. Our Get implementation includes parsing a Json object to SCIMRepresentation using this method: I think that when generating a complex attribute from JObject the Parent of the sub-attributes is not set.
here after line 142: And with that additional change, both Remove and Replace operations worked well for the sub-attributes with the latest changes on the release 1.1.9 branch. Do you think this method can be fixed as well to set the Parent of the sub-attributes? Thanks again |
Oups sorry, I didn't check if there were regressions on the Entity Framework project. |
Great. I tried it, indeed the operation works smoothly when the Parent of the sub-attribute is present. Thanks a lot! |
Hello,
I am having the following "roles" complex multi-valued model as part of my user schema model:
When I try to execute the following Remove patch operation on it, the display sub-attribute is not removed:
I was trying to debug it a bit, and I think that the problem may be is somewhere around the following code:
https://github.com/simpleidserver/SimpleIdServer/blob/master/src/Scim/SimpleIdServer.Scim/Extensions/SCIMRepresentationExtensions.cs#L59
The Parent value seem to be null, although it should be the "roles" attribute to which the "display" sub-attribute belongs.
There is a similar issue with the Replace operation on sub-attribute in a complex attribute - the old value of the sub-attribute is not replaced with the new one. But instead, the new value of the sub-attribute is added as an attribute to the root level of the user object.
Thanks a lot in advance for the time
The text was updated successfully, but these errors were encountered: