Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9492

Failed to parse AWS region from Chinese VPCE endpoint URL in AbstractAWSProcessor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.14.0
    • None
    • None
    • Important

    Description

      Hello we discovered that AbstractAWSProcessor cannot properly parse Chinese VPCE endpoint

      We received this kind of error :

       

      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) 

       

       

      And the reason is that here the format of Chinese VPCE :

       

      https://vpce-0deadbeefaaaaaaaa-rAn0dom.sqs.cn-north-1.vpce.amazonaws.com.cn 

       

       

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jynolen Jean-Yves NOLEN
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h