Bug 678435 - permission show on a resource should display super user as well.
Summary: permission show on a resource should display super user as well.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Jason Connor
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: 673053
TreeView+ depends on / blocked
 
Reported: 2011-02-17 22:13 UTC by Preethi Thomas
Modified: 2014-03-31 01:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-10 18:20:35 UTC


Attachments (Terms of Use)

Description Preethi Thomas 2011-02-17 22:13:29 UTC
Description of problem:

[root@preethi ~]# rpm -q pulp
pulp-0.0.139-1.fc14.noarch


[root@preethi ~]# pulp-admin -u admin -p admin  permission show --resource=/
+------------------------------------------+
              Permissions for /
+------------------------------------------+
  admin                	CREATE, READ, UPDATE, DELETE, EXECUTE

[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin -u admin -p admin  permission show --resource=/repositories/
+------------------------------------------+
       Permissions for /repositories/
+------------------------------------------+
  preethi                	READ                     


IRC conversation for reference

<jconnor> permissions are inherited downward from root (/)
<preethi> http://fpaste.org/QzP7/
<jconnor> so if you can read on /, you can read on anything
<preethi> so why doesn't show admin while / showed admin
<jconnor> so super-users simply get granted create read update delete execute on /
<jconnor> because the listing only grabs the permissions for that particular resource, instead of all the parent resources
<preethi> ok
<jconnor> if you think that's wrong, feel free to file the bug :)
<preethi> i guess its confusing to me  :)
<jconnor> it's not just a question of if it works, but also how well
<preethi> so I am thinking if it only grabs the permission for that resource,  super user has permissions for that as well right? so I would think it should show super user as well
<preethi> jconnor, I will write one up anyway, you can close it if you think its should stay as is
<jconnor> sounds good
<jconnor> I'll probably ask for feedback from others before I close it though
<jconnor> I think we all know my opinion, but it's not the only one :)


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