Bug 754503

Summary: JSON for retrieving default attrs for a key incorrect
Product: [Retired] CloudForms Cloud Engine Reporter: Brad P. Crochet <brad>
Component: iwhdAssignee: Jim Meyering <meyering>
Status: CLOSED CURRENTRELEASE QA Contact: wes hayutin <whayutin>
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:29 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:25:50 UTC
Description of problem:
The JSON returned is not properly formatted when retrieving default attrs for a key. It looks like this is broken for anything that is obj_entry. There is no ',' between the entries.

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

How reproducible:
Every time

Steps to Reproduce:
1.curl -X GET -H 'Accept: */json' http://iwhdhost:9090/test_bucket_1/eagle/_attrs
2.Response does not have ',' between the entries.
3.
  
Actual results:
201111161157:32.766 - FINE: Default charset used: ISO-8859-1 (org.apache.commons.httpclient.HttpMethodBase.getContentCharSet)
{
	"object_body": "http://iwhdhost:9090/test_bucket_1/eagle/body"
	"object_attr_list": "http://iwhdhost:9090/test_bucket_1/eagle/_attrs"
}

Expected results:

{
    "object_body": "http://iwhdhost:9090/test_bucket_1/eagle/body",
    "object_attr_list": "http://iwhdhost:9090/test_bucket_1/eagle/_attrs"
}


Additional info:

Comment 1 Jim Meyering 2011-11-30 19:24:59 UTC
Thanks for the report.
Here's a fix:

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

Comment 2 Brad P. Crochet 2012-01-09 19:32:14 UTC
Verified.

commit a00ab8a89c0069249bb5d52f47878b3