You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Aurore Weber (Jira)" <ji...@apache.org> on 2021/01/25 15:54:00 UTC

[jira] [Updated] (CAMEL-16079) aws-sn2 does not recognise FIFO queue configured though arn

     [ https://issues.apache.org/jira/browse/CAMEL-16079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aurore Weber updated CAMEL-16079:
---------------------------------
    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] 

 
{code:java}
boolean isFifoTopic() {        
 return topicName.endsWith(".fifo");    
}
{code}
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 : 
{code:java}
boolean isFifoTopic() { 
 return topicArn.endsWith(".fifo") ; 
}
{code}

  was:
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] 

 
{code:java}
boolean isFifoTopic() {        
 return topicName.endsWith(".fifo");    
}
{code}
Likely this would fix it : 
{code:java}
boolean isFifoTopic() { 
 return topicName.endsWith(".fifo") || topicArn.endsWith(".fifo") ; 
}
{code}


> aws-sn2 does not recognise FIFO queue configured though arn
> -----------------------------------------------------------
>
>                 Key: CAMEL-16079
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16079
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-aws-sns
>    Affects Versions: 3.7.0, 3.7.1
>         Environment: Likely any, but tested on a docker image of amazoncorretto:11
>            Reporter: Aurore Weber
>            Assignee: Andrea Cosentino
>            Priority: Minor
>
> 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] 
>  
> {code:java}
> boolean isFifoTopic() {        
>  return topicName.endsWith(".fifo");    
> }
> {code}
> 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 : 
> {code:java}
> boolean isFifoTopic() { 
>  return topicArn.endsWith(".fifo") ; 
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)