-
Notifications
You must be signed in to change notification settings - Fork 38
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
REPLACE with a filter doesn't behave as expected #201
Comments
I could verify that there are even more issues than you described after writing some unit-tests to reproduce your issues. I guess this will take some time. The best to do would be some refactoring since the patch-implementations is lacking maintainability... |
I would like to ask someone about another opinion and if you would be willing to give me some input here it would help a lot. I am currently struggling with my own defintions actually
what do you think of the first and last definition here? Currently I would say they should behave some way and throwing a bad request exception instead of returning a 200 in the first case. But I have a cloudy memory of discussing this with a colleague of mine that eventually resulted in this definition. |
I would personally expect a 400 Bad Request, based on the pre-defined error type for a similar scenario in RFC7644:
|
This will be some work. And I am currently short on time. I will give my best to get it fixed soon |
I tried my best to fix it. Please try it and let me know if anything else happened. |
Thank you for looking into and fixing this issue Pascal, we really appreciate it. On a side note, when do you plan to release the POJO creator? |
the POJO creator is already usable. Its actually meant as second-hand tool that can be checked out and build. Its a standalone tool with a JavaFX GUI. I never meant to upload it anywhere |
Given a User with an emails payload of:
When patching with the following request
I expect the outcome to be
But the actual outcome is
According to the wiki, it says that this should only update matching nodes from the filter https://github.com/Captain-P-Goldfish/SCIM-SDK/wiki/Patching-resources#add-3
When using
add
with the same filter, a new item is just added to the array, they aren't "merged" togetherThe text was updated successfully, but these errors were encountered: