GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #10678

New issue
Copy link
New issue
Copy link
Closed
#16543
Closed
STOMP StompSubframeDecoder threws exception while processing PING (empty frame) from client#10678
#16543
Copy link
Milestone
4.1.133.Final

Description

@Rom1kz
Rom1kz
opened on Oct 12, 2020
Issue body actions

Expected 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

Activity

Next
  1. normanmaurer commented on Oct 12, 2020

    @normanmaurer
    normanmaurer
    on Oct 12, 2020
    Member
    More actions

    @Rom1kz are you interested in providing a PR with a fix and unit test ?

  2. Rom1kz commented on Oct 12, 2020

    @Rom1kz
    Rom1kz
    on Oct 12, 2020
    Author
    More actions

    @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

  3. amizurov commented on Oct 13, 2020

    @amizurov
    amizurov
    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.

  4. benjaminroux commented on Oct 16, 2020

    @benjaminroux
    benjaminroux
    on Oct 16, 2020
    Contributor
    More actions

    @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).

  5. normanmaurer commented on Oct 30, 2020

    @normanmaurer
    normanmaurer
    on Oct 30, 2020
    Member
    More actions

    Fixes by #10695

  6. normanmaurer
    added this to the 4.1.54.Final milestone on Oct 30, 2020
  7. normanmaurer
    modified the milestones: 4.1.54.Final, 4.1.55.Final on Nov 11, 2020
  8. normanmaurer
    modified the milestones: 4.1.55.Final, 4.1.56.Final on Dec 8, 2020
  9. normanmaurer
    modified the milestones: 4.1.56.Final, 4.1.57.Final on Dec 17, 2020
  10. normanmaurer
    modified the milestones: 4.1.57.Final, 4.1.58.Final on Jan 13, 2021
  11. 136 remaining items

  12. normanmaurer
    modified the milestones: 4.1.130.Final, 4.1.131.Final on Dec 15, 2025
  13. normanmaurer
    modified the milestones: 4.1.131.Final, 4.1.132.Final on Feb 6, 2026
  14. daguimu
    added a commit that references this issue on Mar 25, 2026

    Fix IndexOutOfBoundsException in StompSubframeDecoder when processing…

    This issue will close once commit 730f619 is merged into the '4.1' branch.
    730f619
  15. normanmaurer
    modified the milestones: 4.1.132.Final, 4.1.133.Final on Mar 25, 2026
  16. daguimu
    added a commit that references this issue on Mar 25, 2026

    Fix IndexOutOfBoundsException in StompSubframeDecoder when processing…

    This issue will close once commit 4cdc3d8 is merged into the '4.1' branch.
    4cdc3d8
  17. normanmaurer
    added a commit that references this issue on Mar 25, 2026

    Fix IndexOutOfBoundsException in StompSubframeDecoder on heartbeat (#…

    This issue will close once commit 6f6ac4b is merged into the '4.2' branch.
    6f6ac4b
  18. netty-project-bot
    added a commit that references this issue on Mar 25, 2026

    Fix IndexOutOfBoundsException in StompSubframeDecoder on heartbeat (#…

    This issue will close once commit 46816cf is merged into the '4.2' branch.
    46816cf
  19. chrisvest
    added 2 commits that reference this issue on Mar 25, 2026

    Fix IndexOutOfBoundsException in StompSubframeDecoder on heartbeat (n…

    This issue will close once commit d32484b is merged into the '4.1' branch.
    d32484b

    5.0 port: Fix IndexOutOfBoundsException in StompSubframeDecoder on he…

    This issue will close once commit 28db032 is merged into the '4.2' branch.
    28db032
  20. normanmaurer
    closed this as completedin #16543on Mar 27, 2026
  21. pull
    added a commit that references this issue on Mar 27, 2026

    Auto-port 4.2: Fix IndexOutOfBoundsException in StompSubframeDecoder …

    This issue will close once commit eeb5674 is merged into the '4.2' branch.
    eeb5674
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

      • 4.1.133.Final

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.