Skip to content

Input stream mark and reset do not preserve endianness #63

@thomas-breining

Description

@thomas-breining

When an input stream is marked, the underlying byteBuffer is duplicated using the java.nio.ByteBuffer.duplicate() function which does not replicate the buffer byte order.

This breaks the processing of little endian user exception replies which peeks at the exception id and resets the input stream with the wrong byte order.

String exceptionRepoId = peekUserExceptionId(inputObject);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions