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

NullPointerException thrown by PortletConfig.getWindowStates(String mimeType) for an unknown mime type

    Details

      Description

      Steps to Reproduce:

      1. Clone the Apache Pluto Git repo:

      git clone https://github.com/apache/portals-pluto
      

      2. Build the project

      cd portals-pluto
      mvn clean install
      

      3. Create a Liferay-specific WAR of the PortletV3Demo:

      cd PortletV3Demo
      mvn -P liferay clean package
      

      4. Deploy the WAR to Liferay Portal:

      cp target/PortletV3Demo*.war $LIFERAY_HOME/deploy
      

      5. Add the "PortletConfigPortlet2" portlet to a portal page.

      6. Reload the portal page in the browser.

      Expected Results:

      The portlet renders and the following window state information is displayed:

      Window States:
      MIME type: text/html, WindowState: testwindowstate_2, Allowed: false
      MIME type: text/html, WindowState: normal, Allowed: true
      MIME type: text/html, WindowState: testwindowstate_1, Allowed: false
      

      Actual Results:

      The portlet renders "An unexpected error has occurred"

      In addition, the console log shows that this is caused by a NullPointerException when PortletConfig.getWindowStates("text/vnd.wap.wml") is called by the PortletConfigPortlet.java.

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            neil.griffin Neil Griffin
            Participants of an Issue:
            Recent user:
            Csaba Turcsan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 26 weeks ago

                Packages

                Version Package
                7.1.10 DXP FP1
                7.1.1 CE GA2
                7.1.10.1 SP1
                7.1.X
                Master