Project

Profile

Help

Issue #2871

closed

Old references to checksum_type need to be updated to checksumtype

Added by kdelee@redhat.com almost 7 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Low
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation, Pulp 2
Sprint:
Quarter:

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

Related to RPM Support - Issue #2774: Inconsistent Checksum and Checksumtype when uploading with --checksum-typeCLOSED - WONTFIXActions

Also available in: Atom PDF