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

getJMSReplyTo does not return null for null ReplyTo property

    XMLWordPrintableJSON

Details

    Description

      Description of problem:
      Java client library wrongly returns reply-to via Message::getJMSReplyTo method
      for a message with setJMSReplyTo(null) called before.

      How reproducible:
      100%

      Steps to Reproduce:
      Use attached JUnit test. In short, the test performs:
      1. msg.setJMSReplyTo(null);
      2. producer.send(msg);
      3. msg = consumer.receive();
      4. msg.getJMSReplyTo() now returns:
      :////?routingkey=''

      Actual results:
      msg.getJMSReplyTo() now returns:
      :////?routingkey=''

      Expected results:
      msg.getJMSReplyTo() should return null

      Additional info:
      The root cause of the bug is in calling:

      AMQMessageDelegate_0_10.java:

      public Destination getJMSReplyTo()
      {
      ReplyTo replyTo = _messageProps.getReplyTo();

      if (replyTo == null)

      { return null; }

      else
      {

      The _messageProps.getReplyTo() does not return null but "ReplyTo()".

      Attachments

        1. JMSReplyToTest.tar.gz
          0.9 kB
          Pavel Moravec
        2. 0001-java-null-replyTo.patch
          0.8 kB
          Pavel Moravec

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pmoravec Pavel Moravec
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: