Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3404

Encoded URL characters are double encoded for certain Liferay Portal parameters

    Details

      Description

      Steps to reproduce:

      1. Change the contents of h:body in JSF Applicant WEB-INF/views/portletViewMode.xhtml:
             <h1>I am #{requestScope['LIFERAY_SHARED_THEME_DISPLAY'].user.fullName}</h1>
             <h:form>
                 <h:commandButton value="view-info" action="view-info" />
             </h:form>
        
      2. Add WEB-INF/views/view-info.xhtml:
         <?xml version="1.0"?>
         <f:view xmlns="http://www.w3.org/1999/xhtml"
             xmlns:f="http://xmlns.jcp.org/jsf/core"
             xmlns:h="http://xmlns.jcp.org/jsf/html">
             <h:head />
             <h:body>
                 <h1>I am #{requestScope['LIFERAY_SHARED_THEME_DISPLAY'].user.fullName}</h1>
             </h:body>
         </f:view>
        
      3. Deploy the JSF applicant portlet to Liferay Portal and add it to a page.
      4. Navigate to the Users and Organizations portlet: Menu > Users > Users and Organizations.
      5. Click the + (plus) button to create a new user.
      6. Fill out the following fields with the following values:
        Screen Name: "DummyUser"
        Email Address: "dummyuser@liferay.com"
        First Name: Dummy
        Last Name: User
      7. Click the Save button.
      8. Select "DummyUser" > three dot menu > Impersonate User
      9. Navigate to the JSF Applicant portlet and confirm that "I am Dummy User" appears.
      10. Click the view-info button.

      If the bug is fixed, "I am Dummy User" will appear.

      If the bug still exists, "I am Dummy User" will not appear and the default user name will appear instead.

        Attachments

          Activity

            People

            • Assignee:
              kyle.stiemann Kyle Stiemann
              Reporter:
              kyle.stiemann Kyle Stiemann
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: