Bug 1476869
Summary: | inconsistent response when deleting nonexistent authentication using API | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Martin Kourim <mkourim> | |
Component: | API | Assignee: | Gregg Tanzillo <gtanzill> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Martin Kourim <mkourim> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 5.8.0 | CC: | jhardy, obarenbo, simaishi, smallamp | |
Target Milestone: | GA | Keywords: | TestOnly | |
Target Release: | 5.10.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | api:rest | |||
Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1511105 (view as bug list) | Environment: | ||
Last Closed: | 2018-06-21 21:09:59 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1511105 |
Description
Martin Kourim
2017-07-31 16:30:37 UTC
The issues is resolved for DELETE method, but is still there for POST method: POST https://<ip_address>/api/authentications/2222 {"action": "delete"} Response: { "success": false, "message": "Couldn't find Authentication with 'id'=2222" } New commit detected on ManageIQ/manageiq-api/master: https://github.com/ManageIQ/manageiq-api/commit/7d229d32f63ca56e0f1d4bdd389aa67a62b37f59 commit 7d229d32f63ca56e0f1d4bdd389aa67a62b37f59 Author: Jillian Tullo <jtullo> AuthorDate: Tue Nov 7 10:42:27 2017 -0500 Commit: Jillian Tullo <jtullo> CommitDate: Tue Nov 7 10:42:27 2017 -0500 Ensure delete_action_handler always raises a not found for single resources https://bugzilla.redhat.com/show_bug.cgi?id=1476869 app/controllers/api/base_controller/results.rb | 6 +++++- spec/requests/authentications_spec.rb | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) |