Bug 1243496
| Summary: | accessing to vm_infra/explorer raises "Error caught: [ArgumentError] comparison of Array with Array failed" | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Chris Pelland <cpelland> |
| Component: | UI - OPS | Assignee: | Harpreet Kataria <hkataria> |
| Status: | CLOSED ERRATA | QA Contact: | Milan Falešník <mfalesni> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.4.0 | CC: | cpelland, dajohnso, fdewaley, hkataria, jhardy, jprause, mfalesni, mfeifer, mpovolny, mwelk, obarenbo, ssainkar |
| Target Milestone: | GA | Keywords: | ZStream |
| Target Release: | 5.4.1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | 5.4.1.0 | Doc Type: | Bug Fix |
| Doc Text: |
In the previous version of CloudForms Management Engine, accessing vm_infra/explorer raised "Error caught: [ArgumentError] comparison of Array with Array failed". This was because array was being sorted by boolean. The code was updated to fix issue in sort_tree method for VMs & Templates tree, and vm_infra/explorer can be accessed without an error.
|
Story Points: | --- |
| Clone Of: | 1242459 | Environment: | |
| Last Closed: | 2015-07-30 13:12:47 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: | 1242459 | ||
| Bug Blocks: | |||
|
Comment 2
CFME Bot
2015-07-15 19:21:20 UTC
New commit detected on cfme/5.4.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=6d08e83bdae38645bcc55daac5dd06e8a1dc4821 commit 6d08e83bdae38645bcc55daac5dd06e8a1dc4821 Merge: 7b686f4 5192b83 Author: Dan Clarizio <dclarizi> AuthorDate: Wed Jul 15 15:19:53 2015 -0400 Commit: Dan Clarizio <dclarizi> CommitDate: Wed Jul 15 15:19:53 2015 -0400 Merge branch '54z_bz_1243496' into '5.4.z' Fixed issue in sort_tree method for VMs & Templates tree. - Sorting an array by boolean was blowing up with "comparison of Array with Array failed" error, in this case customer's db had 2 EmsFolders at same level 1 was a datacenter and other one was not a datacenter, so in this case second parameter passed in to sort_by call was a boolean as a fix replaced boolean with 0,1 Sorting of arrays containing identical boolean values (ALL true or ALL false) works fine, but if 1 value differs sort throws an exception, as an example [false, true].sort fails in irb - Added spec test to verify the fix. https://bugzilla.redhat.com/show_bug.cgi?id=1242459 https://bugzilla.redhat.com/show_bug.cgi?id=1243496 @dclarizio please review, applied clean patch from master, original PR: https://github.com/ManageIQ/manageiq/pull/3460 See merge request !182 .../presenters/tree_builder_vms_and_templates.rb | 2 +- .../tree_builder_vms_and_templates_spec.rb | 24 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) Verified in 5.4.1.0. I dumped the database from the lab machine with 5.4.0.5, reimported into a new appliance with 5.4.1.0 and tried to access the Infra/VMs. The original appliance failed, 5.4.1.0 did not \o/ 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://rhn.redhat.com/errata/RHBA-2015-1511.html |