Our application needs to be able to append to a document's content stream. But I'm encountering an CmisNotSupportedException whenever I call Document.appendStream(...). Can someone shed any light on this? This feature is supposed to be supported in 1.1. And the HCP repository reports CMIS version 1.1.
I've exposed our repository with a servlet (as suggested by the docs).
public class CMISProxyServlet extends AbstractCmisProxyServlet {
protected String getRepositoryUniqueName()
{
return "our repo id";
}
protected String getRepositoryKey()
{
return "our key";
}
}
The Proxy servlet works fine. I can connected using the CMIS Workbench. I'm trying to develop code that supports an OutputStream and it works in unit tests with the FileBridgeCmisServiceFactory implementation but I get a CmisNotSupportedException: not supported, caused by the DocumentImpl.appendContentStream(DocumentImpl.java:462) when using the repository on HCP.
It seems its not my code because I'm getting the same results in the CMIS Workbench (using the available actions on a file):
> 17:32:18 ERROR chemistry.opencmis.workbench.ClientHelper: CmisNotSupportedException: not supported
org.apache.chemistry.opencmis.commons.exceptions.CmisNotSupportedException: not supported
at org.apache.chemistry.opencmis.client.bindings.spi.browser.AbstractBrowserBindingService.convertStatusCode(AbstractBrowserBindingService.java:276)
at org.apache.chemistry.opencmis.client.bindings.spi.browser.AbstractBrowserBindingService.post(AbstractBrowserBindingService.java:404)
at org.apache.chemistry.opencmis.client.bindings.spi.browser.ObjectServiceImpl.appendContentStream(ObjectServiceImpl.java:582)
at org.apache.chemistry.opencmis.client.runtime.DocumentImpl.appendContentStream(DocumentImpl.java:462)
at org.apache.chemistry.opencmis.workbench.actions.AppendContentStreamPanel.doAction(AppendContentStreamPanel.java:77)
at org.apache.chemistry.opencmis.workbench.swing.ActionPanel.actionPerformed(ActionPanel.java:123)