Bug 1544800
Summary: | Can Add Duplicate Custom Attributes on OpenShift Provider Via the API | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | juwatts | |
Component: | API | Assignee: | Gregg Tanzillo <gtanzill> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Parthvi Vala <pvala> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 5.9.0 | CC: | cpelland, mkourim, obarenbo, pvala | |
Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
Target Release: | 5.10.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1552824 (view as bug list) | Environment: | ||
Last Closed: | 2019-02-11 14:00:20 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | CFME Core | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1552824 |
Description
juwatts
2018-02-13 14:29:58 UTC
New commit detected on ManageIQ/manageiq-api/master: https://github.com/ManageIQ/manageiq-api/commit/5dff1e383aeef4d94befee7b3b17f3e44e6f2cf5 commit 5dff1e383aeef4d94befee7b3b17f3e44e6f2cf5 Author: Jillian Tullo <jtullo> AuthorDate: Wed Feb 14 07:37:45 2018 -0500 Commit: Jillian Tullo <jtullo> CommitDate: Wed Feb 14 07:37:45 2018 -0500 Default section to "metadata" across custom attributes add action When a new custom attribute is added, it defaults the section to "metadata" when the section is not specified. This causes issues if the request is then made again, especially because the default behavior for "add" is to edit. Without defaulting the section to "metadata" across the board, a new custom attribute is created, rather than updated. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1544800 .../api/subcollections/custom_attributes.rb | 2 +- spec/requests/custom_attributes_spec.rb | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) Verified on 5.10.0.20.20181016163900_fe677b4 that adding a custom attribute with the same name as an existing attribute updates the existing attribute. |