Issue #2871
closedOld references to checksum_type need to be updated to checksumtype
Description
API documentation [0] refer to the field
"unit_metadata": {"checksum_type": null}
For use in uploading to a repository, but use of this in an API call to upload a drpm results in the error:
"{'errors': ["unexpected error occurred importing uploaded file: The field 'checksum_type' does not exist on the document 'DRPM'"]}"
An old reference to 'checksum_type'
is also found in the yum importer upload.py
[1]
This causes an invalid combination of a valid sha256 'checksum'
combined with a 'checksumtype'
OTHER than sha256 to succeed, when the proper behaviour would be failure.
[0] http://docs.pulpproject.org/dev-guide/integration/rest-api/content/upload.html#creating-an-upload-request
[1] https://github.com/pulp/pulp_rpm/blob/master/plugins/pulp_rpm/plugins/importers/yum/upload.py#L395
Related issues