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 Bug
    • Status: Closed
    • Priority: Major 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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        6h 19m 1 Ken Giusti 28/Oct/10 22:41
        Ken Giusti made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 0.7 [ 12314455 ]
        Resolution Fixed [ 1 ]
        Ken Giusti made changes -
        Field Original Value New Value
        Attachment fix.patch [ 12458252 ]
        Hide
        Ken Giusti added a comment -

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development