Issue #1926
closedpackage without epoch in the erratum pkglist is not handled correctly during publish
Description
Create repo with feed https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm/ and sync/publish it.
Since our demo repo does not contain `epoch` for packages in updateinfo.xml, there will be a `null` value for epoch in the erratum pkglist in the database.
This will cause a DB query which checks the presence of the particular rpm in the repo to be wrong and thus you will observe no packages in the updateinfo.xml after publish.
Related issues
Updated by ttereshc over 8 years ago
Should the epoch attribute be always present in the erratum pkglist for each package? If so, it is a problem of demo repo and not a bug in Pulp.
Or should we handle this case during sync/upload? or during publish?
Updated by mhrivnak over 8 years ago
- Groomed changed from No to Yes
I was not able to find any old repos where the epoch is an empty string.
Updated by dkliban@redhat.com over 8 years ago
- Subject changed from package without epoch in the erratum pkglist is not handled correctly during publish to fixtures repo is missing 'epoch' in the erratum pkglist
- Triaged changed from No to Yes
We should fix the fixtures repository as part of this issue
Updated by jsherril@redhat.com over 8 years ago
This can happen in the wild: https://pulp.plan.io/issues/833
Added by ttereshc over 8 years ago
Updated by ttereshc over 8 years ago
- Subject changed from fixtures repo is missing 'epoch' in the erratum pkglist to package without epoch in the erratum pkglist is not handled correctly during publish
- Status changed from NEW to POST
- Assignee set to ttereshc
Updated by ttereshc over 8 years ago
- Has duplicate Issue #2217: updateinfo.xml is not generated with any packages added
Updated by ttereshc over 8 years ago
- Related to Issue #833: older errata units may have 'null' in database for pkglist package epoch added
Updated by ttereshc over 8 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset 250c100ef1341c8c739fd42d7868d2928eda42ca.
Updated by pthomas@redhat.com over 8 years ago
- Status changed from 5 to 6
verified
1. synced and published repo with https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm/
2. Checked the updateinfo.xml to make sure that the packages are present
Updated by semyers over 8 years ago
- Status changed from 6 to CLOSED - CURRENTRELEASE
Fix package filtering for errata when no epoch is specified
closes #1926 https://pulp.plan.io/issues/1926