[
https://issues.apache.org/jira/browse/NIFI-9492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-9492.
----------------------------------
Resolution: Feedback Received
Apache NiFi 1.x is no longer maintained and no new release is planned on the
1.x release line. Marking as resolved as part of a cleanup operation. Please
open a new one with an updated description if this is still relevant for NiFi
2.x.
> 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
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> 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.10#820010)