Hasnain Lakhani created THRIFT-5891:
---------------------------------------
Summary: Optional fields don't correctly round trip
Key: THRIFT-5891
URL: https://issues.apache.org/jira/browse/THRIFT-5891
Project: Thrift
Issue Type: Improvement
Components: Rust - Compiler
Reporter: Hasnain Lakhani
This was discovered while fuzzing - see <TODO: Update PR link>
If you have a structure with an optional field (set to None) in memory, and you
serialize then deserialize it, it comes back as Some(default_value). This seems
incorrect, but at the same time it's potentially a breaking change so needs
some thought before fixing.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)