Bug 750302

Summary: pulp-admin permission grant gives no error message when user is not specified
Product: [Retired] Pulp Reporter: Jason Connor <jconnor>
Component: z_otherAssignee: Jason Connor <jconnor>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: mmccune
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-24 20:15:28 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 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.