Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-3842

Backport INT-3810: AMQP Inbound Gateway NPE with No ReplyTo

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.1.6
    • Fix Version/s: 4.1.7
    • Component/s: AMQP Support
    • Labels:

      Description

      The code in the 4.1.x version looks like:

      Address replyTo;
      String replyToProperty = message.getMessageProperties().getReplyTo();
      // TODO: Use the Address.AMQ_RABBITMQ_REPLY_TO constant when 1.4.3 is the minimum
      if (replyToProperty.startsWith("amq.rabbitmq.reply-to")) {
             replyTo = new Address("", replyToProperty);
      }
      else {
      	replyTo = new Address(replyToProperty);
      }
      Assert.notNull(replyTo, "The replyTo header must not be null on a " +
      		"request Message being handled by the AMQP inbound gateway.");
      

      So, we really end up with NPE on the if statement here.

      The amq.rabbitmq.reply-to logic has been introduced here exactly since 4.1. So, no need to consider it for other supported versions to backport.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abilan Artem Bilan
              Reporter:
              abilan Artem Bilan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: