API errors do not get reported on the client side

Bug #1309075 reported by Ling Gao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Invalid
Undecided
Ling Gao

Bug Description

Put a wrong uuid on the API request the curl command returns the correct error:
#curl -X GET -H 'Content-Type:application/json' http://localhost:6385/v1/nodes/12345678-7f9c-4693-9914-c65912345679
{"error_message": "{\"debuginfo\": null, \"faultcode\": \"Client\", \"faultstring\": \"Node 12345678-7f9c-4693-9914-c65912345679 could not be found.\"}"}

However, place the url on a web browser, it shows the following message:
"A server error occurred. Please contact the administrator."

The actual error message does not get displayed on the browser. This happens for whenever there is an error on the server side.

Ling Gao (linggao)
Changed in ironic:
assignee: nobody → Ling Gao (linggao)
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to ironic (master)

Fix proposed to branch: master
Review: https://review.openstack.org/88448

Changed in ironic:
status: New → In Progress
Revision history for this message
Dmitry Tantsur (divius) wrote :

Hi Ling Gao,

Change review in question was blocked, do you have some other activity on this bug? If not, please change status as appropriate.
Thank you.

Ling Gao (linggao)
Changed in ironic:
status: In Progress → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ironic (master)

Change abandoned by Ruby Loo (<email address hidden>) on branch: master
Review: https://review.openstack.org/88448
Reason: Hi Ling Gao. Thanks for the patch. As mentioned, we don't want Ironic to provide XML support, so I'm going to abandon this.

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.