[
https://issues.apache.org/jira/browse/NIFI-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Peter Turcsanyi updated NIFI-13840:
-----------------------------------
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|https://github.com/aws/aws-sdk-java-v2/blob/13f2c813e861a510e6a19c4ded047bf845f96ec0/http-clients/apache-client/src/main/java/software/amazon/awssdk/http/apache/ProxyConfiguration.java#L234-L238]
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).
{code:java}
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){code}
was:AWS processors using the v2 client library (SQS, Lambda, DynamoDB,
Kinesis) fail to set up proxy access properly and the proxy config from Proxy
Configuration Service will be ignored.
> AWS v2 processors fail to configure proxy
> -----------------------------------------
>
> Key: NIFI-13840
> URL: https://issues.apache.org/jira/browse/NIFI-13840
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Peter Turcsanyi
> Assignee: Peter Turcsanyi
> Priority: Major
>
> 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|https://github.com/aws/aws-sdk-java-v2/blob/13f2c813e861a510e6a19c4ded047bf845f96ec0/http-clients/apache-client/src/main/java/software/amazon/awssdk/http/apache/ProxyConfiguration.java#L234-L238]
> 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).
> {code:java}
> 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){code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)