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 — MqttProperties.isEmpty() ignores user properties and subscription identifiers · Issue #16574 · netty/netty

MqttProperties.isEmpty() ignores user properties and subscription identifiers #16574

New issue
Copy link
New issue
Copy link
Closed
#16575
Closed
MqttProperties.isEmpty() ignores user properties and subscription identifiers#16574
#16575
Copy link

Description

@ShadowySpirits
ShadowySpirits
opened on Mar 30, 2026
Issue body actions

Netty version: 4.2.13

While testing MQTT 5 acknowledgements and control packets, I found that User Properties can be present in the message object but missing on the wire after encoding.

MqttProperties.isEmpty() only checks the regular props map and ignores userProperties and subscriptionIds. Because of that, MQTT 5 encoding paths that decide whether to write the reason code and properties based on
properties.isEmpty() can incorrectly take the shortest form and skip property encoding entirely.

This affects at least:

  • PUBACK
  • PUBREC
  • PUBREL
  • PUBCOMP
  • DISCONNECT
  • AUTH

when reasonCode == 0 and the properties only contain User Property values.

Activity

  1. normanmaurer
    closed this as completedin #16575on Mar 31, 2026
  2. normanmaurer
    added a commit that references this issue on Mar 31, 2026

    Include user properties and subscription IDs in MqttProperties#isEmpty (

    This issue will close once commit 4a6b875 is merged into the '4.2' branch.
    4a6b875
  3. netty-project-bot
    added 2 commits that reference this issue on Mar 31, 2026

    Include user properties and subscription IDs in MqttProperties#isEmpty (

    This issue will close once commit 1375bb1 is merged into the '4.2' branch.
    1375bb1

    Include user properties and subscription IDs in MqttProperties#isEmpty (

    This issue will close once commit d81a140 is merged into the '4.2' branch.
    d81a140
  4. normanmaurer
    added 2 commits that reference this issue on Apr 1, 2026

    Auto-port 4.1: Include user properties and subscription IDs in MqttPr…

    This issue will close once commit c355278 is merged into the '4.2' branch.
    c355278

    Auto-port 5.0: Include user properties and subscription IDs in MqttPr…

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

      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.