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

Wrong cast during AMQP Content Type mapping

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 2.2 M4 Sprint 4, 2.2 M4
    • Component/s: AMQP Support
    • Labels:
      None

      Description

      DefaultAmqpHeaderMapper asserts that the Content-Type header is of type java.lang.String.

      String contentType = getHeaderIfAvailable(headers, AmqpHeaders.CONTENT_TYPE, String.class);
      

      However, content type is not a String if it is coming from an HTTP Inbound Gateway where it is of type MediaType.

      The flow is:

      http:inbound-gateway -> amqp:outbound-gateway
      

        Attachments

          Activity

            People

            Assignee:
            oleg.zhurakousky@springsource.com Oleg Zhurakousky
            Reporter:
            tmccuch Tom McCuch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: