loopback icon indicating copy to clipboard operation
loopback copied to clipboard

PUT nested resource allows for setting wrong fk. Bug?

Open geertbrit opened this issue 12 years ago • 3 comments

Given the endpoint PUT /A/<x>/B with fk on B: B.Aid, it's allowed to set B.Aid to something else then x. This is a bug imho.

For ref: POST /A/<x>/B does correctly fix B.Aid to be x. Irregardless of what's defined in the POST body. This seems like the way to go.

geertbrit avatar Oct 01 '14 23:10 geertbrit

@gebrits Do you still need this fix? Would you be able to submit a fix patch?

rashmihunt avatar Jun 29 '17 21:06 rashmihunt

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 28 '17 22:08 stale[bot]

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

stale[bot] avatar Sep 11 '17 22:09 stale[bot]