Actions
Issue #1745
closedPulp returns HTTP 500 when a bad request is made during sync schedule creation
Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
2.7.1
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
If an incorrect JSON data type is provided when creating a sync schedule (say an array rather than an object), Pulp returns an HTTP 500 rather than HTTP 400. This is demonstrated by the test cases added in Pulp Smash #143. The test code which produces this error is roughly equivalent to this:
# Create a new sync schedule for repository "foo".
client.post(
'http://pulp.example.com/pulp/api/v2/repositories/foo/importers/yum_importer/schedules/sync/',
['Incorrect data type'],
)
This issue affects Pulp 2.7, but not Pulp 2.8.
Related issues
Actions