You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Armaan Sarkar (JIRA)" <ji...@apache.org> on 2011/09/07 19:41:11 UTC

[jira] [Updated] (THRIFT-1331) Ruby library deserializes an empty map to nil

     [ https://issues.apache.org/jira/browse/THRIFT-1331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Armaan Sarkar updated THRIFT-1331:
----------------------------------

    Attachment: THRIFT-1331_v1.patch

This patch adds an empty check when deserializing maps (in both Ruby and the C extension). It also includes an additional spec for this case.

> Ruby library deserializes an empty map to nil
> ---------------------------------------------
>
>                 Key: THRIFT-1331
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1331
>             Project: Thrift
>          Issue Type: Bug
>          Components: Ruby - Library
>    Affects Versions: 0.7, 0.8
>            Reporter: Armaan Sarkar
>            Assignee: Armaan Sarkar
>         Attachments: THRIFT-1331_v1.patch
>
>
> The problem occurs when deserializing an empty map. Instead of deserializing to an empty hash in Ruby, Thrift currently makes it a nil object. This poses a variety of problems and is not the intended/original behavior. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira