[
https://issues.apache.org/jira/browse/NIFI-4790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16337613#comment-16337613
]
ASF GitHub Bot commented on NIFI-4790:
--------------------------------------
Github user pvillard31 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2426#discussion_r163554236
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/InvokeHTTP.java
---
@@ -213,11 +219,22 @@
public static final PropertyDescriptor PROP_SSL_CONTEXT_SERVICE = new
PropertyDescriptor.Builder()
.name("SSL Context Service")
- .description("The SSL Context Service used to provide client
certificate information for TLS/SSL (https) connections.")
+ .description("The SSL Context Service used to provide client
certificate information for TLS/SSL (https) connections."
+ + " It is also used to connect to HTTPS Proxy.")
.required(false)
.identifiesControllerService(SSLContextService.class)
.build();
+ public static final PropertyDescriptor PROP_PROXY_TYPE = new
PropertyDescriptor.Builder()
+ .name("Proxy Type")
+ .displayName("Proxy Type")
+ .description("The type of the proxy we are connecting to.")
+ .required(true)
+ .allowableValues(HTTP, HTTPS)
+ .defaultValue(HTTP.getValue())
+ .expressionLanguageSupported(true)
--- End diff --
Unfortunately, I believe it's not possible to use EL on properties with
allowable values (see https://issues.apache.org/jira/browse/NIFI-1832). If we
want to use EL on this property, I think it needs to be a classic text property
with a custom validator a bit like in InvokeHTTP with the request method
property
(https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/InvokeHTTP.java#L152).
> Support HTTPS proxy in InvokeHTTP
> ---------------------------------
>
> Key: NIFI-4790
> URL: https://issues.apache.org/jira/browse/NIFI-4790
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Marco Gaido
> Assignee: Marco Gaido
> Priority: Major
>
> InvokeHTTP currently assumes that the proxy (if set) uses HTTP. We should
> introduce a new property to indicate the protocol used by the proxy (either
> http or https) in order to support also HTTPS proxies.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)