Skip to content

Thrift not handling unknown field IDs properly #79

Description

@alior101

Sending an Optional with ID 17 for example to Julia thrift which doesn't have the id 17 defined throws:

2025-05-25T12:07:02.613671051Z ┌ Error: 2025-05-25 12:07:01: exception serving request
2025-05-25T12:07:02.613687741Z │ exception =
2025-05-25T12:07:02.613691148Z │ KeyError: key 17 not found
2025-05-25T12:07:02.613693688Z │ Stacktrace:
2025-05-25T12:07:02.613697622Z │ [1] getindex(h::Dict{Int64, Thrift.ThriftMetaAttribs}, key::Int64)
2025-05-25T12:07:02.613700277Z │ @ Base ./dict.jl:477
2025-05-25T12:07:02.613703234Z │ [2] read_container(p::Thrift.TCompactProtocol,

The use case causing this excp

Sender:

struct AlgParams {
...
17: optional double Hyst;
}

receiver:

struct AlgParams {
...
// No Hyst field defined here
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions