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

C++ broker & Python client will silently truncate strings whose length is greater than the max length supported by the type.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7
    • Labels:
      None
    • Environment:

      Linux

      Description

      While testing QMF, I attempted to send a string of length > 255 bytes as a str8. Both the broker and the python client will encode the string by either truncating it, or incorrectly truncating the length.

      1. fix.patch
        16 kB
        Ken Giusti

        Activity

        Hide
        kgiusti Ken Giusti added a comment -

        Proposed patch. Will throw an exception if a value cannot be encoded as its given type.

        Show
        kgiusti Ken Giusti added a comment - Proposed patch. Will throw an exception if a value cannot be encoded as its given type.

          People

          • Assignee:
            kgiusti Ken Giusti
            Reporter:
            kgiusti Ken Giusti
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development