Actions
Issue #2021
closedPulp drops "release" field from uploaded erraum
Status:
CLOSED - WONTFIX
Priority:
Normal
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 and import an erratum to an RPM repository with a call like the following:
POST /pulp/api/v2/repositories/my_repo_id/actions/import_upload/ HTTP/1.1
Host pulp.example.com
Content-Type: application/json; charset=UTF-8
[…]
{
"unit_key": {"id": "my_erratum_id"},
"unit_metadata": {
"id": "my_erratum_id",
"description": "Dummy advisory for testing purposes\n",
"from": "nobody@redhat.com",
"issued": "2014-09-24 00:00:00",
"pkglist": [
{
"name": "RHSA-2014:1293",
"packages": [
{
"arch": "noarch",
"epoch": "0",
"filename": "bear-4.1-1.noarch.rpm",
"name": "bear",
"release": "1",
"src": "bear-4.1-1.src.rpm",
"sum": [
"md5",
"37b48f6bbd1df40511f429e7fa16902a"
],
"version": "4.1"
}
],
"short": ""
}
],
"pushcount": "1",
"reboot_suggested": false,
"references": [
{
"href": "https://rhn.redhat.com/errata/RHSA-9999-0001.html",
"id": null,
"title": "RHSA-9999:0001",
"type": "self"
}
],
"release": "0",
"rights": "Copyright 2014 Red Hat Inc",
"severity": "Critical",
"solution": "Eat sleep rave repeat\n",
"status": "final",
"summary": "This advisory solves nothing\n",
"title": "Dummy advisory 1",
"type": "security",
"updated": "2014-09-24 00:00:00",
"version": "1"
},
"unit_type_id": "erratum",
"upload_id": "my_upload_id"
}
Pulp ignores the outermost release
field. (The one with a value of "0".) When the repository containing the erratum is subsequently published, the generated updateinfo.xml
field has no release
field.
Updated by bmbouter about 5 years ago
- Status changed from NEW to CLOSED - WONTFIX
Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.
Actions