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

Nifi Registry not accept connection in secure mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.0.0-M2
    • NiFi Registry
    • None

    Description

      Problem description

      When you configure nifi-registry to be secure and try to connect to it via https://127.0.0.1:18443/nifi-registry it will throw the following exceptions in the log (and not load the ui and also api calls not works):

      2023-12-22 10:48:14,340 WARN [NiFi Registry Web Server-46] org.eclipse.jetty.io.ManagedSelector Could not accept java.nio.channels.SocketChannel[closed]: java.lang.NoClassDefFoundError: org/eclipse/jetty/io/ssl/SslConnection$DecryptedEndPoint 

      What cause the problem?

      The problem exists since https://issues.apache.org/jira/projects/NIFI/issues/NIFI-12434 is merged. In that ticket the spring version is increased and also the Jetty from 11.0.18 to 12.0.3. That cause the problem, because in case of nifi the jetty version remained 11.0.18 and there is a code which use  SslConnection.DecryptedEndPoint class: https://github.com/apache/nifi/blob/main/nifi-commons/nifi-jetty-configuration/src/main/java/org/apache/nifi/jetty/configuration/connector/alpn/StandardALPNProcessor.java#L62

      In case of nifi this is working fine, but the same maven module used in nifi-registry as well and in Jetty 12.0.3 the SslConnection.DecryptedEndPoint class is removed, that is why we got the NoClassDefFoundError and see this.

      Possible solutions?

      • increase jetty version in nifi and refactor code to support new version
      • Duplicate code for nifi-registry and modify for it (not recommended as code duplication later could cause trouble)
      • Revert back code change (not recommended as sooner / later definitly need to increase versions)

      Attachments

        Issue Links

          Activity

            People

              exceptionfactory David Handermann
              taz1988 Zoltán Kornél Török
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: