Skip to content

Binary data can be stripped on Get Message #89

@dzvancuks

Description

@dzvancuks

Create a binary container

    new tbcd container    my_field
        tbcd    2    ID    123
        tbcd    *   value
    end tbcd container

Call Get Message on it with binary data with first bytes equal to whitespaces

${binary} =    Hex to Bin       0x0a09010203    # starts with characters equal to \n and \t, but it is expected to be like that
Load Template    My Message
${request}=    Get Message
...    BinaryField.value.my_field.value:${binary}

Because following function is called that treats templates as strings it will truncate whitespace characters

def _name_and_value(self, separator, parameter):
    ...
    return key, parameter[index + 1:].strip()

As result data will be encoded and sent without expected characters

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions