You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "H (JIRA)" <ji...@apache.org> on 2013/03/30 17:17:15 UTC
[jira] [Commented] (THRIFT-670) Unions don't skip unrecognizable
fields correctly
[ https://issues.apache.org/jira/browse/THRIFT-670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13618112#comment-13618112 ]
H commented on THRIFT-670:
--------------------------
I don't believe that this bug is completely fixed yet. My java thrift client is getting confused after trying to read unrecognizable fields. It reads the message - returns an empty union - but then doesn't read anything else off the wire. I built the client (and server, if it matters) library off the latest github commit.
Consider the thrift file: http://pastebin.com/raw.php?i=BKvCMSXQ
and the client: http://pastebin.com/raw.php?i=sb5n1PTw
Note that on the java client, I don't have the stringOption field inside the union - but on the server, I do.
> Unions don't skip unrecognizable fields correctly
> -------------------------------------------------
>
> Key: THRIFT-670
> URL: https://issues.apache.org/jira/browse/THRIFT-670
> Project: Thrift
> Issue Type: Bug
> Components: Java - Compiler, Java - Library
> Affects Versions: 0.2
> Reporter: Bryan Duxbury
> Assignee: Bryan Duxbury
> Fix For: 0.3
>
> Attachments: thrift-670.patch
>
>
> I'm getting a NullPointerException when trying to read a Union struct off the wire which has a value that's not recognized by the current version of the code.
--
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