Add set_label / unset_label to the DEB PackageViewSet policy
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- api, authorization
Research direction
Start with the DEB PackageViewSet policy and compare it with the RPM package policy, which already permits these actions. Add permission tests for set_label and unset_label using core.manage_content_labels, then verify users with that permission are allowed while others still receive HTTP 403.
Written by the indexing model from the issue text.
Description
The DEB PackageViewSet policy permits only list, retrieve, and create. Therefore, set_label and unset_label return HTTP 403 even for users with core.manage_content_labels.
RPM package endpoints already allow these actions. Adding equivalent DEB policy support, gated by core.manage_content_labels, with permission tests.
This is required to add labels to existing DEB content through the Pulp API without modifying the Pulp database directly.
- Dominant language
- Python
- Stars
- 71
- Forks
- 91
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 22
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pulp/pulp_deb
-
Sync fails for a flat repo whose Release lists only SHA512 checksums (PackageIndex requires sha256) Open
Difficulty 3/5 1-2 days Newbie friendliness 78/100
-
Triage-Needed
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
.bugfix
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Remote not signed OpenTriage-Needed
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Triage-Needed
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100