Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-51714

lucene/dump does not work in a reversed proxied environment when there are http/https protocol changes

    Details

      Description

      STEPS TO REPRODUCE
      Set up the following environment:
      1.- Apache with SSL
      2.- mod_proxy_http to http://tomcat-node:8080
      3.- Liferay cluster with two nodes and allow only the HTTP connector in Tomcat nodes (this is the default configuration for the bundle)
      4.- Include the following properties:
      web.server.protocol=https
      5.- Start the cluster and do a full reindex from Control Panel

      ACTUAL RESULT
      In the other node the following error appears:

      11:28:07,679 ERROR [Incoming-1,LIFERAY-CONTROL-CHANNEL,mbp-de-sergio-3884][ClusterRequestReceiver:223] Unable to invoke method {arguments=[[J@5b385de9, mbp-de-sergio-15355], methodKey=com.liferay.portal.search.lucene.cluster.LuceneClusterUtil.loadIndexesFromCluster([J,com.liferay.portal.kernel.cluster.Address)}
      java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at com.liferay.portal.kernel.util.MethodHandler.invoke(MethodHandler.java:61)
      	at com.liferay.portal.cluster.ClusterRequestReceiver.processClusterRequest(ClusterRequestReceiver.java:218)
      	at com.liferay.portal.cluster.ClusterRequestReceiver.doReceive(ClusterRequestReceiver.java:77)
      	at com.liferay.portal.cluster.BaseReceiver.receive(BaseReceiver.java:62)
      	at org.jgroups.JChannel.invokeCallback(JChannel.java:749)
      	at org.jgroups.JChannel.up(JChannel.java:710)
      	at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1025)
      	at org.jgroups.protocols.RSVP.up(RSVP.java:188)
      	at org.jgroups.protocols.FRAG2.up(FRAG2.java:181)
      	at org.jgroups.protocols.FlowControl.up(FlowControl.java:400)
      	at org.jgroups.protocols.FlowControl.up(FlowControl.java:418)
      	at org.jgroups.protocols.pbcast.GMS.up(GMS.java:896)
      	at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:245)
      	at org.jgroups.protocols.UNICAST2.up(UNICAST2.java:453)
      	at org.jgroups.protocols.pbcast.NAKACK2.handleMessage(NAKACK2.java:763)
      	at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:574)
      	at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:147)
      	at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:187)
      	at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:288)
      	at org.jgroups.protocols.MERGE3.up(MERGE3.java:290)
      	at org.jgroups.protocols.Discovery.up(Discovery.java:359)
      	at org.jgroups.protocols.TP.passMessageUp(TP.java:1263)
      	at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1825)
      	at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1793)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: com.liferay.portal.kernel.exception.SystemException: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
      	at com.liferay.portal.search.lucene.LuceneHelperImpl.getLoadIndexesInputStreamFromCluster(LuceneHelperImpl.java:493)
      	at com.liferay.portal.search.lucene.LuceneHelperUtil.getLoadIndexesInputStreamFromCluster(LuceneHelperUtil.java:335)
      	at com.liferay.portal.search.lucene.cluster.LuceneClusterUtil.loadIndexesFromCluster(LuceneClusterUtil.java:53)
      	... 31 more
      Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
      	at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:671)
      	at sun.security.ssl.InputRecord.read(InputRecord.java:504)
      	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
      	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
      	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
      	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
      	at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
      	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
      	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1091)
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)
      	at com.liferay.portal.search.lucene.LuceneHelperImpl.getLoadIndexesInputStreamFromCluster(LuceneHelperImpl.java:477)
      	... 33 more
      
      

      EXPECTED RESULT
      The index dump should be transferred to the other node

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 25 weeks, 4 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.3 CE GA4
                  6.2.X EE
                  7.0.0 M4