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

Control Panel - Clicking on certain resources in Control Panel redirects to a blank page

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Similar Issues:
      Show 5 results 

      Description

      Steps to reproduce (multiple):

      1. Go to > Control Panel > Custom Fields
      2. Click on any resource (Blogs Entry, Page, Role, User, etc.)
      1. Go to > Control Panel > Users and Organizations
      2. Click on a user's name or any organization name.
      1. Go to > Control Panel > user Groups
      2. Click on a user group's name.
      1. Go to > Control Panel > Roles
      2. Click on the title of the Role.
      1. Go to > Control Panel > Password Policies
      2. Click Default Password Policy.
      • There may be more areas that are affected, but this is all that I have found at this point.

      Expected result:
      The Custom Fields page for the Resource should appear.

      Actual result:
      Nothing happens, and the page will be blank (for Chrome and Firefox. IE will give a "The webpage cannot be found message."). No console errors occur. The correct page will still appear when clicking any of the Edit buttons on the respective menus.

      These are some of the URL's that portal redirected to:
      http://localhost:8080/group/control_panel/http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D139%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26doAsGroupId%3D19%26refererPlid%3D10168%26_139_modelResource%3Dcom.liferay.portal.model.User%26_139_redirect%3Dhttp%253A%252F%252Flocalhost%253A8080%252Fgroup%252Fcontrol_panel%252Fmanage%253Fp_p_id%253D139%2526p_p_lifecycle%253D0%2526p_p_state%253Dmaximized%2526p_p_mode%253Dview%2526doAsGroupId%253D19%2526refererPlid%253D10168%2526_139_advancedSearch%253Dfalse%2526_139_keywords%253D%2526_139_refererPlid%253D10168%2526_139_delta%253D20%2526_139_cur%253D1%2526_139_doAsGroupId%253D19%2526_139_andOperator%253Dtrue%26_139_struts_action%3D%252Fexpando%252Fview_attributes

      http://localhost:8080/group/control_panel/http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D125%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26doAsGroupId%3D19%26refererPlid%3D10168%26_125_p_u_i_d%3D10463%26_125_redirect%3Dhttp%253A%252F%252Flocalhost%253A8080%252Fgroup%252Fcontrol_panel%252Fmanage%253Fp_p_id%253D125%2526p_p_lifecycle%253D0%2526p_p_state%253Dmaximized%2526p_p_mode%253Dview%2526doAsGroupId%253D19%2526refererPlid%253D10168%2526_125_refererPlid%253D10168%2526_125_doAsGroupId%253D19%2526_125_cur1%253D1%2526_125_delta1%253D20%2526_125_keywords%253D%2526_125_advancedSearch%253Dfalse%2526_125_andOperator%253Dtrue%2526_125_city%253D%2526_125_countryId%253D0%2526_125_name%253D%2526_125_parentOrganizationId%253D0%2526_125_regionId%253D0%2526_125_street%253D%2526_125_zip%253D%2526_125_orderByCol%253Dlast-name%2526_125_orderByType%253Dasc%2526_125_resetCur%253Dfalse%2526_125_cur2%253D1%2526_125_delta2%253D20%2526_125_status%253D0%2526_125_emailAddress%253D%2526_125_firstName%253D%2526_125_lastName%253D%2526_125_middleName%253D%2526_125_organizationId%253D0%2526_125_roleId%253D0%2526_125_screenName%253D%2526_125_userGroupId%253D0%26_125_struts_action%3D%252Fusers_admin%252Fedit_user

      http://localhost:8080/group/control_panel/http%3A%2F%2Flocalhost%3A8080%2Fgroup%2Fcontrol_panel%2Fmanage%3Fp_p_id%3D128%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_p_mode%3Dview%26doAsGroupId%3D19%26refererPlid%3D10168%26_128_struts_action%3D%252Froles_admin%252Fedit_role%26_128_redirect%3Dhttp%253A%252F%252Flocalhost%253A8080%252Fgroup%252Fcontrol_panel%252Fmanage%253Fp_p_id%253D128%2526p_p_lifecycle%253D0%2526p_p_state%253Dmaximized%2526p_p_mode%253Dview%2526doAsGroupId%253D19%2526refererPlid%253D10168%2526_128_struts_action%253D%25252Froles_admin%25252Fview%2526_128_cur%253D1%2526_128_delta%253D20%2526_128_keywords%253D%2526_128_advancedSearch%253Dfalse%2526_128_andOperator%253Dtrue%2526_128_description%253D%2526_128_name%253D%2526_128_type%253D0%2526_128_orderByCol%253Dtitle%2526_128_orderByType%253Dasc%26_128_roleId%3D15

        Activity

        Hide
        Albert Lee added a comment -

        This is not limited to the Control Panel. I was able to reproduce while Posting a thread in the MB portlet and trying to click into the thread.

        Apache does not allow encoded URL "%2F" for backslashes.

        Show
        Albert Lee added a comment - This is not limited to the Control Panel. I was able to reproduce while Posting a thread in the MB portlet and trying to click into the thread. Apache does not allow encoded URL "%2F" for backslashes.
        Hide
        Kenji Heigel added a comment -

        Caused by LPS-32031

        Git bisect output:

        ea7040c8479804715cd403a2cdc409990cfaba6d is the first bad commit
        commit ea7040c8479804715cd403a2cdc409990cfaba6d
        Author: Zsolt Berentey <zsolt.berentey@liferay.com>
        Date:   Thu Apr 4 13:36:47 2013 +0200
        
            LPS-32031 Don't url escape the href attribute if it contains javascript
        
        :040000 040000 48fe0ed8febaeaba4ac8712c743885a27dc34733 daafb96d3bbee2c8826369e38b6fb77f87c599a2 M      portal-service
        
        Show
        Kenji Heigel added a comment - Caused by LPS-32031 Git bisect output: ea7040c8479804715cd403a2cdc409990cfaba6d is the first bad commit commit ea7040c8479804715cd403a2cdc409990cfaba6d Author: Zsolt Berentey <zsolt.berentey@liferay.com> Date: Thu Apr 4 13:36:47 2013 +0200 LPS-32031 Don't url escape the href attribute if it contains javascript :040000 040000 48fe0ed8febaeaba4ac8712c743885a27dc34733 daafb96d3bbee2c8826369e38b6fb77f87c599a2 M portal-service
        Hide
        Zsolt Berentey (Inactive) added a comment -

        It affects all search container links that are placed into columns. When adding the fix for URLs with javascript code I changed the escaping of other URLs to URL escape, which was a mistake. I already sent the fix for it.

        Show
        Zsolt Berentey (Inactive) added a comment - It affects all search container links that are placed into columns. When adding the fix for URLs with javascript code I changed the escaping of other URLs to URL escape, which was a mistake. I already sent the fix for it.
        Hide
        Justin Choi added a comment -

        I could reproduce this on a wiki page.

        1. Add a page.
        2. Add the wiki portlet.
        3. Add a page.
        4. Go to that page. --> Redirects to a blank page.
        Show
        Justin Choi added a comment - I could reproduce this on a wiki page. Add a page. Add the wiki portlet. Add a page. Go to that page. --> Redirects to a blank page.
        Hide
        Kenji Heigel added a comment - - edited

        PASSED Manual Testing following the steps in the description.

        Fixed on:
        Tomcat 7.0.34 + MySQL 5. Portal 6.2.x GIT ID: 673b0ca3673f238ee35f2551262c4b025fe8d786.

        Tested at a few locations in Control Panel, and through the Wiki portlet and the links function as expected. There are no longer any redirects to blank pages. The links also do not have "%2F".

        Show
        Kenji Heigel added a comment - - edited PASSED Manual Testing following the steps in the description. Fixed on: Tomcat 7.0.34 + MySQL 5. Portal 6.2.x GIT ID: 673b0ca3673f238ee35f2551262c4b025fe8d786. Tested at a few locations in Control Panel, and through the Wiki portlet and the links function as expected. There are no longer any redirects to blank pages. The links also do not have "%2F".

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 7 weeks, 2 days ago

              Development

                Structure Helper Panel