Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16079

aws-sn2 does not recognise FIFO queue configured though arn

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.7.0, 3.7.1, 3.7.2, 3.8.0
    • 3.7.3, 3.9.0
    • camel-aws2
    • None
    • Likely any, but tested on a docker image of amazoncorretto:11

    • Novice

    Description

      When configuring an AWS SNS that is a fifo through the topic, the code that identify it as FIFO does not pick up the information, and so does not provide the provide the required attribute messageGroupId.

       

      Issues is in file https://github.com/apache/camel/blob/master/components/camel-aws2-sns/src/main/java/org/apache/camel/component/aws2/sns/Sns2Configuration.java 

       

      boolean isFifoTopic() {        
       return topicName.endsWith(".fifo");    
      }
      

      Likely this would fix it as the topicName is null, but the topicArn is not null whether it has been configured by topic or by arn : 

      boolean isFifoTopic() { 
       return topicArn.endsWith(".fifo") ; 
      }
      

      Attachments

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              aurorew Aurore Weber
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: