Bug 785251

Summary: ipa permisison-find --name brings back all permissions
Product: Red Hat Enterprise Linux 6 Reporter: Namita Soman <nsoman>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.2CC: jgalipea, mkosek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-3.0.0-1.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 09:09:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Namita Soman 2012-01-27 19:17:12 UTC
Description of problem:
Use --name to bring back the permission, and all permissions are retrieved.

# ipa permission-find --name=ManageUser1
brings back all permissions.

# ipa permission-find ManageUser1
--------------------
1 permission matched
--------------------
  Permission name: ManageUser1
  Permissions: write
  Attributes: carlicense, description
  Type: user
----------------------------
Number of entries returned 1
----------------------------

Version-Release number of selected component (if applicable):
ipa-server-2.2.0-101.20120123T0157zgit64cf8a4.el6.x86_64


How reproducible:
always

Steps to Reproduce:
1. add a permission
2. find it using
ipa permission-find --name=<name>

  
Actual results:
All permissions are listed

Expected results:
Just that permission is listed

Additional info:

Comment 2 Martin Kosek 2012-01-30 08:05:00 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2320

Comment 3 Namita Soman 2012-02-09 16:05:07 UTC
Using ipa-server-2.2.0-101.20120209T0933zgit52cf9d9.el6.x86_64
I see the error below:
# ipa permission-find --name ManageUser1 
ipa: ERROR: overlapping arguments and options: ['cn']

And ManageUser1 is available:
# ipa permission-show ManageUser1 
  Permission name: ManageUser1
  Permissions: write
  Attributes: carlicense, description
  Type: user

Comment 4 Martin Kosek 2012-05-14 08:08:30 UTC
Fixed upstream:
master: https://fedorahosted.org/freeipa/changeset/95bb8d0f45c3061035633c7b9c3b1609b11a158d

Comment 7 Namita Soman 2012-11-26 17:21:47 UTC
Verified using ipa-server-3.0.0-8.el6.x86_64

:: [11:04:19] ::  Executing: ipa permission-find --name=ManageUser1 --all
:: [11:04:20] ::  Searching for permissions: ManageUser1
Permission name: ManageUser1
:: [11:04:20] ::  Permission ManageUser1 found as expected.
:: [   PASS   ] :: Verify permissions are found for --name=ManageUser1

----

:: [   PASS   ] :: Verify error message for invalid name
:: [   PASS   ] :: File '/tmp/tmp.2fm5O9W9H8/ipapermission_invalidname.log' should contain 'Number of entries returned 0'
---------------------
0 permissions matched
---------------------
----------------------------
Number of entries returned 0
----------------------------

Comment 9 errata-xmlrpc 2013-02-21 09:09:38 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.

http://rhn.redhat.com/errata/RHSA-2013-0528.html