Project

Profile

Help

Issue #433

closed

Permission Grant : Role-id Issue

Added by bstromski@jumptrading.com about 9 years ago. Updated almost 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.7.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Description of problem:
A repository with a '.' in the repo-id will fail when trying to grant permission to a role-id to that repository.

Version-Release number of selected component (if applicable):
pulp 2.3.1-1.el6.noarch

How reproducible:
Everytime

Steps to Reproduce:
1. create a repo with a '.' in the name (i.e. rhel6.3-production)
2. create a new user & role (i.e. test/test)
3. pulp-admin auth permission grant --resource="/v2/repositories/rhel6.3-production/" -o execute -o update -o read -o delete --role-id="test"

Actual results:
An internal error occurred on the Pulp server. More information can be found in
the client log file ~/.pulp/admin.log.

-- From log --
"exception": [
"InvalidDocument: key '/v2/repositories/rhel6.2-qa-staging/' must not contain '.'\n"
],

Expected results:
This works when a --login=test is specified, but fails when --role-id is specified.

Additional info:

+ This bug was cloned from Bugzilla Bug #1099649 +


Related issues

Related to Pulp - Issue #1057: CLI returns unclear error for nonexistant role-id in permission grant/revokeCLOSED - WONTFIXActions

Also available in: Atom PDF