Hi all,
I found a bug in the thrift ruby libs such that a server won't send a handler
return value of 0 or false.
For service.thrift:
service SimonSays {
bool registerClient(1:string email);
}
On the server side, here's the ruby handler class:
def class SimonSaysServiceHandler
def registerClient ( email )
return false # works for 'return true'
end
end
The problem is no value returned to the client if the return value is 0 or
false.
The problem appears in both thrift-instant-r760184.tar.gz (from facebook.com)
and thrift-0.2.0-incubating.tar.gz from Apache.
I checked jira but no similar problem seems to be listed. I wasnt able to find
the mailing list archive to check. I've identified the offending line of code
and would like to fix it if nobody else has already. I'm not familiar with how
to contribute the fix, any advice? Thanks,