juliocamarero/liferay-portal — pull request #646 by epgarcia (2012-10-31 12:56:38+00:00)
Title: LPS-30770 Importing an RSS portlet with more than one URL-Title fails

As for LPS-28118 the concept of Data Portlet Preferences was introduced. They are portlet preferences which refer to ids, such as articleIds, plids, etc. When a portlet is imported, its data portlet preferences are modified only if the data they're pointing to is modified, too. This way, the correct referenced id is preserved and not overwritten with the one from the lar.

During this process, every portlet preference is checked and imported only if it's not a data portlet preference. But the multi-value preferences case (such as for RSS urls and titles) was not considered.

The only portlet with data portlet preferences which also contains multi-value portlet preferences is the RSS portlet. Thus, this is the only portlet affected by this issue.

I've tested the export/import of a site containing an RSS with multiple urls configured and it worked fine. I've also run the PortletExportImportTest successfully.

Remark: I removed the GetterUtil from the code where preference values are recovered, since null values are allowed in PortletPreferences.setValues(). See http://portals.apache.org/pluto/portlet-2.0-apidocs/javax/portlet/PortletPreferences.html.