[
https://issues.apache.org/jira/browse/NIFI-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888284#comment-17888284
]
ASF subversion and git services commented on NIFI-13840:
--------------------------------------------------------
Commit c41f71fe59217a7a8d510dd9cbb6667357e81261 in nifi's branch
refs/heads/support/nifi-1.x from Peter Turcsanyi
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=c41f71fe59 ]
NIFI-13840 Fixed Proxy URL Configuration in AWS v2 components (#9353)
Signed-off-by: David Handermann <[email protected]>
> 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
> Fix For: 2.0.0-M5
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)