Skip to content

ByteBuffer corrupted by ByteBufferConverter when passed through Spring [SPR-13056] #17648

@spring-projects-issues

Description

@spring-projects-issues

Nathan Hull opened SPR-13056 and commented

It looks like spring-core 4.x has a bug in how it handles a ByteBuffer being sent on a Spring channel. It converts the ByteBuffer to a byte array, then takes the first element of that array, converts that to a byte array, and then wraps that byte array in a new ByteBuffer. As a result, when I pass a ByteBuffer on a Spring channel, I get a different ByteBuffer out and it only contains the first element, if the ByteBuffer had one or more elements remaining. Most of this happens in ByteBufferConverter.


Attachments:

Referenced from: commits 792b7b9, 1177f5c, 008c9a3, fee63fd

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions