You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/10/07 14:23:00 UTC
[jira] [Commented] (NIFI-13840) AWS v2 processors fail to configure proxy
[ https://issues.apache.org/jira/browse/NIFI-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887361#comment-17887361 ]
ASF subversion and git services commented on NIFI-13840:
--------------------------------------------------------
Commit 17c8a6bed890dcbbe2c2e94541e4f9d36e155199 in nifi's branch refs/heads/main from Peter Turcsanyi
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=17c8a6bed8 ]
NIFI-13840 Fixed proxy setup in AWS v2 components
Signed-off-by: Pierre Villard <pi...@gmail.com>
This closes #9345.
> 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)