Bug 750302 - pulp-admin permission grant gives no error message when user is not specified
Summary: pulp-admin permission grant gives no error message when user is not specified
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-31 16:10 UTC by Jason Connor
Modified: 2014-03-31 01:39 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:15:28 UTC


Attachments (Terms of Use)

Description Jason Connor 2011-10-31 16:10:51 UTC
when granting permission, a user to grant the permissions to must be specified, if the --user flag is not specified, the command simply exits quietly.


$ pulp-admin permission grant --resource /repositories/D/ -o read -o update -o execute


$ pulp-admin permission grant --resource /repositories/D/ -o read -o update -o execute --user=user
Operations ['READ', 'UPDATE', 'EXECUTE'] granted to user [ user ] on resource [ /repositories/D/ ]


expected behavior would be to throw an error about the missing user

Comment 1 Jason Connor 2011-12-12 22:59:48 UTC
fix pushed in:

06160b45b1b88d6e24527d857ab0f44a0664981f

Comment 2 Jeff Ortel 2011-12-15 20:18:10 UTC
build: 0.255

Comment 3 Preethi Thomas 2011-12-21 13:39:59 UTC
verified
[root@preethi ~]# rpm -q pulp
pulp-0.0.255-1.fc15.noarch
[root@preethi ~]# 

[root@preethi ~]#  pulp-admin permission grant --resource /repositories/D/ -o read -o update -o execute
Usage: pulp-admin <options> permission grant <options>

pulp-admin: error: At least one user option is required; please see --help
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]#  pulp-admin permission grant --resource /repositories/D/ -o read -o update -o execute --user=user
no such user: user

Comment 4 Preethi Thomas 2012-02-24 20:15:28 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 5 Preethi Thomas 2012-02-24 20:17:12 UTC
Pulp v1.0 is released.


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