Uploaded image for project: 'OASIS Message Queuing Telemetry Transport (MQTT) TC'
  1. OASIS Message Queuing Telemetry Transport (MQTT) TC
  2. MQTT-216

Explore the downgrade of MUST level requirements to check UTF-8 encodings

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5
    • Fix Version/s: 5, wd13
    • Component/s: edits
    • Labels:
      None
    • Resolution:
      Hide

      Change the wording around UTF-8 encoded strings to match the general error handling. A packet containing an invalid UTF-8 codepoint is a Malformed Packet, and the handling is consistent with the handling of such an error (the server must check, the client should check).

      Show
      Change the wording around UTF-8 encoded strings to match the general error handling. A packet containing an invalid UTF-8 codepoint is a Malformed Packet, and the handling is consistent with the handling of such an error (the server must check, the client should check).

      Description

      Following on from David Kemper's mqtt-comment on CSPRD02 the TC agreed to open this Jira to explore the relaxing of the MUST level requirements surround UTF-8 checking

      Servers are required to scan the UTF-8 content of all strings in all packets. Since the strings themselves are bounded by a length prefix, is it possible that the following MUST level clauses could downgraded to SHOULD / SHOULD NOT to promote lower-latency solutions?

      [MQTT-1.5.3-1] The character data in a UTF-8 encoded string MUST be well-formed UTF-8 as defined by the Unicode specification [Unicode] and restated in RFC 3629[RFC3629]. In particular this data MUST NOT include encodings of code points between U+D800 and U+DFFF. If a Server or Client receives a Control Packet containing ill-formed UTF-8 it MUST close the Network Connection.

      [MQTT-1.5.3-2] A UTF-8 encoded string MUST NOT include an encoding of the null character U+0000. If a receiver (Server or Client) receives a Control Packet containing U+0000 it MUST close the Network Connection.

        Attachments

          Activity

            People

            • Assignee:
              ken.borgendale Ken Borgendale (Inactive)
              Reporter:
              coppen Richard Coppen
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: