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

Search Portlet - Multiple searches can be sumitted upon clicking several times on the search icon in the main view

    Details

      Description

      === Steps to reproduce

      0- Add debug points to MainServlet#service() method & to the portal-web/docroot/html/portlet/search/search.jsp | Start portal in debug mode & start debugging from your IDE
      1- Place Search portlet on a page
      2- Enter any keywords into the input field
      3- Click quickly several (e.g. 3 times) on the "search" icon

      >>> You'll see in your IDE that MainServlet is hit 3 times by 3 search requests:

      com.liferay.portal.kernel.servlet.ProtectedServletRequest@7aa67a29
      {p_p_state=[Ljava.lang.String;@6fd0b263, _3_redirect=[Ljava.lang.String;@6e6fbaee, p_p_lifecycle=[Ljava.lang.String;@695997e6, p_p_id=[Ljava.lang.String;@7903b312, _3_struts_action=[Ljava.lang.String;@61e1a0cf, p_l_id=[Ljava.lang.String;@2404a83d, _3_groupId=[Ljava.lang.String;@2dc14f44, p_p_col_id=[Ljava.lang.String;@6e3b10d3, p_p_mode=[Ljava.lang.String;@67cdc52e, _3_keywords=[Ljava.lang.String;@764c843f, p_v_l_s_g_id=[Ljava.lang.String;@197e80c6}
      
      com.liferay.portal.kernel.servlet.ProtectedServletRequest@10dfc447
      {p_p_state=[Ljava.lang.String;@60a0cd19, _3_redirect=[Ljava.lang.String;@5cf955de, p_p_lifecycle=[Ljava.lang.String;@75749181, p_p_id=[Ljava.lang.String;@37fce865, _3_struts_action=[Ljava.lang.String;@3cfd5b9a, p_l_id=[Ljava.lang.String;@1d88fabe, _3_groupId=[Ljava.lang.String;@c05df18, p_p_col_id=[Ljava.lang.String;@5579a6d2, p_p_mode=[Ljava.lang.String;@25b750d5, _3_keywords=[Ljava.lang.String;@261be34b, p_v_l_s_g_id=[Ljava.lang.String;@70e76478}
      
      com.liferay.portal.kernel.servlet.ProtectedServletRequest@52e8ebbd
      {p_p_state=[Ljava.lang.String;@1a24c23e, _3_redirect=[Ljava.lang.String;@634c81da, p_p_lifecycle=[Ljava.lang.String;@33e14224, p_p_id=[Ljava.lang.String;@9bd6418, _3_struts_action=[Ljava.lang.String;@70f668a6, p_l_id=[Ljava.lang.String;@4150a43a, _3_groupId=[Ljava.lang.String;@154dfd56, p_p_col_id=[Ljava.lang.String;@33332407, p_p_mode=[Ljava.lang.String;@628261d3, _3_keywords=[Ljava.lang.String;@5de4962b, p_v_l_s_g_id=[Ljava.lang.String;@4a3f1135}
      

      and search.jsp will be rendered 3 times as well.

      4- In contrast, you cannot submit the search form multiple times from the result page (the page that is loaded upon an "initial" search from the main view)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sharry.shi Sharry Shi
              Reporter:
              tibor.lipusz Tibor Lipusz
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 12 weeks, 4 days ago

                  Packages

                  Version Package
                  6.0.X EE
                  6.1.X EE
                  6.2.0 CE B1