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

"name" attribute is double escaped in roles_admin portlet

    Details

      Description

      Steps to reproduce:

      1. Build and start Liferay Portal ee-6.2.x.
      2. Go to the Control Panel as Administrator.
      3. Navigate to Roles.
      4. Create a new Regular Role.
      5. Edit the Role to define some permissions.
      6. Select Control Panel -> Sites -> Sites.
      7. Try to restrict one resource permission to a specific site, for instance, Site -> Add Page, click on the corresponding button "Change".
      8. In the pop-up, try to choose a Site

      Expected Result: Site is selected as a scope.

      Actual Result: Button is ineffective as a javascript error happens in the browser console. "Uncaught TypeError: Cannot read property 'value' of undefined"

      The problem is that some of the attributes of the input element are being double encoded, when it should be done only once. Check the resource "/html/portlet/roles_admin/edit_role_permissions_resource_scope.jsp" to see the first encoding. LPE-14457 / LPS-60206 changed /html/taglib/aui/input/page.jsp, and added additional encoding there.

      reproduced on ee-6.2.x @ 4986ef9c460a44054f25b8c29b06f78468090428
      couldn't reproduce on master - @ 05a5eb21faf4898e6bf3d65d2720d60c67031315

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                felix.zhang Felix Zhang
                Reporter:
                zsolt.szabo Zsolt Szabo (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 42 weeks, 3 days ago

                  Packages

                  Version Package
                  6.2.X EE