Bug 1821750 - Searching for Glob may result in Unhandled Exception Causing Failure of all collected files.
Summary: Searching for Glob may result in Unhandled Exception Causing Failure of all c...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: SmartState Analysis
Version: 5.10.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.11.5
Assignee: Jerry Keselman
QA Contact: Niyaz Akhtar Ansari
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On: 1824259
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-07 14:10 UTC by Jerry Keselman
Modified: 2020-05-05 13:43 UTC (History)
4 users (show)

Fixed In Version: 5.11.5.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-05 13:43:34 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:
pm-rhel: cfme-5.11.z+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2020 0 None None None 2020-05-05 13:43:42 UTC

Description Jerry Keselman 2020-04-07 14:10:16 UTC
Description of problem:
An incorrect statement in FindClassMethods results in an attempt to sort a nil array of filenames.  This can result in no files collected.

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


How reproducible:
100%

Steps to Reproduce:
1.Enter a scan profile entry that matches no files on the virtual machine.
2.Run smartstate analysis using the above scan profile.
3.

Actual results:
Exception occurs, found in log, and no files are collected.

Expected results:
All requested files are collected

Additional info:

Comment 2 Jerry Keselman 2020-04-07 14:11:51 UTC
This bug was the result of attempts to bow to CodeClimate complaints about a previous PR, unfortunately.

Comment 3 Jerry Keselman 2020-04-07 16:33:30 UTC
Fixed by https://github.com/ManageIQ/manageiq-smartstate/pull/119

Comment 4 Jerry Keselman 2020-04-08 19:23:46 UTC
PR merged and manageiq-smartstate gem version 0.5.6 released.

Comment 5 Satoe Imaishi 2020-04-13 11:58:57 UTC
https://github.com/ManageIQ/manageiq/pull/20066

Comment 6 Niyaz Akhtar Ansari 2020-04-15 14:28:29 UTC
Hi Jerry,

Could you please provide me analysis profile content

Thanks,
~Niyaz

Comment 7 Jerry Keselman 2020-04-20 14:03:02 UTC
Niyaz,

The analysis profile can contain any files you would like to collect, and use more than one wildcard if you like.

Jerry

Comment 11 errata-xmlrpc 2020-05-05 13:43:34 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-2020:2020


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