Bug 1702479

Summary: unable to create or edit a service from the api with "Picture expected, got Hash" error
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: APIAssignee: drew uhlmann <duhlmann>
Status: CLOSED ERRATA QA Contact: Parthvi Vala <pvala>
Severity: low Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: low    
Version: 5.9.7CC: dmetzger, duhlmann, fdewaley, mshriver, obarenbo, yrudman
Target Milestone: GAKeywords: ZStream
Target Release: 5.10.4   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.10.4.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1683723 Environment:
Last Closed: 2019-05-21 05:47:07 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: 1683723    
Bug Blocks:    

Comment 2 CFME Bot 2019-04-24 19:48:24 UTC
New commit detected on ManageIQ/manageiq/hammer:

https://github.com/ManageIQ/manageiq/commit/8174dc3bbaf02b95971b941a670fc5c4e1921b52
commit 8174dc3bbaf02b95971b941a670fc5c4e1921b52
Author:     Joe Rafaniello <jrafanie.github.com>
AuthorDate: Tue Apr 23 14:25:10 2019 -0400
Commit:     Joe Rafaniello <jrafanie.github.com>
CommitDate: Tue Apr 23 14:25:10 2019 -0400

    Merge pull request #18674 from d-m-u/fix_creating_service_template_with_picture

    Handle picture correctly on service template update/create

    (cherry picked from commit d26ae5a0035a6ecead52e2850557e28e829f6f41)

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

 app/models/service_template.rb | 11 +-
 spec/models/service_template_spec.rb | 18 +
 2 files changed, 27 insertions(+), 2 deletions(-)

Comment 4 drew uhlmann 2019-04-26 12:39:00 UTC
Good catch, Parthvi! The working update is here: https://github.com/ManageIQ/manageiq/pull/18689

Comment 5 CFME Bot 2019-04-29 20:40:59 UTC
New commit detected on ManageIQ/manageiq/hammer:

https://github.com/ManageIQ/manageiq/commit/cebab02f23077496a12913e5ed97026c72c23443
commit cebab02f23077496a12913e5ed97026c72c23443
Author:     Joe Rafaniello <jrafanie.github.com>
AuthorDate: Mon Apr 29 16:21:33 2019 -0400
Commit:     Joe Rafaniello <jrafanie.github.com>
CommitDate: Mon Apr 29 16:21:33 2019 -0400

    Merge pull request #18689 from d-m-u/service_template_picture

    Service template picture

    (cherry picked from commit 5f37ae764a60ae0985235d4f0b70a791b5b43afa)

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

 app/models/service_template.rb | 21 +-
 spec/models/service_template_spec.rb | 49 +-
 2 files changed, 46 insertions(+), 24 deletions(-)

Comment 6 CFME Bot 2019-04-30 12:50:40 UTC
New commit detected on ManageIQ/manageiq/hammer:

https://github.com/ManageIQ/manageiq/commit/40a1d86809762479e79f0f654a28b1b8507f4223
commit 40a1d86809762479e79f0f654a28b1b8507f4223
Author:     Martin Povolny <mpovolny>
AuthorDate: Tue Apr 30 07:31:37 2019 -0400
Commit:     Martin Povolny <mpovolny>
CommitDate: Tue Apr 30 07:31:37 2019 -0400

    Merge pull request #18705 from NickLaMuro/fix_service_template_picture_equals

    Fix ServiceTemplate#picture= with models

    (cherry picked from commit f7fc0cbfff944f8a39466d77f8c5b1f90551c542)

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

 app/models/service_template.rb | 8 +-
 spec/models/service_template_spec.rb | 21 +
 2 files changed, 26 insertions(+), 3 deletions(-)

Comment 7 Parthvi Vala 2019-05-02 08:35:02 UTC
FIXED. Verified on 5.10.4.1.20190430152139_40a1d86.

Comment 9 errata-xmlrpc 2019-05-21 05:47:07 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/RHBA-2019:1247