Bug 1009462 - unexpected behavior when messing with spacewalk-report options
unexpected behavior when messing with spacewalk-report options
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server (Show other bugs)
Unspecified Unspecified
unspecified Severity low
: ---
: ---
Assigned To: Tomáš Kašpárek
Ales Dujicek
: Reopened
Depends On:
Blocks: sat570-lowbug
  Show dependency treegraph
Reported: 2013-09-18 09:53 EDT by Jan Hutař
Modified: 2015-01-13 04:54 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-01-13 04:54:18 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jan Hutař 2013-09-18 09:53:18 EDT
Description of problem:
spacewalk-report should probably check its options more strictly or at least this should be investigated.

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

How reproducible:

Steps to Reproduce:
1. # spacewalk-report inventory --like=profile_name='unknown_haha%'
   (same for "--where=pro...")

Actual results:
Same output as with no option specified as all (whole inventory is being listed)

Expected results:
I would expect error as I have used incorrect option or something

Additional info:
This is clearly typo/users error, but IMO some error message should appear.

Discovered while testing bug 972759.

I do not consider this a blocker for Sat560 release.
Comment 1 Tomáš Kašpárek 2013-10-01 09:38:46 EDT
--like=profile_name='unknown_haha%' vs. --like.profile_name='unknown_haha%' 

--like and --where should be followed by '-' sign and not equals sign as you've used

 spacewalk-report --help
Usage: /usr/bin/spacewalk-report [options] [report_name]

                        limit the output to records where column-id has value
                        limit the output to records where column-id has value
                        like VALUE (string only)
Comment 2 Tomáš Kašpárek 2013-10-01 09:39:32 EDT
--like=profile_name='unknown_haha%' vs. --like.profile_name='unknown_haha%' 

should be:

--like=profile_name='unknown_haha%' vs. --like-profile_name='unknown_haha%'
Comment 3 Jan Hutař 2013-10-01 09:45:14 EDT
I meant that spacewalk-report should error out (should check for its options more strictly). Sorry for not making it clear in the initial description.
Comment 4 Tomáš Kašpárek 2013-10-01 10:55:52 EDT
fixed in spacewalk master: f29691fbb0a540ff206fee0d06e0e431d78f27af
Comment 6 Clifford Perry 2015-01-13 04:54:18 EST
With the release of Red Hat Satellite 5.7 on January 12th 2015 this bug is
being moved to a Closed Current Release state. 

The Satellite 5.7 GA Errata:
 - https://rhn.redhat.com/errata/RHSA-2015-0033.html 

Satellite 5.7 Release Notes:

Satellite Customer Portal Blog announcement for release:
 - https://access.redhat.com/blogs/1169563/posts/1315743 


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