campfire-digital-services / liferay-dm-folder-downloader

This project provides a Liferay Portal plugin to download the contents of a Documents and Media folder (and subfolders) as a ZIP file.
http://www.permeance.com.au/liferay-documents-and-media-downloader
1 stars 9 forks source link

DM Folder Downloader does not download content from CMIS repository. #1

Closed timtelcik closed 11 years ago

timtelcik commented 11 years ago

DM Folder Downloader does not download content from CMIS repository.

i.e. Alfresco repository mounted as CMIS Repository (AtomPub)

See below for snippet of Tomcat log file containing error context:

{code} 2013-03-27 00:28:26,852 DEBUG [http-bio-8080-exec-9][HttpUtils:87] GET http://localhost:9080/alfresco/cmisatom/842dffe7-ea8d-4d45-a1d9-d82ec1beedd8/content/loreal-wookie.jpg?id=workspace%3A%2F%2FSpacesStore%2F190386f7-b285-4e2c-82c9-99e74060bd5a%3B1.0 2013-03-27 00:28:26,853 ERROR [http-bio-8080-exec-9][DLFolderExportZipHelper:244] Error exporting file entry com.liferay.portal.repository.cmis.model.CMISFileEntry@716c5c8d to ZIP writer /Users/tim.telcik/work/projects/permeance/liferay-marketplace/liferay-portal/liferay-portal-6.1.20-ee-ga2/bundles/liferay-portal-6.1.20-ee-ga2/tomcat-7.0.27/temp/6f0ac6d9-35e9-41c2-be5e-9d64d8affdb22836110884475275052.zip : Cannot access http://localhost:9080/alfresco/cmisatom/842dffe7-ea8d-4d45-a1d9-d82ec1beedd8/content/loreal-wookie.jpg?id=workspace%3A%2F%2FSpacesStore%2F190386f7-b285-4e2c-82c9-99e74060bd5a%3B1.0: Attempted to get proxy selector org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Cannot access http://localhost:9080/alfresco/cmisatom/842dffe7-ea8d-4d45-a1d9-d82ec1beedd8/content/loreal-wookie.jpg?id=workspace%3A%2F%2FSpacesStore%2F190386f7-b285-4e2c-82c9-99e74060bd5a%3B1.0: Attempted to get proxy selector at org.apache.chemistry.opencmis.client.bindings.spi.http.HttpUtils.invoke(HttpUtils.java:203) at org.apache.chemistry.opencmis.client.bindings.spi.http.HttpUtils.invokeGET(HttpUtils.java:66) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getContentStream(ObjectServiceImpl.java:462) at org.apache.chemistry.opencmis.client.runtime.DocumentImpl.getContentStream(DocumentImpl.java:347) at org.apache.chemistry.opencmis.client.runtime.DocumentImpl.getContentStream(DocumentImpl.java:338) at com.liferay.portal.repository.cmis.model.CMISFileEntry.getContentStream(CMISFileEntry.java:93) at au.com.permeance.liferay.portlet.documentlibrary.service.impl.DLFolderExportZipHelper.exportFileEntryToZipWriter(DLFolderExportZipHelper.java:235) {code}

timtelcik commented 11 years ago

This CMIS download error is most likely related to PACL issues in LP 6.1 CE GA2 (6.1.1) and LP 6.1 EE GA2 (6.1.20).

PACL - As a developer I would like reasonable java operations such as classloading, reflection, native library access within libraries I include to not prevent me from developing plugins for the marketplace http://issues.liferay.com/browse/LPS-33047

PACL - wrap objects with DoPrivileged proxy where appropriate http://issues.liferay.com/browse/LPS-33875

Home » Liferay Marketplace » 2. Marketplace Developers http://www.liferay.com/community/forums/-/message_boards/category/10919228

timtelcik commented 11 years ago

Disabled security manager in plugin package properties.

This issue is related to issue "liferay-dm-folder-downloader-issues-3" at https://github.com/permeance/liferay-dm-info-viewer/issues/3