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 2022/08/04 18:19:00 UTC

[jira] [Commented] (NIFI-10318) HandleHttpRequest code error setting property 'Client Authentication'

    [ https://issues.apache.org/jira/browse/NIFI-10318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17575391#comment-17575391 ] 

ASF subversion and git services commented on NIFI-10318:
--------------------------------------------------------

Commit 2d73fd5631eb3a1eef00f9640680418abe18638a in nifi's branch refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=2d73fd5631 ]

NIFI-10318 Corrected HandleHttpRequest TLS client authentication

- Corrected setting of wantClientAuth instead of needClientAuth based on Client Authentication configuration

Signed-off-by: Joe Gresock <jg...@gmail.com>

This closes #6271.


> 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)