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

Searching for an empty string should return nothing

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 7.0.1 CE GA2
    • Fix Version/s: 7.0.X, Master
    • Component/s: Search Infrastructure
    • Labels:
      None
    • Story Points:
      1
    • Fix Priority:
      3

      Description

      Currently the only way to search for an empty string is by modifying the URL. This causes a load on portal because the search engine will attempt to return everything. The correct behavior is for it to return nothing

      URL with empty string

      http://localhost:8080/web/guest/home?_com_liferay_portal_search_web_portlet_SearchPortlet_formDate=1464184415626&p_p_id=com_liferay_portal_search_web_portlet_SearchPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_portal_search_web_portlet_SearchPortlet_mvcPath=%2Fsearch.jsp&_com_liferay_portal_search_web_portlet_SearchPortlet_cur=1&_com_liferay_portal_search_web_portlet_SearchPortlet_format=&_com_liferay_portal_search_web_portlet_SearchPortlet_keywords=%20&_com_liferay_portal_search_web_portlet_SearchPortlet_scope=this-site&_com_liferay_portal_search_web_portlet_SearchPortlet_groupId=20233&_com_liferay_portal_search_web_portlet_SearchPortlet_entryClassName=&_com_liferay_portal_search_web_portlet_SearchPortlet_modified=&_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedselection=0&_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedfrom=05%2F24%2F2016&_com_liferay_portal_search_web_portlet_SearchPortlet_modifieddayFrom=24&_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedmonthFrom=4&_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedyearFrom=2016&_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedto=05%2F25%2F2016&_com_liferay_portal_search_web_portlet_SearchPortlet_modifieddayTo=25&_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedmonthTo=4&_com_liferay_portal_search_web_portlet_SearchPortlet_modifiedyearTo=2016&_com_liferay_portal_search_web_portlet_SearchPortlet_searchPrimaryKeys=
      

      Note

      _com_liferay_portal_search_web_portlet_SearchPortlet_keywords=%20
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sharry.shi Sharry Shi
                Reporter:
                albert.lee Albert Lee
                Participants of an Issue:
                Recent user:
                Sharry Shi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 38 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.X
                  Master