Foros de discusión

Why simply don't delete the CMISStore?

Antonio Javier Ortega Pérez, modificado hace 6 años.

Why simply don't delete the CMISStore?

New Member Mensajes: 22 Fecha de incorporación: 20/04/11 Mensajes recientes
I was trying a proof of concept connecting Liferay 7 to Alfresco through CMIS Store. First I read this in section Using the CMIS Store

https://dev.liferay.com/es/discover/portal/-/knowledge_base/7-0/liferay-repository-types

Here explains that CMISStore is deprecated:
https://dev.liferay.com/es/discover/deployment/-/knowledge_base/7-0/document-repository-configuration#using-the-cmis-store

If my CMIS configurations is wrong, initializing the CMISStore throws an Exception:

07:44:26,408 WARN  [Start Level: Equinox Container: 50ea857c-d79d-0017-1aba-a6a81c671e6b][CMISStore:482] Liferay is configured via the portal property "dl.store.impl" to use CMIS to persist documents. CMIS is deprecated and is not supported.
07:44:26,932 ERROR [Start Level: Equinox Container: 50ea857c-d79d-0017-1aba-a6a81c671e6b][com_liferay_portal_store_cmis:97] [com.liferay.portal.store.cmis.CMISStore(1496)] The activate method has thrown an exception 
org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException: Constraint violation: 08200024 Found 1 integrity violations:_Invalid property value: _   Node: workspace://SpacesStore/6ff2c2ea-f19a-4ab9-834f-84248dbda10f_   Name: /_   Type: {http://www.alfresco.org/model/content/1.0}folder_   Property: {http://www.alfresco.org/model/content/1.0}name_   Constraint: 08200023 Value '/' is not valid as a file name. This property must be a valid file name. [Sanitized]
	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:499)
	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:661)
	at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createFolder(ObjectServiceImpl.java:160)
	at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createFolder(SessionImpl.java:1147)
	at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createFolder(SessionImpl.java:1224)


If the CMIS configuration is ok it only appears this warning message and do nothing.

Liferay is configured via the portal property "dl.store.impl" to use CMIS to persist documents. CMIS is deprecated and is not supported.


It s very confusing to have a module that fails if wrong configured, but, if well configured do nothing because it is deprecated.

Why simply don't delete the CMISStore in Liferay 7?
thumbnail
Olaf Kock, modificado hace 6 años.

RE: Why simply don't delete the CMISStore?

Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
It looks like the code itself is still there (although I didn't run it) - might be just a bug, or a change in how Alfresco interprets the API... not sure. Given that it's deprecated, declared unsupported and that it's not even documented any more in portal.properties, the chances of getting it fixed are probably not too large, however you might be able to find the underlying issue yourself by looking at the code, potentially deploying your own version of it.