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

ruby: message annotations send from a ruby client are invalid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-0.8
    • proton-0.9
    • ruby-binding
    • None

    Description

      Since PROTON-616, proton-j has attempted to enforce the fact that the key's of a message annotations map must be of the Symbol type (or actually ulong, but those are reserved so we don't need to worry about that) [1]

      Unfortunately, from the Ruby client, the mapping of a native map into proton data always sets the key's as strings rather than symbols.

      In proton-j, you'll currently hit a `java.lang.ClassCastException: java.lang.String incompatible with org.apache.qpid.proton.amqp.Symbol` if you try to look at keys of the MessageAnnotations object of a message sent from the ruby send.rb example (which sets message annotations for the keys 'version' and 'pill').


      [1] http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-messaging-v1.0-os.html#type-annotations

      Attachments

        Activity

          People

            mcpierce Darryl Pierce
            dnwe Dominic Evans
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: