Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-376

Ruby does not properly encode a map into a Data instance.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.5
    • Component/s: proton-c
    • Labels:
      None

      Description

      When attempting to automatically put an instance of ::Hash into a Data object, the following error message is shown instead:

      /home/mcpierce/Programming/Proton/proton-c/bindings/ruby/lib/qpid_proton/mapping.rb:73:in `put': undefined method `map=' for #<Qpid::Proton::Data:0x00000002aa41f8> (NoMethodError)
      from /home/mcpierce/Programming/Proton/proton-c/bindings/ruby/lib/qpid_proton/message.rb:71:in `pre_encode'
      from /home/mcpierce/Programming/Proton/proton-c/bindings/ruby/lib/qpid_proton/messenger.rb:200:in `put'
      from ../examples/messenger/ruby/send.rb:50:in `block in <main>'
      from ../examples/messenger/ruby/send.rb:44:in `each'
      from ../examples/messenger/ruby/send.rb:44:in `<main>'

        Attachments

          Activity

            People

            • Assignee:
              mcpierce Darryl L. Pierce
              Reporter:
              mcpierce Darryl L. Pierce
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: