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

HttpServletRequest.getQueryString() returns null in WebSphere application server

    Details

      Description

      Steps to reproduce:

      • Deploy portal in WebSphere Application Server (WAS).
      • Deploy attached portlet querystring-portlet-6.2.0.1.war (Note: it is for portal 6.2).
      • Add a new page named p1.
      • Add Language portlet to p1.
      • Add QueryString portlet (under Sample category) to p1.
      • Configure site language to English United States (en_US).
      • Navigate to site as guest user.
      • Ensure that GUEST_LANGUAGE_ID cookie is not set.
      • Copy following URL in browser:
        • http://<host>:<port>/p1?foo=bar&liferay=DXP

      Checkpoint 1

      Observed and expected behaviour:

      1. Browser URL does not change: it is http://<host>:<port>/p1?foo=bar&liferay=DXP
      2. Browser loads p1
      3. QueryString portlet shows
        request.getQueryString(): null
        request.getAttribute(javax.servlet.forward.query_string): foo=bar&liferay=DXP
        
      • Choose a different language using Language portlet, for example: Spanish - Spain.

      Checkpoint 2

      Observed and expected behaviour:

      1. GUEST_LANGUAGE_ID cookie is created in browser with the chosen locale as value: es_ES
      2. Browser URL prepends locale: now it is http://<host>:<port>/es/p1?foo=bar&liferay=DXP
      3. Browser loads p1
      4. QueryString portlet shows
        request.getQueryString(): null
        request.getAttribute(javax.servlet.forward.query_string): foo=bar&liferay=DXP
        
      • Copy following URL in browser (same as above: it does not contains any locale):
        • http://<host>:<port>/p1?foo=bar&liferay=DXP

      Observed behaviour:

      1. GUEST_LANGUAGE_ID cookie is not changed in browser
      2. Browser URL prepends locale BUT looses query string : now it is http://<host>:<port>/es/p1
      3. Browser loads p1
      4. QueryString portlet shows
        request.getQueryString(): null
        request.getAttribute(javax.servlet.forward.query_string): null
        

      Expected behaviour:

      1. GUEST_LANGUAGE_ID cookie is not changed in browser
      2. Browser URL prepends locale and keeps query string: it must be http://<host>:<port>/es/p1?foo=bar&liferay=DXP
      3. Browser loads p1
      4. QueryString portlet shows
        request.getQueryString(): null
        request.getAttribute(javax.servlet.forward.query_string): foo=bar&liferay=DXP
        

      Conclusions:

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 36 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP19
                  7.0.3 CE GA4
                  7.0.0 DXP FP21
                  7.0.0 DXP SP4
                  7.0.X EE
                  7.1.0 M1
                  7.1.X
                  Master