[
https://issues.apache.org/jira/browse/THRIFT-2645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer closed THRIFT-2645.
------------------------------
> generated Go server code always sets Success retval
> ---------------------------------------------------
>
> Key: THRIFT-2645
> URL: https://issues.apache.org/jira/browse/THRIFT-2645
> Project: Thrift
> Issue Type: Bug
> Components: Go - Compiler
> Affects Versions: 0.9.2
> Reporter: Jens Geyer
> Assignee: Jens Geyer
> Fix For: 0.9.2
>
> Attachments:
> THRIFT-2645_generated_Go_server_code_always_sets_Success_retval.patch
>
>
> I just recognized that the generated Go server code always sets the
> {{Success}} result value, even in case of an exception. This leads to
> problems with some clients, because the {{Success}} value is typically
> checked before the exception fields.
> Test case: Some tutorial clients report that "we can divide by 0", if run
> against the Go tutorial server.
--
This message was sent by Atlassian JIRA
(v6.2#6252)