Skip to content

Input stream mark and reset do not preserve endianness #63

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);

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions