Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-5850

Session names longer than 256 bytes cause errors when encoding session management objects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.22
    • None
    • C++ Broker
    • None

    Description

      AMQP 0-10 allows session names to be up to 2^16 bytes long; the QMF management schema for the broker however defines the name of a session object as being up to 2^8 bytes long. If a session is created with a name greater than 256 bytes, the broker cannot send out management objects for it i.e. periodic processing fails.

      Python reproducer:
      from qpid.messaging import *
      session = Connection.establish("localhost:5672").session(name="a"*1024)
      session.sync()
      raw_input('Press Enter: ')

      1. in a separate window use qpid-tool to view session info
        session.close()

      The proposed solution is to:

      • add a new field in the management session schema that can hold the full session name
      • truncate the session name (if needed) when copied to the existing field

      Attachments

        1. bz693721.patch
          4 kB
          Ernest Allen

        Activity

          People

            Unassigned Unassigned
            eallen Ernest Allen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: