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
[dev.icinga.com #11396] inconsistent API /v1/objects/* response for PUT requests #4038
Comments
Updated by mfriedrich on 2016-03-18 10:07:03 +00:00
|
Updated by mfriedrich on 2016-03-18 23:56:15 +00:00
|
Updated by tgelf on 2016-03-19 22:02:28 +00:00 @dnsmichi: modified => 200, created => 201, unchanged => 304 |
Updated by mfriedrich on 2016-05-09 13:04:54 +00:00
The PUT error should return a JSON error instead of throwing an exception. In terms of detecting whether an object was modified or not - that is currently not possible at this stage and not planned to add that. I'm therefore fixing the PUT error message as missing part to resolve the ticket. |
Updated by mfriedrich on 2016-05-09 13:10:03 +00:00
Applied in changeset 8a65c4a. |
Updated by mfriedrich on 2016-05-09 13:10:31 +00:00
|
Updated by mfriedrich on 2016-05-10 11:43:29 +00:00 Similar problem when specifying an invalid attribute (e.g. 'check_command' for a usergroup object) or internal attributes. |
Updated by mfriedrich on 2016-05-11 07:38:32 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/11396
Created by danvaida on 2016-03-16 12:39:04 +00:00
Assignee: mfriedrich
Status: Resolved (closed on 2016-05-09 13:10:03 +00:00)
Target Version: 2.4.8
Last Update: 2016-05-11 07:38:31 +00:00 (in Redmine)
While calling the API for 3 operations, I am expecting something different. For example:
It'd be nice to get a 503 maybe (like in the case of other requests for already existing objects).
Also, I can't really tell if the object was indeed updated or not as it's always the same response:
Attachments
Changesets
2016-05-09 13:08:35 +00:00 by mfriedrich 8a65c4a
2016-05-10 11:43:36 +00:00 by mfriedrich 1c6f09f
2016-05-12 09:08:21 +00:00 by mfriedrich 83985f9
2016-05-12 09:09:49 +00:00 by mfriedrich 06f97c8
The text was updated successfully, but these errors were encountered: