Skip to content

fix(admin): accept multiple selected releases in malware reports#20236

Open
nnja wants to merge 1 commit into
pypi:mainfrom
nnja:fix-malware-reports-select-mult-releases
Open

fix(admin): accept multiple selected releases in malware reports#20236
nnja wants to merge 1 commit into
pypi:mainfrom
nnja:fix-malware-reports-select-mult-releases

Conversation

@nnja

@nnja nnja commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #20235 for both release quarantine and release deletion, taking a slightly different approach than #20222.

With the understanding that this may be a larger change than desired, given the change touches warehouse/config.py.

@miketheman let me know what you think. I'm looking for feedback and insight into what's preferred for Warehouse.

If two or more releases are selected for quarantine or deletion,
submitting the form results in a 400 due to the duplicate POST
keys check in `reject_duplicate_post_keys_view`.

Change `permit_duplicate_post_keys` to accept either `True`
(allow all keys) or an allow list. Change both verdict
views to allow duplicate `versions` but reject other
duplicated keys.

Signed-off-by: Nina Zakharenko <nzakharenko@gmail.com>
@nnja nnja requested a review from a team as a code owner June 30, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin: Multiple releases cannot be selected in a Malware Report for quarantine or removal

1 participant