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

Auto-generated search page does not include the instance-id for the instanceable search portlets

    Details

      Description

      Some of the search portlets added to the autogenerated /search page, are declared as instanceable. However their portletId is not including an instanceId. This is very confuse to developers and can introduce some errors when they develop custom code for those portlets, for example when they customize friendly-urls, etc.

      Ej. SearchResults portlet: https://github.com/liferay/liferay-portal/blob/master/modules/apps/portal-search/portal-search-web/src/main/java/com/liferay/portal/search/web/internal/search/results/portlet/SearchResultsPortlet.java#L86

      Steps to reproduce:

      1. Configure an empty database
      2. Start the server
      3. Go to the /web/guest/search
      4. Check that SearchResults portlet has not an instanceId, you can view the PortletId accesing to the Edit Look & Feel configuration > Advanced Styling :

      Observed PortletId: Portlet ID: #portlet_com_liferay_portal_search_web_search_results_portlet_SearchResultsPortlet

      Expected PortletId having an INSTANCE_XXX: Portlet ID: #portlet_com_liferay_portal_search_web_search_results_portlet_SearchResultsPortlet_INSTANCE_rAndomvalue

      Workaround Delete the portlets and add them manually to the page. This way you will obtain the expected behavior regarding generated PortletIds

        Attachments

          Activity

            People

            Assignee:
            brooke.dalton Brooke Dalton
            Reporter:
            jose.jimenez Jose Jimenez
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              22 weeks, 5 days ago
              Development End Date:
              Development Start Date:

                Packages

                Version Package
                7.1.10 DXP FP25
                7.1.X
                7.2.10 DXP FP14
                7.2.10.5 DXP SP5
                7.2.X
                7.3.7 CE GA8
                7.3.X
                7.4.1 CE GA2 DXP 7,4
                7.4.13 DXP GA1
                Master