PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-46102

Selected Filters gets disappeared in Search Portlet when clicking on More link

    Details

    • Branch Version/s:
      6.2.x
    • Backported to Branch:
      Committed
    • Story Points:
      5
    • Fix Priority:
      3
    • Similar Issues:
      Show 5 results 

      Description

      In Search portlet results page when we select filter (Ex: Past Month) from "Any Time" section and clicks on More link in Pagination bar, then the refine filter is getting disappeared in the next page. For other sections like "Any Site" or "Everything" it is working as expected.
      The following are the details steps to reproduce:
      1. Crea.ted 20 + Blog entries having same title as "Liferay"
      2. Search for a key word "Liferay" which will generate 20+ results.
      3. Select filter (Ex: Past Month) from "Any Time" section and click on More link in Pagination bar.
      4. Observe the selected filter (Ex: Past Month) is getting disappeared in the next page.

      Note:
      Could also use Minhchau's steps.

      1. fixed.png
        16 kB
      2. reproduced.png
        31 kB

        Issue Links

          Activity

          Hide
          Minhchau Dang added a comment -

          Steps to reproduce:

          1. Login as an administrator user
          2. Navigate to the Documents and Media portlet in the control panel
          3. Upload more than 20 documents to the document library (attached zip contains 50 documents)
          4. Navigate back to the site
          5. Add the search portlet to a page
          6. Execute a search for something that would return more than 20 results (in the attached example, search for 0)
          7. Filter by content created in the past hour
          8. Observe that 'Past Hour' appears in the selected facets
          9. Select the More link on the pagination

          Expected behavior is that the page retains the 'Past Hour' in the selected facets. Actual behavior is that this facet is lost and Liferay instead searches for everything.

          Show
          Minhchau Dang added a comment - Steps to reproduce: Login as an administrator user Navigate to the Documents and Media portlet in the control panel Upload more than 20 documents to the document library (attached zip contains 50 documents) Navigate back to the site Add the search portlet to a page Execute a search for something that would return more than 20 results (in the attached example, search for 0) Filter by content created in the past hour Observe that 'Past Hour' appears in the selected facets Select the More link on the pagination Expected behavior is that the page retains the 'Past Hour' in the selected facets. Actual behavior is that this facet is lost and Liferay instead searches for everything.
          Hide
          Minhchau Dang added a comment -

          After the fix, the URL for the more link is now much longer than it was before, but the URL is not actually growing very much.

          Before you click MORE:

          _3_cur=1
          _3_documentsSearchContainerPrimaryKeys=33_PORTLET_10499%2C33_PORTLET_10508%2C33_PORTLET_10516%2C33_PORTLET_10524%2C33_PORTLET_10532%2C33_PORTLET_10540%2C33_PORTLET_10548%2C33_PORTLET_10556%2C33_PORTLET_10564%2C33_PORTLET_10572%2C33_PORTLET_10580%2C33_PORTLET_10588%2C33_PORTLET_10596%2C33_PORTLET_10604%2C33_PORTLET_10612%2C33_PORTLET_10620%2C33_PORTLET_10628%2C33_PORTLET_10636%2C33_PORTLET_10644%2C33_PORTLET_10652
          _3_entryClassName=com.liferay.portlet.blogs.model.BlogsEntry
          _3_format=
          _3_formDate=1398221133836
          _3_groupId=0
          _3_keywords=liferay
          _3_modified=
          _3_modifiedfrom=
          _3_modifiedselection=0
          _3_modifiedto=
          _3_struts_action=%2Fsearch%2Fsearch
          _3_userId=
          p_p_id=3
          p_p_lifecycle=0
          p_p_mode=view
          p_p_state=maximized

          After you click MORE:

          _3_advancedSearch=false
          _3_andOperator=true
          _3_cur=2
          _3_delta=20
          _3_documentsSearchContainerPrimaryKeys=33_PORTLET_10499%2C33_PORTLET_10508%2C33_PORTLET_10516%2C33_PORTLET_10524%2C33_PORTLET_10532%2C33_PORTLET_10540%2C33_PORTLET_10548%2C33_PORTLET_10556%2C33_PORTLET_10564%2C33_PORTLET_10572%2C33_PORTLET_10580%2C33_PORTLET_10588%2C33_PORTLET_10596%2C33_PORTLET_10604%2C33_PORTLET_10612%2C33_PORTLET_10620%2C33_PORTLET_10628%2C33_PORTLET_10636%2C33_PORTLET_10644%2C33_PORTLET_10652
          _3_entryClassName=
          _3_format=
          _3_formDate=1398220746058
          _3_groupId=0
          _3_keywords=liferay
          _3_modified=
          _3_modifiedfrom=
          _3_modifiedselection=0
          _3_modifiedto=
          _3_resetCur=false
          _3_struts_action=%2Fsearch%2Fsearch
          _3_userId=10205
          p_p_id=3
          p_p_lifecycle=0
          p_p_mode=view
          p_p_state=maximized

          New parameters:

          _3_advancedSearch=false
          _3_andOperator=true
          _3_delta=20
          _3_entryClassName=com.liferay.portlet.blogs.model.BlogsEntry
          _3_formDate=1398220746058

          Show
          Minhchau Dang added a comment - After the fix, the URL for the more link is now much longer than it was before, but the URL is not actually growing very much. Before you click MORE: _3_cur=1 _3_documentsSearchContainerPrimaryKeys=33_PORTLET_10499%2C33_PORTLET_10508%2C33_PORTLET_10516%2C33_PORTLET_10524%2C33_PORTLET_10532%2C33_PORTLET_10540%2C33_PORTLET_10548%2C33_PORTLET_10556%2C33_PORTLET_10564%2C33_PORTLET_10572%2C33_PORTLET_10580%2C33_PORTLET_10588%2C33_PORTLET_10596%2C33_PORTLET_10604%2C33_PORTLET_10612%2C33_PORTLET_10620%2C33_PORTLET_10628%2C33_PORTLET_10636%2C33_PORTLET_10644%2C33_PORTLET_10652 _3_entryClassName=com.liferay.portlet.blogs.model.BlogsEntry _3_format= _3_formDate=1398221133836 _3_groupId=0 _3_keywords=liferay _3_modified= _3_modifiedfrom= _3_modifiedselection=0 _3_modifiedto= _3_struts_action=%2Fsearch%2Fsearch _3_userId= p_p_id=3 p_p_lifecycle=0 p_p_mode=view p_p_state=maximized After you click MORE: _3_advancedSearch=false _3_andOperator=true _3_cur=2 _3_delta=20 _3_documentsSearchContainerPrimaryKeys=33_PORTLET_10499%2C33_PORTLET_10508%2C33_PORTLET_10516%2C33_PORTLET_10524%2C33_PORTLET_10532%2C33_PORTLET_10540%2C33_PORTLET_10548%2C33_PORTLET_10556%2C33_PORTLET_10564%2C33_PORTLET_10572%2C33_PORTLET_10580%2C33_PORTLET_10588%2C33_PORTLET_10596%2C33_PORTLET_10604%2C33_PORTLET_10612%2C33_PORTLET_10620%2C33_PORTLET_10628%2C33_PORTLET_10636%2C33_PORTLET_10644%2C33_PORTLET_10652 _3_entryClassName= _3_format= _3_formDate=1398220746058 _3_groupId=0 _3_keywords=liferay _3_modified= _3_modifiedfrom= _3_modifiedselection=0 _3_modifiedto= _3_resetCur=false _3_struts_action=%2Fsearch%2Fsearch _3_userId=10205 p_p_id=3 p_p_lifecycle=0 p_p_mode=view p_p_state=maximized New parameters: _3_advancedSearch=false _3_andOperator=true _3_delta=20 _3_entryClassName=com.liferay.portlet.blogs.model.BlogsEntry _3_formDate=1398220746058
          Hide
          Hong Zhao added a comment - - edited

          PASSED Manual Testing following the steps in the description.

          Reproduced on:
          Tomcat 7.0.42 + MySQL 5.5.29. Portal master GIT ID: a3302b5aa7d19932bb9d294708f23ff97ec6371f.

          The selected filter (Ex: Past Hour) is getting disappeared in the next page.

          Fixed on:
          Tomcat 7.0.42 + MySQL 5.5.29. Portal master GIT ID: b0103a4e6ea98bad35c9adfd937fc9b4004aca48.

          The selected filter (Ex: Past Hour) is displayed in the next page.

          Show
          Hong Zhao added a comment - - edited PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0.42 + MySQL 5.5.29. Portal master GIT ID: a3302b5aa7d19932bb9d294708f23ff97ec6371f. The selected filter (Ex: Past Hour) is getting disappeared in the next page. Fixed on: Tomcat 7.0.42 + MySQL 5.5.29. Portal master GIT ID: b0103a4e6ea98bad35c9adfd937fc9b4004aca48. The selected filter (Ex: Past Hour) is displayed in the next page.
          Hide
          Hong Zhao added a comment -

          PASSED Manual Testing following the steps in the description.

          Fixed on:
          Tomcat 7.0.42 + MySQL 5.5.29. Portal ee-6.2.x EE GIT ID: debba797aef5197b852f6622aaedfda8aa220b75.

          The selected filter (Ex: Past Hour) is displayed in the next page.

          Show
          Hong Zhao added a comment - PASSED Manual Testing following the steps in the description. Fixed on: Tomcat 7.0.42 + MySQL 5.5.29. Portal ee-6.2.x EE GIT ID: debba797aef5197b852f6622aaedfda8aa220b75. The selected filter (Ex: Past Hour) is displayed in the next page.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                46 weeks, 5 days ago

                Development

                  Structure Helper Panel