Bug 754512 - JSON and XML object_body URIs are inconsistent
Summary: JSON and XML object_body URIs are inconsistent
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: CloudForms Cloud Engine
Classification: Retired
Component: iwhd
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
Assignee: Jim Meyering
QA Contact: Brad P. Crochet
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-16 17:32 UTC by Brad P. Crochet
Modified: 2013-03-13 20:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-30 17:13:58 UTC
Embargoed:


Attachments (Terms of Use)

Description Brad P. Crochet 2011-11-16 17:32:16 UTC
Description of problem:
The URI for object_body returned by the same request for XML and JSON are inconsistent. 

Known call that does this is: /bucket/object/_attrs

JSON has "/body" on the end, XML does not.

Version-Release number of selected component (if applicable):
commit 9bdb7d01

How reproducible:
Consistent

Steps to Reproduce:
1. curl -X GET http://iwhdhost:9090/bucket/object/_attrs  
2. curl -X GET -H 'Accept: */json' http://iwhdhost:9090/bucket/object/_attrs 
3. 
  
Actual results:
XML and JSON have different URI for object_body 

Expected results:
XML and JSON have same URI for object_body

Additional info:

Comment 1 Jim Meyering 2011-11-30 19:09:47 UTC
I posted a patch for this:

  http://thread.gmane.org/gmane.comp.lib.iwhd.devel/1009/focus=1016

Comment 2 Brad P. Crochet 2012-01-09 19:31:36 UTC
Verified.

Commit a00ab8a89c0069249bb5d52f47878b3


Note You need to log in before you can comment on or make changes to this bug.