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

Message sent with 'int8_t' value property is corrupted

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: qpid-cpp-1.40.0
    • Fix Version/s: None
    • Component/s: C++ Client
    • Labels:
      None
    • Environment:

       QPID C++ version 1.39.0, master: c58d88b32d294d048ae064e7948f703bed3a7fa0

      amqp 1.0

      Windows 10

      Library compiled with Visual Studio toolchain: msvc-12, 64 bits, Debug

      qpid-cpp\src\qpid\messaging\ interface used.

      Description

      Message sent with 'int8_t' value property is corrupted. The type is interpreted as long.

      This issue is only observed with int8_t type.

      ...
      qpid::messaging::Sender m_sender;
      ...

      const std::string msgString = "this is the message string";

      auto msg = Message(msgString);
      Variant::Map content;

      int8_t value = 1;
      content["CustomInt8"] = value;
      msg.setProperties(content);
      m_sender.send(msg, true);

        Attachments

        1. image-2019-09-25-13-46-54-001.png
          40 kB
          Michal Kasperek

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mkasperek Michal Kasperek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: