You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Diego (Jira)" <ji...@apache.org> on 2022/08/04 12:42:00 UTC

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

Diego created NIFI-10318:
----------------------------

             Summary: 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


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)