08-20-2012 12:25 PM
Hi @ all,
I'm tring to create a document with name like "abc / 2323" with following code:
nuxeosession.newRequest("Document.Create").setInput(new PathRef(pathtoworkspace)).set("type", "File").set("name", namewithslash).set("properties", props).execute();
But the Nuxeo-Automation-client complain because, i think, the library try to use "/" as separator. The relevant exceptions are:
Caused by: org.nuxeo.ecm.automation.client.jaxrs.spi.JsonMarshalling$RemoteThrowable: Exception: org.nuxeo.ecm.core.model.NoSuchDocumentException. message: No such document: No such document: /test/workspaces/test1/2323
and
Caused by: org.nuxeo.ecm.automation.client.jaxrs.spi.JsonMarshalling$RemoteThrowable: Failed to create document: abc
how can i try to escape the "/" ... i have tried to create the document from Nuxeo UI without any problem. Can you help me? Thank you
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.