cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo Automation Client: Using slash "/" in Document name. Action "Document.Create"

yayo_
Confirmed Champ
Confirmed Champ

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

0 REPLIES 0