Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
5.1 EE SP4 (5.1.7), 5.2 EE SP2 (5.2.6)
-
None
-
All
Description
Exporting a site with a large Document Library or Image Gallery will cause an out of memory exception. The algorithm used to create the LAR file has been updated so that it is no longer limited by the available memory. This change will allow significantly larger sites to be exportable.
API CHANGES:
Class: com.liferay.portal.kernel.zip.ZipReader
Note: this class has been changed to an interface. The implementation can be found in ZipReaderImpl.
Method: ZipReader(File file)
Status: Deleted
New call: ZipReaderFactoryUtil.getZipReader(file)
Method: ZipReader(InputStream stream)
Status: Deleted
New call: ZipReaderFactoryUtil.getZipReader(stream)
Method: getEntries()
Return type: changed from Map<String, byte[]> to List<String>
Method: getFolderEntries()
Status: Deleted
Method: getFolderEntries(String path)
Return type: changed from List<ObjectValuePair<String, byte[]>> to List<String>
Class: com.liferay.portal.kernel.zip.ZipWriter
Note: this class has been changed to an interface. The implementation can be found in ZipWriterImpl
Method: ZipWriter()
Status: Deleted
New call: ZipWriterFactoryUtil.getZipWriter()
Method: finishWithStream()
Status: Deleted
Class: com.liferay.portal.lar.PortletDataContext
Method: getZipEntries()
Return type: changed from Map<String, byte[]> to List<String>
Method: getZipFolderEntries()
Return type: changed from Map<String, List<ObjectValuePair<String, byte[]>>> to List<String>
Method: getZipFolderEntries(String path)
Return type: changed from List<ObjectValuePair<String, byte[]>> to List<String>
Class: com.liferay.portal.service.LayoutLocalService
Method: exportLayoutsAsStream(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Status: Deleted
New method: exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Method: exportPortletInfoAsStream(long plid, long groupId, String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Status: Deleted
New method: exportPortletInfoAsFile(long plid, long groupId, String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Class: com.liferay.portal.service.LayoutLocalServiceUtil
Method: exportLayoutsAsStream(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Status: Deleted
New method: exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Method: exportPortletInfoAsStream(long plid, long groupId, String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Status: Deleted
New method: exportPortletInfoAsFile(long plid, long groupId, String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Class: com.liferay.portal.service.LayoutLocalServiceWrapper
Method: exportLayoutsAsStream(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Status: Deleted
New method: exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Method: exportPortletInfoAsStream(long plid, long groupId, String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Status: Deleted
New method: exportPortletInfoAsFile(long plid, long groupId, String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Class: com.liferay.portal.service.LayoutService
Method: exportLayoutsAsStream(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Status: Deleted
New method: exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Method: exportPortletInfoAsStream(long plid, long groupId, java.lang.String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Status: Deleted
New method: exportPortletInfoAsFile(long plid, long groupId, java.lang.String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Class: com.liferay.portal.service.LayoutServiceUtil
Method: exportLayoutsAsStream(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Status: Deleted
New method: exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Method: exportPortletInfoAsStream(long plid, long groupId, java.lang.String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Status: Deleted
New method: exportPortletInfoAsFile(long plid, long groupId, java.lang.String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Class: com.liferay.portal.service.LayoutServiceWrapper
Method: exportLayoutsAsStream(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Status: Deleted
New method: exportLayoutsAsFile(long groupId, boolean privateLayout, long[] layoutIds, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Method: exportPortletInfoAsStream(long plid, long groupId, java.lang.String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Status: Deleted
New method: exportPortletInfoAsFile(long plid, long groupId, java.lang.String portletId, Map<String, String[]> parameterMap, Date startDate, Date endDate)
Attachments
Issue Links
- is related to
-
LPS-5976 Exporting document library or image gallery with large file sizes will throw out of memory exception
- Closed