Get User yields HTTP 500 when XML is requested

Bug #1132975 reported by Ed Cranford
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
High
Ed Cranford

Bug Description

Get User returns a JSON object with two root keys, name and databases. This is incorrect; it should have one root-level key: "user". Additionally, this causes problems when XML is requested as the XML parser cannot assemble the object correctly, citing the same root-level key problem.

The solution is for the user.show call to return its data wrapped in a dictionary with the key "user". The XML parser has no trouble then.

Changed in reddwarf:
status: New → In Progress
importance: Undecided → High
summary: - Get User yields HTML 500 when XML is requested
+ Get User yields HTTP 500 when XML is requested
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to reddwarf (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to reddwarf (master)

Reviewed: https://review.openstack.org/23224
Committed: http://github.com/stackforge/reddwarf/commit/bf30ea8a8155b86a7f3c2162d9aaec452d89c1c1
Submitter: Jenkins
Branch: master

commit bf30ea8a8155b86a7f3c2162d9aaec452d89c1c1
Author: Ed Cranford <email address hidden>
Date: Thu Feb 28 17:05:30 2013 -0600

    Fixes data type bug in get-user call

    Additionally, fixes a bug in the fake guestagent causing
    grant permissions to persist after a user is deleted.

    Partially addresses bug #1132975

    Change-Id: I2b6951d1569224661747b3a889c8840ce2b205fa

Changed in reddwarf:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in trove:
milestone: none → havana-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: havana-2 → 2013.2
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.