You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Pavel Moravec (JIRA)" <ji...@apache.org> on 2012/08/13 15:10:37 UTC
[jira] [Updated] (QPID-3636) getJMSReplyTo does not return null for
null ReplyTo property
[ https://issues.apache.org/jira/browse/QPID-3636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Moravec updated QPID-3636:
--------------------------------
Attachment: 0001-java-null-replyTo.patch
Simple patch proposal.
If message properties has "empty" ReplyTo, then default ReplyTo constructor is called having exchange and routingKey undefined (i.e. null). Thus extending the if statement.
> getJMSReplyTo does not return null for null ReplyTo property
> ------------------------------------------------------------
>
> Key: QPID-3636
> URL: https://issues.apache.org/jira/browse/QPID-3636
> Project: Qpid
> Issue Type: Bug
> Components: Java Client
> Affects Versions: 0.12
> Reporter: Pavel Moravec
> Priority: Minor
> Labels: addressing, jms-compliance
> Attachments: 0001-java-null-replyTo.patch, JMSReplyToTest.tar.gz
>
>
> 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()".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org