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

Saving settings in a embedded portlet throws NPE

    Details

      Description

      There's an issue when saving settings in a embedded portlet. This can be reproduced in Documents and Media portlet but the issue is related to both Settings and Embedded portlet (it's not related to DM and it can be reproduced in many other portlets). The steps to reproduce the issue are below.

      The issue is that when developers create their configuration for the portlets they can decide how they want to store their settings (defining the scope between portletInstance, group or system). When the scope is group a serviceName should be provided to use it as a settings key.
      When the portlet is embedded, and the user configures the portlet, the URL of the configuration automatically includes a parameter in the url "settingScope" specifying the scope to "group" no matter what the developer decided in the configuration.jsp.


      1. Deploy the attached theme. This theme has an embedded the DM in the portal_normal.vm
      2. Apply the styled Sample Styled Advanced to the pages Look and Feel in a Site.
      3. Go to a page, and configure the DM.

      Result: UI error and in log file appears the next error:

      11:27:51,268 ERROR [http-bio-8080-exec-21][render_portlet_jsp:131] null
      java.lang.NullPointerException
              at com.liferay.portal.kernel.portlet.SettingsConfigurationAction.updateMultiValuedKeys(SettingsConfigurationAction.java:323)
              at com.liferay.portal.kernel.portlet.SettingsConfigurationAction.processAction(SettingsConfigurationAction.java:99)
              at com.liferay.portlet.documentlibrary.action.ConfigurationActionImpl.processAction(ConfigurationActionImpl.java:50)
              at com.liferay.portlet.portletconfiguration.action.EditConfigurationAction.processAction(EditConfigurationAction.java:95)
              at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:163)
              at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:216)
              at com.liferay.portlet.portletconfiguration.PortletConfigurationPortlet.processAction(PortletConfigurationPortlet.java:79)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:71)
              at com.liferay.portlet.CheckboxParametersPortletFilter.doFilter(CheckboxParametersPortletFilter.java:82)
              at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:68)
              at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
              at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:540)
              at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:571)
              at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:328)
              at com.liferay.portlet.MonitoringPortlet.processAction(MonitoringPortlet.java:187)
              at com.liferay.portlet.PortletContainerImpl._doProcessAction(PortletContainerImpl.java:415)
              at com.liferay.portlet.PortletContainerImpl.processAction(PortletContainerImpl.java:110)
              at com.liferay.portlet.SecurityPortletContainerWrapper.processAction(SecurityPortletContainerWrapper.java:93)
              at com.liferay.portlet.RestrictPortletContainerWrapper.processAction(RestrictPortletContainerWrapper.java:75)
              at com.liferay.portal.kernel.portlet.PortletContainerUtil.processAction(PortletContainerUtil.java:114)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 1 week, 4 days ago

                Packages

                Version Package
                7.0.0 Alpha 1