You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Jean-Yves NOLEN (Jira)" <ji...@apache.org> on 2022/01/17 15:21:00 UTC

[jira] [Commented] (NIFI-9492) Failed to parse AWS region from Chinese VPCE endpoint URL in AbstractAWSProcessor

    [ https://issues.apache.org/jira/browse/NIFI-9492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477273#comment-17477273 ] 

Jean-Yves NOLEN commented on NIFI-9492:
---------------------------------------

Hello,

Don't know the process so this ticket can be taken to action ?

Do I need to do anything ?

> Failed to parse AWS region from Chinese VPCE endpoint URL in AbstractAWSProcessor
> ---------------------------------------------------------------------------------
>
>                 Key: NIFI-9492
>                 URL: https://issues.apache.org/jira/browse/NIFI-9492
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.14.0
>            Reporter: Jean-Yves NOLEN
>            Priority: Major
>              Labels: aws, chinese
>
> Hello we discovered that AbstractAWSProcessor cannot properly parse Chinese VPCE endpoint
> We received this kind of error :
>  
> {code:java}
> GetSQS[id=] Failed to receive messages from Amazon SQS due to Credential should be scoped to a valid region, not 'vpce'. (Service: AmazonSQS; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: ; Proxy: null): com.amazonaws.services.sqs.model.AmazonSQSException: Credential should be scoped to a valid region, not 'vpce'. (Service: AmazonSQS; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: ; Proxy: null) {code}
>  
>  
> And the reason is that here the format of Chinese VPCE :
>  
> {code:java}
> https://vpce-0deadbeefaaaaaaaa-rAn0dom.sqs.cn-north-1.vpce.amazonaws.com.cn {code}
>  
>  
> Endpoint ends with +amazonaws.com.cn+ instead of +vpce.amazonaws.com+
> So with configuration available at:
> [https://github.com/apache/nifi/blob/rel/nifi-1.14.0/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-abstract-processors/src/main/java/org/apache/nifi/processors/aws/AbstractAWSProcessor.java#L157]
> and then :
> [https://github.com/apache/nifi/blob/rel/nifi-1.14.0/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-abstract-processors/src/main/java/org/apache/nifi/processors/aws/AbstractAWSProcessor.java#L322]
>  
> Cannot work.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)