GeezerVison is showing github.com — STOMP StompSubframeDecoder threws exception while processing PING (empty frame) from client · Issue #10678 · netty/netty
STOMP StompSubframeDecoder threws exception while processing PING (empty frame) from client #10678DescriptionExpected behavior
expected to process PING frames to check the client is still active
Actual behavior
when empty frame (just with \n symbol) is received StompSubframeDecoder.decode threws IndexOutOfBoundsException
private static void skipControlCharacters(ByteBuf buffer) {
byte b;
for (;;) {
b = buffer.readByte();
if (b != StompConstants.CR && b != StompConstants.LF) {
buffer.readerIndex(buffer.readerIndex() - 1);
break;
}
}
}
function skipControlCharacters has no readable bytes check of the buffer
Steps to reproduce
build a STOMP server using netty STOMP handlers
Netty version
4.1.52 Activitynormanmaurer commented on Oct 12, 2020 @Rom1kz are you interested in providing a PR with a fix and unit test ? Rom1kz commented on Oct 12, 2020
@Rom1kz are you interested in providing a PR with a fix and unit test ?
i don't think i have skills to solve this issue properly amizurov commented on Oct 13, 2020 SponsorContributor More actions @Rom1kz, could you please provide simple reproducer, because we use the same empty frame ('\n') for heart-beating and everything work properly. benjaminroux commented on Oct 16, 2020 @Rom1kz
I've actually just submitted a PR for that but I hadn't seen that issue.
#10695
Heartbeat messages would now trigger a StompFrame with the command HEARTBEAT (not a real STOMP command). normanmaurer commented on Oct 30, 2020 added a commit that references this issue on Mar 25, 2026This issue will close once commit 730f619 is merged into the '4.1' branch.730f619 added a commit that references this issue on Mar 25, 2026This issue will close once commit 4cdc3d8 is merged into the '4.1' branch.4cdc3d8 added a commit that references this issue on Mar 25, 2026This issue will close once commit 6f6ac4b is merged into the '4.2' branch.6f6ac4b added a commit that references this issue on Mar 25, 2026This issue will close once commit 46816cf is merged into the '4.2' branch.46816cf added 2 commits that reference this issue on Mar 25, 2026This issue will close once commit d32484b is merged into the '4.1' branch.d32484b This issue will close once commit 28db032 is merged into the '4.2' branch.28db032 added a commit that references this issue on Mar 27, 2026This issue will close once commit eeb5674 is merged into the '4.2' branch.eeb5674
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|