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

Senna causes the parameterMap in an auth.pipeline Authenticator to be incomplete in specific scenario in DXP 7.1

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 7.1.10 DXP FP1, 7.1.10 DXP FP2
    • Fix Version/s: None
    • Component/s: Dev Tools
    • Labels:
      None

      Description

      Using DXP 7.1 7.1.10-ga1, with or without Fix Pack 2:

      1. Deploy a module with an auth.pipeline.pre or auth.pipeline.post Authenticator component with the following code in the appropriate authenticate method in use for the environment:

      for (String key : parameterMap.keySet())

      { _log.info("parameterMap key: " + key); }

      2. Go to home page and click 'Login', populate email/screenName and invalid password on the login screen, click Sign In and check the server logs. The list of parameters is as follows:

      parameterMap key: p_p_id
      parameterMap key: p_p_lifecycle
      parameterMap key: p_p_state
      parameterMap key: p_p_mode
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_javax.portlet.action
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName

      This is the list of parameters included in the URL but it doesn't include the parameters from the POST form body.

      3. Enter invalid password on the subsequent login screen, click Sign In and check the server logs. The list of parameters is as follows:

      parameterMap key: p_p_id
      parameterMap key: p_p_lifecycle
      parameterMap key: p_p_state
      parameterMap key: p_p_mode
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_javax.portlet.action
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_formDate
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_saveLastPath
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_redirect
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_doActionAfterLogin
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_login
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_password
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_checkboxNames

      This is the list of parameters included in the URL plus the parameters from the POST form body.

      4. Stop Liferay, add the following to portal-ext.properties and restart Liferay:

      javascript.single.page.application.enabled=false

      5. Go to home page and click 'Login', populate email/screenName and invalid password on the login screen, click Sign In and check the server logs. The list of parameters is as follows:

      parameterMap key: p_p_id
      parameterMap key: p_p_lifecycle
      parameterMap key: p_p_state
      parameterMap key: p_p_mode
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_javax.portlet.action
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_formDate
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_saveLastPath
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_redirect
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_doActionAfterLogin
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_login
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_password
      parameterMap key: _com_liferay_login_web_portlet_LoginPortlet_checkboxNames

      This is the list of parameters included in the URL plus the parameters from the POST form body.

      When Senna / SPA is enabled the list from the modal dialog is not complete. When Senna / SPA is disabled the list from the modal dialog is complete.

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            michael.wall Michael Wall
            Participants of an Issue:
            Recent user:
            Michael Wall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              3 years, 40 weeks, 3 days ago

                Packages

                Version Package