Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-10318

HandleHttpRequest code error setting property 'Client Authentication'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.17.0
    • 1.18.0
    • Extensions
    • Docker cluster 1.17.0

    Description

      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.

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

       

      In last line, serverConnectorFactory.setNeedClientAuth(wantClientAuth); needs to be change to serverConnectorFactory.setWantClientAuth(wantClientAuth);

       

      Regards

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              diego2glez Diego
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m