Hi there,
I would like to create a document by CMIS call. I'm calling URL by CURL and i passed this kind of file:
<atom:entry xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/"
xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app"
xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/">
<atom:title><?php echo $title ?></atom:title>
<atom:summary><?php echo utf8_encode($description) ?></atom:summary>
<cmisra:content>
<cmisra:mediatype><?php echo $contentType ?></cmisra:mediatype>
<cmisra:base64>
</cmisra:base64>
</cmisra:content>
<cmisra:object>
<cmis:properties>
<cmis:propertyId propertyDefinitionId="cmis:objectTypeId">
<cmis:value>cmis:document</cmis:value>
</cmis:propertyId>
</cmis:properties>
</cmisra:object>
</atom:entry>
My url was fine and my document was created. I can update metadata no problems. However i have two entries for this document in Hierarchy table. One entry is ok but for another one parentid is NULL. So when i'm deleting definitly good one is deleted and disapear, but another one with parentid to NULL is always there. I have a lot of ghost datas and my database is growing up.
Sameway if i'm using CMIS Workbench, two entries in hierarchy table.
I also tested with those1 examples.
I made a script that delete ghost and purge database. Do you have any ideas for creating only one document with CMIS call?
My Nuxeo version is 5.8.
Thanks in advance,