Bug 754503 - JSON for retrieving default attrs for a key incorrect
Summary: JSON for retrieving default attrs for a key incorrect
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: wes hayutin
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-16 17:25 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:29 UTC
Embargoed:


Attachments (Terms of Use)

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


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