Checksum model for distribution tree allows null value for a checksum
The Checksum model for distribution tree allows a
null value for the
checksum field.. The
checksum field is a part of uniqueness constraint. Since it's allowed to be
null, and every
null is unique, it's possible to have duplicates.
There is a spec (somewhat outdated) https://release-engineering.github.io/productmd/treeinfo-1.0.html which seems to say that checksums should always be present.
I'm not sure about real world examples when checksum type is
null for this model, however the data migration needs to consider that theoretical possibility.
#6 Updated by ppicka about 2 months ago
Noticed that in case of checksum missing e.g.
[checksums] images/pxeboot/upgrade.img = sha256:30e14955ebf1352266dc2ff8067e68104607e750abb9d3b36582b8af909fcb58 images/pxeboot/vmlinuz =
productmd.treeinfo.TreeInfo used in our parsing will count hash.
entry like this fail the sync
in this case do we want manual migration when 'null' can't (shouldn't) happen, and we do not save repomd.xml file to re-count its hash?
Please register to edit this issue