Project

Profile

Help

Issue #1745

closed

Pulp returns HTTP 500 when a bad request is made during sync schedule creation

Added by Ichimonji10 about 8 years ago. Updated almost 4 years ago.

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

Copied from Pulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.CLOSED - CURRENTRELEASEttereshcActions
Actions #1

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
Actions #2

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.

Actions #3

Updated by ttereshc about 8 years ago

  • Assignee deleted (ttereshc)
  • Platform Release deleted (2.8.0)
  • Triaged changed from Yes to No
Actions #4

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.

Actions #5

Updated by mhrivnak about 8 years ago

  • Status changed from NEW to CLOSED - DUPLICATE
Actions #6

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added
Actions #7

Updated by bmbouter almost 4 years ago

  • Category deleted (14)

We are removing the 'API' category per open floor discussion June 16, 2020.

Also available in: Atom PDF