Issue #6050
closedSync fails if remote has no Suite
Description
pulp_deb currently assumes that the "Suite" field in Release files always exists.
The following suggests that a "Suite" field is optional in Release files:
https://wiki.debian.org/DebianRepository/Format#Suite
Repositories without a "Suite" field exist in the wild:
http://deb.tuxedocomputers.com/ubuntu/dists/bionic/
Attempting to sync such repositories causes an error:
pulp: rq.worker:ERROR: KeyError: 'Suite'
Even if the KeyError is fixed, some fall back value must be provided since "Suite" is a mandatory DB field in pulp_deb.
Option 1: Find some suitable default fall back value when a remote has no "Suite" field in it's Release file.
Option 2: Do not make the DB field mandatory.
Option 1 is very easy to implement, option 2 would require migrations and could mess up the plugin logic...
Updated by mdellweg almost 5 years ago
If it's going to be Option 2, it is the right time now to make backward incompatible database changes.
Updated by quba42 over 4 years ago
I may have been mistaken about the field being mandatory... Will add a PR.
Added by quba42 over 4 years ago
Updated by quba42 over 4 years ago
- Status changed from POST to MODIFIED
Applied in changeset 8ac4d8257a9eadb3cd3d1045040525088728a6e7.
Updated by quba42 over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Permit empy suite fields
fixes #6050 https://pulp.plan.io/issues/6050