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

Update operations with different ids in the URL and the resource body are successful #305

Closed
ametke opened this Issue Mar 1, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@ametke

ametke commented Mar 1, 2016

According to the spec, update operations should return a 400 error code if the id specified in the URL does not match the id specified in the resource:

"The request body SHALL be a Resource with an id element that has an identical value to the [id] in the URL. If no id element is provided, or the value is wrong, the server SHALL respond with a HTTP 400 error code, and SHOULD provide an operation outcome identifying the issue."

However, HAPI always uses the id specified in the URL, even if the Resource contains a different id.

@jamesagnew

This comment has been minimized.

Owner

jamesagnew commented Mar 10, 2016

Thanks for reporting! I'm checking in a fix now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment