jaydata icon indicating copy to clipboard operation
jaydata copied to clipboard

Cannot update key fields using odata

Open phil-mitchell opened this issue 9 years ago • 1 comments

When using odata, it is impossible to update a key field. The URL is constructed based on the current values in the entity, so if one of the key fields has changed, the MERGE request will result in a 404 Not Found error.

The odata server is nice enough to include a URI in the metadata of the entity. Why not use that instead of reconstructing the URL every time?

phil-mitchell avatar Jun 26 '15 18:06 phil-mitchell

Yes, updating key fields is disallowed by odata, but 404 is not the right error message, and it should really be left to the provider to determine what to do.

phil-mitchell avatar Jul 04 '15 15:07 phil-mitchell