Bug 1552824

Summary: Can Add Duplicate Custom Attributes on OpenShift Provider Via the API
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: APIAssignee: Gregg Tanzillo <gtanzill>
Status: CLOSED ERRATA QA Contact: Martin Kourim <mkourim>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: cpelland, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.2.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1544800 Environment:
Last Closed: 2018-05-07 20:44:14 UTC Type: ---
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: 1544800    
Bug Blocks:    

Comment 2 CFME Bot 2018-03-07 20:08:16 UTC
New commit detected on ManageIQ/manageiq-api/gaprindashvili:

https://github.com/ManageIQ/manageiq-api/commit/deb7a2bd83dee986ae77a7c268fe6a8a0fe6f117
commit deb7a2bd83dee986ae77a7c268fe6a8a0fe6f117
Author:     Alberto Bellotti <abellotti.github.com>
AuthorDate: Wed Feb 14 08:40:45 2018 -0500
Commit:     Alberto Bellotti <abellotti.github.com>
CommitDate: Wed Feb 14 08:40:45 2018 -0500

    Merge pull request #320 from jntullo/custom_attrs_create

    Default section to "metadata" across custom attributes add action
    (cherry picked from commit 2ef6cfe981f78c56443088685c9b21411db55bec)

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1552824

 app/controllers/api/subcollections/custom_attributes.rb | 2 +-
 spec/requests/custom_attributes_spec.rb | 20 +
 2 files changed, 21 insertions(+), 1 deletion(-)

Comment 4 Dave Johnson 2018-04-04 17:53:41 UTC
Martin, should this be on you or pushed to someone else?

Comment 5 Martin Kourim 2018-04-06 14:31:21 UTC
Verified on 5.9.2.0 that adding a custom attribute with the same name as an existing attribute updates the existing attribute.

Comment 8 errata-xmlrpc 2018-05-07 20:44:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:1328