Bug 1695566 - Updating Advanced Settings with an invalid key-value pair lands in Exception page
Summary: Updating Advanced Settings with an invalid key-value pair lands in Exception ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: API
Version: 5.10.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: GA
: 5.11.0
Assignee: Yuri Rudman
QA Contact: Parthvi Vala
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-03 11:31 UTC by Parthvi Vala
Modified: 2019-12-12 13:36 UTC (History)
4 users (show)

Fixed In Version: 5.11.0.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-12 13:36:21 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Exception Page (127.17 KB, image/png)
2019-04-03 11:31 UTC, Parthvi Vala
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:4199 0 None None None 2019-12-12 13:36:35 UTC

Description Parthvi Vala 2019-04-03 11:31:14 UTC
Created attachment 1551337 [details]
Exception Page

Description of problem:
While automating test case for a BZ, I passed wrong data for updating the advanced settings and landed in Exception page on navigating to `Configuration`.

Version-Release number of selected component (if applicable):
5.10

How reproducible:
Always

Steps to Reproduce:
1. Send a request:
       PATCH /api/servers/:server_id/settings
       JSON: {"allow_api_service_ordering": false }
2. Login to appliance, navigate to `Configuration`. If everything is normal, logout and login again.
3. Navigate to `Configuration`.

Actual results:
The page shows Exception.

Expected results:
Not sure what expected result must be in this case.

Additional info:
Problems exists from 5.9.

Comment 5 CFME Bot 2019-04-05 08:52:19 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/de010a99402cefbb3b0c0e55c1e1aaa54080ff88
commit de010a99402cefbb3b0c0e55c1e1aaa54080ff88
Author:     Yuri Rudman <yrudman>
AuthorDate: Thu Apr  4 08:54:13 2019 -0400
Commit:     Yuri Rudman <yrudman>
CommitDate: Thu Apr  4 08:54:13 2019 -0400

    fix: when settings value added on root level (without category) than parameter 'hashin' passed to copy_hash(hashin) is not instanse of Hash and error raised [NoMethodError] undefined method 'deep_clone'...
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1695566

 app/controllers/ops_controller/settings/common.rb | 4 +-
 1 file changed, 1 insertion(+), 3 deletions(-)

Comment 6 Parthvi Vala 2019-05-01 07:23:02 UTC
FIXED. Verified on 5.11.0.2.20190430174828_0e34dea.

Comment 8 errata-xmlrpc 2019-12-12 13:36:21 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:4199


Note You need to log in before you can comment on or make changes to this bug.