Project

Profile

Help

Issue #7541

closed

Can't add permission if permission codename conflicts

Added by newswangerd about 4 years ago. Updated about 4 years ago.

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

Description

Related galaxy_ng issue: https://github.com/ansible/galaxy_ng/issues/448

The pulp permission API doesn't check the app label when it queries for permissions, which can lead to multiple permissions returned in some cases where plugins have conflicting model names.

In the case of galaxy_ng, we have a conflicting group model, which causes the following error to get thrown whenever anyone attempts to add permissions to manage groups to a user or group.

Exception Type: MultipleObjectsReturned at /api/automation-hub/_ui/v1/groups/1/model-permissions/
Exception Value: get() returned more than one Permission -- it returned 2!
Actions #1

Updated by pulpbot about 4 years ago

  • Status changed from NEW to POST

Added by newswangerd about 4 years ago

Revision 141d658b | View on GitHub

Query app label when looking up permissions.

closes #7541

Actions #2

Updated by newswangerd about 4 years ago

  • Status changed from POST to MODIFIED
Actions #3

Updated by bmbouter about 4 years ago

  • Sprint/Milestone set to 3.7.0
Actions #4

Updated by pulpbot about 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF