Project

Profile

Help

Issue #2219

closed

Erratum pkglists are not validated during upload

Added by ttereshc over 7 years ago. Updated about 5 years ago.

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

Description

One can upload invalid erratum pkglist. No error during upload, only publish will fail.

Upload erratum with pkglist like:

"pkglist": [{"wrong_packages": [{"anything": "can", "be": "here"}]}]

Observe no error and a corresponding record in the DB:

    "pkglist" : [
        {
            "_pulp_repo_id" : "zoo",
            "wrong_packages" : [
                {
                    "be" : "here",
                    "anything" : "can"
                }
            ]
        }
    ],

To reproduce use upload via API.
Structure of the erratum upload request can be found using this recipe with `pulp-admin -vv`


Related issues

Has duplicate Pulp - Issue #3046: pulp-rpm Merging Errata fails with KeyError exceptionCLOSED - DUPLICATEActions

Also available in: Atom PDF