Project

Profile

Help

Issue #3387

closed

Improve error message when uploading a file already in Pulp3

Added by kersom about 6 years ago. Updated about 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 88
Quarter:

Description

Add a more descriptive error message when uploading a file already in Pulp.

Right now, when using POST /api/v3/artifacts/, with a file that already exists in Pulp is sending back a HTTP 400, and the following message.

{'non_field_errors': ['sha512 checksum must be unique.']}

Related issues

Has duplicate Pulp - Story #3681: Have the artifact upload return the artifact href if the artifact already existsCLOSED - DUPLICATE

Actions

Also available in: Atom PDF