Issue #1745
closedPulp returns HTTP 500 when a bad request is made during sync schedule creation
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
Updated by Ichimonji10 about 8 years ago
- Copied from Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation. added
Updated by Ichimonji10 about 8 years ago
I don't really expect this bug to be fixed. However, it's very useful for tracking purposes. It allows me to skip a test in the test suite and point to a bug that describes the issue in detail.
Updated by ttereshc about 8 years ago
- Assignee deleted (
ttereshc) - Platform Release deleted (
2.8.0) - Triaged changed from Yes to No
Updated by amacdona@redhat.com about 8 years ago
Ichimonji10, we shouldn't need to open dupe bugs to track for pulp smash, so this should probably be closed. I am leaving open for now in case closing this will cause test failures, but lets discuss when you get back.
Updated by mhrivnak about 8 years ago
- Status changed from NEW to CLOSED - DUPLICATE
Updated by bmbouter almost 4 years ago
- Category deleted (
14)
We are removing the 'API' category per open floor discussion June 16, 2020.