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

Content Page content is not indexed if secure protocol (https) is used

    Details

      Description

      Issue
      If the portal is set to use secure protocol (https), then content displayed on Content Pages is not indexed.

      Steps to reproduce
      Environment: liferay-dxp-7.2.10.4-sp4

      1. Start server and login
      2. Create two web contents
      Web content 1 title: First content (add in some sample text)
      Web Content 2 title: Second content (add in some sample text)

      3. Add a new content page called Page1, add an Asset Publisher to display the content created in step 2.
      4. Go back home and search for "second content" from the search bar

      Checkpoint: You should see three results: first content, second content and page1

      5. Under the search page's search results widget, add a checkmark to "display results in document form" checkbox (see image: Search Results - Configuration)

      6. Click on details of page1 and make note of it (copy to a txt file may help with debugging)
      7. Shutdown the server
      8. Enable https in your app server as laid out in this guide,
      https://help.liferay.com/hc/en-us/articles/360018410832-How-to-configure-HTTPS-in-Tomcat-for-Liferay-DXP-7-3

      At step 6B, for reference here is a sample of how the connector looked in CS testing

      <Connector
                 protocol="org.apache.coyote.http11.Http11NioProtocol"
                 port="8443" maxThreads="200"
                 scheme="https" secure="true" SSLEnabled="true"
                 keystoreFile="/Users/liferay/Downloads/jd/liferay-portal-tomcat-master-private/liferay-portal-master-private/tomcat-9.0.43/keystore" keystorePass="123456"
                 clientAuth="false" sslProtocol="TLS"/>
      

      9. Add this configuration web.server.protocol=https to portal-ext.properties
      10. Restart the server and login
      11. Add a new content page called Page2, again with an Asset Publisher to display the 2 contents
      12. Go back home and search for "second content" from the search bar

      Expected result
      Search Result shows four results: three results: first content, second content, page1 and page2

      Actual result
      Search Result shows three results: first content, second content and page1

      Reproduced in

      • master (c8e3f404d59065ba953569ac99b48892bde52f04)
      • 7.2.x (d264f1bf90505b73cb4f62d770476a3ff8e826d1)
      • liferay-dxp-7.2.10.4-sp4 (screenshot shows step 12. result)

      Client input

      Further debugging results :
      While debugging source code figured out problem is with
      com.liferay.layout.internal.search.util.LayoutCrawler
      where,
      InetAddress inetAddress = _portal.getPortalServerInetAddress(false);
      is hardcoded to false

      Thanks!

        Attachments

          Activity

            People

            Assignee:
            team-echo Product Team Echo
            Reporter:
            thuy.cao Thuy Cao (Inactive)
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Engineering Assignee:
            Minhchau Dang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              23 weeks, 1 day ago

                Packages

                Version Package
                7.3.10.3 DXP SP3
                7.3.X
                7.4.13 DXP GA1
                7.4.3.4 CE GA4
                Master