Bug 754512

Summary: JSON and XML object_body URIs are inconsistent
Product: [Retired] CloudForms Cloud Engine Reporter: Brad P. Crochet <brad>
Component: iwhdAssignee: Jim Meyering <meyering>
Status: CLOSED CURRENTRELEASE QA Contact: Brad P. Crochet <brad>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, dajohnso, deltacloud-maint, dgao, meyering, mkoci, ssachdev
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-30 17:13:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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