[
https://issues.apache.org/jira/browse/NIFI-10318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Handermann updated NIFI-10318:
------------------------------------
Status: Patch Available (was: In Progress)
Thanks for reporting this problem [~diego2glez], I submitted a pull request to
correct the behavior.
> HandleHttpRequest code error setting property 'Client Authentication'
> ---------------------------------------------------------------------
>
> Key: NIFI-10318
> URL: https://issues.apache.org/jira/browse/NIFI-10318
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.17.0
> Environment: Docker cluster 1.17.0
> Reporter: Diego
> Assignee: David Handermann
> Priority: Major
> Labels: HandleHttpRequest
> Time Spent: 10m
> Remaining Estimate: 0h
>
> New version of handlehttprequest can't set the value 'Need Authentication' in
> property 'Client Authentication' cause is code is overwrite with the 'Want
> Authentication' value status.
> {code:java}
> final StandardServerConnectorFactory serverConnectorFactory = new
> StandardServerConnectorFactory(server, port);
> final boolean needClientAuth = CLIENT_NEED.getValue().equals(clientAuthValue);
> serverConnectorFactory.setNeedClientAuth(needClientAuth);
> final boolean wantClientAuth = CLIENT_WANT.getValue().equals(clientAuthValue);
> serverConnectorFactory.setNeedClientAuth(wantClientAuth);{code}
>
> In last line, serverConnectorFactory.{*}setNeedClientAuth{*}(wantClientAuth);
> needs to be change to
> serverConnectorFactory.{*}setWantClientAuth{*}(wantClientAuth);
>
> Regards
--
This message was sent by Atlassian Jira
(v8.20.10#820010)