Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.22
-
None
-
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: ')
- 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