Bug 1034316 - permission documentation has wrong resource path
Summary: permission documentation has wrong resource path
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Pulp
Classification: Retired
Component: documentation
Version: 2.3
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: amacdona@redhat.com
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-25 15:23 UTC by Michael Hrivnak
Modified: 2015-02-28 22:00 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-28 22:00:07 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 386 0 None None None Never

Description Michael Hrivnak 2013-11-25 15:23:31 UTC
Description of problem:
Looking at the examples here: http://pulp-dev-guide.readthedocs.org/en/latest/integration/rest-api/permission/actions.html

... the resource seems to be incorrect. Using "/repositories/" as the resource does not actually work. Using "/v2/repositories/" does work. The examples should be updated to have the "/v2" prefix.

Version-Release number of selected component (if applicable):
2.3.0-0.33.beta


How reproducible:
always


Steps to Reproduce:
1. $ pulp-admin auth permission grant --login=me --resource='/repositories/' -o read
2. $ pulp-admin rpm repo list


Actual results:
error: Insufficient Permissions


Expected results:
list of repositories


Additional info:
The following command causes the repo list to work:

$ pulp-admin auth permission grant --login=me --resource='/v2/repositories/' -o read

Comment 1 amacdona@redhat.com 2014-10-07 14:27:26 UTC
Fixed with https://github.com/pulp/pulp/pull/1194

Comment 3 Brian Bouterse 2015-02-28 22:00:07 UTC
Moved to https://pulp.plan.io/issues/386


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