Bug 745935 - ipa help privilege-mod lists options to display
Summary: ipa help privilege-mod lists options to display
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-13 13:48 UTC by Namita Soman
Modified: 2011-10-14 13:02 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-14 13:02:43 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Namita Soman 2011-10-13 13:48:07 UTC
Description of problem:
ipa help privilege-mod indicates --rights, --raw and --all to display
But this cli is to modify, not display

#ipa help privilege-mod
Purpose: Modify a privilege.
Usage: ipa [global-options] privilege-mod NAME [options]

Options:
  -h, --help     show this help message and exit
  --desc=STR     Privilege description
  --addattr=STR  Add an attribute/value pair. Format is attr=value. The
                 attribute must be part of the schema.
  --setattr=STR  Set an attribute to a name/value pair. Format is attr=value.
                 For multi-valued attributes, the command replaces the values
                 already present.
  --rights       Display the access rights of this entry (requires --all). See
                 ipa man page for details.
  --all          Retrieve and print all attributes from the server. Affects
                 command output.
  --raw          Print entries as stored on the server. Only affects output
                 format.
  --rename=STR   Rename the privilege object


Version-Release number of selected component (if applicable):
ipa-server-2.1.2-2.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.ipa help privilege-mod

  
Actual results:
includes --rights, --all, --raw 

Expected results:
privilege-mod should not include these options

Additional info:

Comment 2 Martin Kosek 2011-10-13 14:29:38 UTC
This is intentional, --rights, --all and --raw are currently offered for all OBJECT-mod commands (like user-mod, group-mod, sudorule-mod, etc.).

These flags are used for formatting the response from the RPC server with the modified object (in your case privilege) in the same it is formatted with the mentioned display (OBJECT-show) methods.

Comment 3 Dmitri Pal 2011-10-13 16:13:35 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/1971

Comment 4 Martin Kosek 2011-10-14 06:41:39 UTC
I am proposing to close this ticket as NotABug for the reasons written above.

Comment 5 Namita Soman 2011-10-14 12:15:03 UTC
Sure. Please do so..I cannot.


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