You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Devaraj Das (JIRA)" <ji...@apache.org> on 2013/09/26 02:31:04 UTC

[jira] [Comment Edited] (HBASE-9435) Fix jersey serialization/deserialization of json objects

    [ https://issues.apache.org/jira/browse/HBASE-9435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13778282#comment-13778282 ] 

Devaraj Das edited comment on HBASE-9435 at 9/26/13 12:30 AM:
--------------------------------------------------------------

This command works (changed some braces and removed '@'):
{noformat}
curl -H "Content-Type: application/json" --data '{"Row":[{"key":"cm93MQ==", "Cell":
[{"column":"Y29sZmFtOmNvbA==", "$":"dmFsdWUx"}]}]}' http://localhost:17000/tcreatetbl/row1/colfam:col
{noformat}
                
      was (Author: devaraj):
    This command works (changed some braces and removed '@'):
curl -H "Content-Type: application/json" --data '{"Row":[{"key":"cm93MQ==", "Cell":
[{"column":"Y29sZmFtOmNvbA==", "$":"dmFsdWUx"}]}]}' http://localhost:17000/tcreatetbl/row1/colfam:col
                  
> Fix jersey serialization/deserialization of json objects
> --------------------------------------------------------
>
>                 Key: HBASE-9435
>                 URL: https://issues.apache.org/jira/browse/HBASE-9435
>             Project: HBase
>          Issue Type: Bug
>          Components: REST
>            Reporter: Francis Liu
>            Assignee: Francis Liu
>            Priority: Blocker
>             Fix For: 0.98.0, 0.96.1
>
>         Attachments: HBASE-9435.patch, HBASE-9435.patch
>
>
> Stargate uses the default json marshaller/unmarshaller in natural mode. In this mode the unmarshaller has trouble unmarshalling json instances. 
> This patch fixes this issue by using jackson as the marshaller/unmarshaller instead. 
> I've also updated all the model unit tests to test json serialization/deserialization. Backwards compatibilty can be verified by modify the test base class to use the original marshaller/unmarshaller and see that model tests pass.
> The patch is backward compatible except for StorageClusterStatusModel, which is broken anyway. It only shows one node in the liveNodes field.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira