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

AWS v2 processors fail to configure proxy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.28.0, 2.0.0
    • None
    • None

    Description

      AWS processors using the v2 client library (SQS, Lambda, DynamoDB, Kinesis) fail to set up proxy access properly. The proxy endpoint URI needs to be constructed and passed in the AWS client. Despite the javadoc says "the endpoint is limited to a host and port", the scheme must also be provided in the URI. Otherwise it leads to error (in case of IP) or the proxy config is just ignored (in case of localhost).

      java.lang.IllegalArgumentException: Illegal character in scheme name at index 0: 192.168.0.10:8080
          at java.base/java.net.URI.create(URI.java:932)
          at org.apache.nifi.processors.aws.v2.AbstractAwsSyncProcessor$1.configureProxy(AbstractAwsSyncProcessor.java:94)
          at org.apache.nifi.processors.aws.v2.AbstractAwsProcessor.configureSdkHttpClient(AbstractAwsProcessor.java:309)
          at org.apache.nifi.processors.aws.v2.AbstractAwsSyncProcessor.createSdkHttpClient(AbstractAwsSyncProcessor.java:104)
          at org.apache.nifi.processors.aws.v2.AbstractAwsSyncProcessor.configureHttpClient(AbstractAwsSyncProcessor.java:71)
          at org.apache.nifi.processors.aws.v2.AbstractAwsProcessor.configureClientBuilder(AbstractAwsProcessor.java:275)
          at org.apache.nifi.processors.aws.v2.AbstractAwsProcessor.configureClientBuilder(AbstractAwsProcessor.java:268)
          at org.apache.nifi.processors.aws.v2.AbstractAwsSyncProcessor.createClient(AbstractAwsSyncProcessor.java:65)

      Attachments

        Activity

          People

            turcsanyip Peter Turcsanyi
            turcsanyip Peter Turcsanyi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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