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

Portlet fails to set Cookies using addProperty in renderHeaders

    Details

    • Fix Priority:
      3

      Description

      Steps to Reproduce:

      1. Deploy the attached demo portlet to Liferay
      2. Add "Header Phase Test Portlet" to a page

      Expected Result:
      Current Cookies box shows cookies added by the portlet:

      Author=Scott
      V3HeaderPortlet=something-special
      

      Actual Result:
      Expected Cookies are not found.

      The expected cookies do show when the portlet is deployed on Apache Pluto

      Code used by the portlet to set Cookies can be see here https://github.com/apache/portals-pluto/blob/24434e9f24758adbb6de2cd11a029bb8c46b3008/demo/v3-demo-portlet/src/main/java/basic/portlet/HeaderPortlet.java#L86

      Note: An unrelated error message will be thrown reported in the console log due to invalid characters in headSectionMarkup.jsp – these invalid characters were put there intentionally by the portlet developer in order to verify that the invalid characters would not be rendered to the output:
      https://gist.github.com/vicnate5/7fe33120b6ce9ad4eb5d8f6723260400

      Portlet can be manually built by:

      1. git clone https://github.com/apache/portals-pluto
      2. cd portals-pluto/demo/v3-demo-portlet
      3. mvn -P all,liferay clean install
      4. cp target/*.war LIFERAY_HOME/deploy

        Attachments

        1. LiferayResult.png
          LiferayResult.png
          255 kB
        2. PlutoResult.png
          PlutoResult.png
          156 kB
        3. v3-demo-portlet.war
          169 kB

          Activity

            People

            • Assignee:
              neil.griffin Neil Griffin
              Reporter:
              victor.ware Victor Ware
              Participants of an Issue:
              Recent user:
              Neil Griffin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                34 weeks, 4 days ago

                Packages

                Version Package