Maintenance: Planio will be observing a scheduled maintenance window this Tuesday, November 5, 2024 from 03:00 UTC until 06:30 UTC to perform urgent network maintenance in our primary data center. Your Planio account will be unavailable during this maintenance window.
Actions
Issue #6604
closedA repo version can contain duplicated advisories
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 73
Quarter:
Description
It should never happen. Only one advisory with the same id can be present in a repo. Something is off with the conflict resolution part.
Migrated repo has those 4 advisories.
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
{
"count": 4,
"next": null,
"previous": null,
"results": [
{
"pulp_href": "/pulp/api/v3/content/rpm/advisories/f0e9bc06-6a56-4dae-9cbb-e9a38eb94bfb/",
"pulp_created": "2020-04-29T13:40:14.928024Z",
"artifact": null,
"id": "RHEA-2012:0055",
"updated_date": "2012-01-27 16:08:06",
"description": "Sea_Erratum",
"issued_date": "2012-01-27 16:08:06",
"fromstr": "errata@redhat.com",
"status": "stable",
"title": "Sea_Erratum",
"summary": "",
"version": "1",
"type": "security",
"severity": "",
"solution": "",
"release": "1",
"rights": "",
"pushcount": "",
"pkglist": [
{
"name": "collection-0",
"shortname": "",
"packages": [
{
"arch": "noarch",
"epoch": "0",
"filename": "walrus-5.21-1.noarch.rpm",
"name": "walrus",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "5.21"
},
{
"arch": "noarch",
"epoch": "0",
"filename": "penguin-0.9.1-1.noarch.rpm",
"name": "penguin",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "0.9.1"
},
{
"arch": "noarch",
"epoch": "0",
"filename": "shark-0.1-1.noarch.rpm",
"name": "shark",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "0.1"
}
]
}
],
"references": [],
"reboot_suggested": false
},
{
"pulp_href": "/pulp/api/v3/content/rpm/advisories/00b1b580-cc3c-45bc-82f5-e26bfec5579c/",
"pulp_created": "2020-04-29T13:40:14.926255Z",
"artifact": null,
"id": "RHEA-2012:0056",
"updated_date": "2013-02-27 17:00:00",
"description": "ParthaBird_Erratum",
"issued_date": "2013-01-27 16:08:08",
"fromstr": "errata@redhat.com",
"status": "stable",
"title": "Bird_Erratum",
"summary": "",
"version": "1",
"type": "security",
"severity": "",
"solution": "",
"release": "1",
"rights": "",
"pushcount": "",
"pkglist": [
{
"name": "collection-0",
"shortname": "",
"packages": [
{
"arch": "noarch",
"epoch": "0",
"filename": "crow-0.8-1.noarch.rpm",
"name": "crow",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "0.8"
},
{
"arch": "noarch",
"epoch": "0",
"filename": "stork-0.12-2.noarch.rpm",
"name": "stork",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "2",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "0.12"
},
{
"arch": "noarch",
"epoch": "0",
"filename": "duck-0.6-1.noarch.rpm",
"name": "duck",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "0.6"
}
]
}
],
"references": [],
"reboot_suggested": false
},
{
"pulp_href": "/pulp/api/v3/content/rpm/advisories/cab2ff5b-7140-4857-bcbe-55b224d3fca2/",
"pulp_created": "2020-04-29T13:40:14.924506Z",
"artifact": null,
"id": "RHEA-2012:0057",
"updated_date": "2013-01-27 16:08:05",
"description": "Bear_Erratum",
"issued_date": "2013-01-27 16:08:05",
"fromstr": "errata@redhat.com",
"status": "stable",
"title": "Bear_ErratumPARTHA",
"summary": "",
"version": "1",
"type": "security",
"severity": "",
"solution": "",
"release": "1",
"rights": "",
"pushcount": "",
"pkglist": [
{
"name": "collection-0",
"shortname": "",
"packages": [
{
"arch": "noarch",
"epoch": "0",
"filename": "bear-4.1-1.noarch.rpm",
"name": "bear",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "4.1"
}
]
}
],
"references": [],
"reboot_suggested": false
},
{
"pulp_href": "/pulp/api/v3/content/rpm/advisories/6c897512-4760-4c5a-b08b-c066f5232034/",
"pulp_created": "2020-04-29T13:40:14.922401Z",
"artifact": null,
"id": "RHEA-2012:0058",
"updated_date": "2014-07-20 06:00:01",
"description": "Gorilla_Erratum",
"issued_date": "2013-01-27 16:08:09",
"fromstr": "errata@redhat.com",
"status": "stable",
"title": "Gorilla_Erratum",
"summary": "",
"version": "1",
"type": "enhancement",
"severity": "",
"solution": "",
"release": "1",
"rights": "",
"pushcount": "",
"pkglist": [
{
"name": "collection-0",
"shortname": "",
"packages": [
{
"arch": "noarch",
"epoch": "0",
"filename": "gorilla-0.62-1.noarch.rpm",
"name": "gorilla",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "0.62"
}
]
}
],
"references": [],
"reboot_suggested": false
}
]
}
After syncing the same repo, 4 more advisories added
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept
{
"count": 4,
"next": null,
"previous": null,
"results": [
{
"pulp_href": "/pulp/api/v3/content/rpm/advisories/3b9175e1-453a-41ee-a629-ceccb9c4f16f/",
"pulp_created": "2020-04-29T13:47:12.092402Z",
"artifact": null,
"id": "RHEA-2012:0058",
"updated_date": "2014-07-20 06:00:01",
"description": "Gorilla_Erratum",
"issued_date": "2013-01-27 16:08:09",
"fromstr": "errata@redhat.com",
"status": "stable",
"title": "Gorilla_Erratum",
"summary": "",
"version": "1",
"type": "enhancement",
"severity": "",
"solution": "",
"release": "1",
"rights": "",
"pushcount": "",
"pkglist": [
{
"name": "1",
"shortname": "",
"packages": [
{
"arch": "noarch",
"epoch": "0",
"filename": "gorilla-0.62-1.noarch.rpm",
"name": "gorilla",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "0.62"
}
]
}
],
"references": [],
"reboot_suggested": false
},
{
"pulp_href": "/pulp/api/v3/content/rpm/advisories/71577217-4ec8-4112-8f43-114245f02000/",
"pulp_created": "2020-04-29T13:47:12.090669Z",
"artifact": null,
"id": "RHEA-2012:0057",
"updated_date": "2013-01-27 16:08:05",
"description": "Bear_Erratum",
"issued_date": "2013-01-27 16:08:05",
"fromstr": "errata@redhat.com",
"status": "stable",
"title": "Bear_ErratumPARTHA",
"summary": "",
"version": "1",
"type": "security",
"severity": "",
"solution": "",
"release": "1",
"rights": "",
"pushcount": "",
"pkglist": [
{
"name": "1",
"shortname": "",
"packages": [
{
"arch": "noarch",
"epoch": "0",
"filename": "bear-4.1-1.noarch.rpm",
"name": "bear",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "4.1"
}
]
}
],
"references": [],
"reboot_suggested": false
},
{
"pulp_href": "/pulp/api/v3/content/rpm/advisories/0d6f9a54-7117-4e53-ad49-62fa2063c07b/",
"pulp_created": "2020-04-29T13:47:12.088927Z",
"artifact": null,
"id": "RHEA-2012:0056",
"updated_date": "2013-02-27 17:00:00",
"description": "ParthaBird_Erratum",
"issued_date": "2013-01-27 16:08:08",
"fromstr": "errata@redhat.com",
"status": "stable",
"title": "Bird_Erratum",
"summary": "",
"version": "1",
"type": "security",
"severity": "",
"solution": "",
"release": "1",
"rights": "",
"pushcount": "",
"pkglist": [
{
"name": "1",
"shortname": "",
"packages": [
{
"arch": "noarch",
"epoch": "0",
"filename": "duck-0.6-1.noarch.rpm",
"name": "duck",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "0.6"
},
{
"arch": "noarch",
"epoch": "0",
"filename": "stork-0.12-2.noarch.rpm",
"name": "stork",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "2",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "0.12"
},
{
"arch": "noarch",
"epoch": "0",
"filename": "crow-0.8-1.noarch.rpm",
"name": "crow",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "0.8"
}
]
}
],
"references": [],
"reboot_suggested": false
},
{
"pulp_href": "/pulp/api/v3/content/rpm/advisories/1d092aa3-5437-4475-95a0-4be5dc4467e2/",
"pulp_created": "2020-04-29T13:47:12.086987Z",
"artifact": null,
"id": "RHEA-2012:0055",
"updated_date": "2012-01-27 16:08:06",
"description": "Sea_Erratum",
"issued_date": "2012-01-27 16:08:06",
"fromstr": "errata@redhat.com",
"status": "stable",
"title": "Sea_Erratum",
"summary": "",
"version": "1",
"type": "security",
"severity": "",
"solution": "",
"release": "1",
"rights": "",
"pushcount": "",
"pkglist": [
{
"name": "1",
"shortname": "",
"packages": [
{
"arch": "noarch",
"epoch": "0",
"filename": "shark-0.1-1.noarch.rpm",
"name": "shark",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "0.1"
},
{
"arch": "noarch",
"epoch": "0",
"filename": "penguin-0.9.1-1.noarch.rpm",
"name": "penguin",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "0.9.1"
},
{
"arch": "noarch",
"epoch": "0",
"filename": "walrus-5.21-1.noarch.rpm",
"name": "walrus",
"reboot_suggested": false,
"relogin_suggested": false,
"restart_suggested": false,
"release": "1",
"src": "http://www.fedoraproject.org",
"sum": "",
"sum_type": "",
"version": "5.21"
}
]
}
],
"references": [],
"reboot_suggested": false
}
]
}
Updated by ttereshc over 4 years ago
- Triaged changed from No to Yes
- Sprint set to Sprint 71
Updated by ttereshc over 4 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to ttereshc
Updated by ttereshc over 4 years ago
It happens when some auxiliary fields are updated but updated datetime and version and pkglist are stayed untouched.
Updated by pulpbot over 4 years ago
- Status changed from ASSIGNED to POST
Added by ttereshc over 4 years ago
Updated by ttereshc over 4 years ago
- Status changed from POST to MODIFIED
Applied in changeset b341c11036d5fa2274f23916f7d2b54ffd433187.
Updated by ttereshc over 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Fix duplicated advisory case when only its metadata changed.
There are cases when updated datetime or version are not updated but only some auxiliary fields are. In this case we can't decide which one is newer and we just pick the incoming one.
closes #6604 https://pulp.plan.io/issues/6604