Bug 1328943 - hammer content-view filter info returns wrong information
Summary: hammer content-view filter info returns wrong information
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Zach Huntington-Meath
QA Contact: Katello QA List
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-20 16:37 UTC by Elyézer Rezende
Modified: 2021-07-21 09:32 UTC (History)
2 users (show)

Fixed In Version: rubygem-katello-3.0.0.27-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
test_negative_update_with_name (/robottelo/tests/foreman/cli/test_contentviewfilter.py)
Last Closed: 2016-07-27 11:33:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14909 0 None None None 2016-05-02 22:03:13 UTC

Description Elyézer Rezende 2016-04-20 16:37:39 UTC
Description of problem:
When running `hammer content-view filter info` passing `content-view-id` and `name` the command should print the information for the given name if found, otherwise should fail and state that was not able to find a match for the specified name. 


Version-Release number of selected component (if applicable):
satellite-6.2.0-8.2.beta.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. Create a content view filter with a valid name
2. Try to get the information by passing an empty name or any blank character

Actual results:
The command returns one already created filter not even matching the name

Expected results:
The command returns the right information if the name matches or states that was not able to find a content view with the specified name.


Additional info:


[root@sat62-server ~]# LANG=en_US.UTF-8  hammer -v -u admin -p changeme  content-view filter info --name="" --content-view-id="521"
Filter ID:    3
Name:         竗혫㧺𡃗훣ᨠ茛ᒵ扙𠔗
Type:         rpm
Inclusion:    false
Description:  
Repositories: 

Rules:

Comment 2 Zach Huntington-Meath 2016-05-02 21:05:13 UTC
Created redmine issue http://projects.theforeman.org/issues/14909 from this bug

Comment 3 Bryan Kearney 2016-05-03 14:17:38 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14909 has been closed

Comment 4 Lukas Pramuk 2016-05-19 21:48:02 UTC
VERIFIED.

@satellite-6.2.0-12.0.el6sat.noarch
tfm-rubygem-katello-3.0.0.31-1.el6sat.noarch

# hammer -u admin -p changeme  content-view filter info --name="my filter" --content-view-id="32"
Filter ID:    1
Name:         my filter
Type:         rpm
Inclusion:    true
Description:  
Repositories: 

Rules:

# hammer -u admin -p changeme  content-view filter info --name="o" --content-view-id="32"
Error: content_view_filter not found

# hammer -u admin -p changeme  content-view filter info --name="" --content-view-id="32"
Error: content_view_filter not found

Comment 5 Bryan Kearney 2016-07-27 11:33:55 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-2016:1501


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