v1 - DELETE instance throws 500 if JSON body provided

Bug #1425884 reported by Jamie Hannaford
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Expired
Low
Unassigned

Bug Description

I understand that a JSON request body is not integral or necessary for the operation, but if one is provided a generic 500 error is returned:

{
    "instanceFault": {
        "message": "Internal Server Error. Please keep this ID to help us figure out what went wrong: (1f2c13dc-42ef-4962-bed3-91f7f90177f7)",
        "code": 500
    }
}

This is a really confusing message to get back - we should really be sending back a 400 "malformed request" response or something so that the user actually understands what they did wrong.

Revision history for this message
Jamie Hannaford (jamie-hannaford) wrote :

Also, to nitpick the language too: who is "us" here? I am the only operator and user for my installation.

Changed in trove:
assignee: nobody → Nikhil Manchanda (slicknik)
Changed in trove:
assignee: Nikhil Manchanda (slicknik) → Jared Rohe (jaredrohe)
Jared Rohe (jaredrohe)
Changed in trove:
status: New → Incomplete
Revision history for this message
Jared Rohe (jaredrohe) wrote :

I was unable to reproduce this bug. Whenever i supplied a body to the DELETE instance request( json or a simple key value pair) the error code response was 415 Unsupported Media Type. This appears to be the appropriate error code. An error code of 500 was never encountered.

It is possible that this bug had already been resolved. If not, please provide a specific case that will reproduce the inappropriate error code

Jared Rohe (jaredrohe)
Changed in trove:
importance: Undecided → Low
Amrith Kumar (amrith)
Changed in trove:
assignee: Jared Rohe (jaredrohe) → nobody
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack DBaaS (Trove) because there has been no activity for 60 days.]

Changed in trove:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.