Unable to delete cmis:document

cancel
Showing results for 
Search instead for 
Did you mean: 
TLC
Member II

Unable to delete cmis:document

Hello,

I execute a query to get custom documents via OpenCMIS API (Java). In the results I have an old cmis:document that throws an Exception because custom properties are unknown.

I want to delete this document but I have a 404 :  Document not found

Alfresco version 4

Here is my document :

	<atom:entry>
		<atom:author>
			<atom:name/>
		</atom:author>
		<atom:id>http://chemistry.apache.org/aWQtNDE4</atom:id>
		<atom:published>2023-12-04T23:12:01.471+01:00</atom:published>
		<atom:title>Query Result id-418</atom:title>
		<app:edited>2023-12-04T23:12:01.471+01:00</app:edited>
		<atom:updated>2023-12-04T23:12:01.471+01:00</atom:updated>
		<cmisra:object>
			<cmis:properties>
				<cmis:propertyInteger displayName="Content Stream Length" localName="contentStreamLength" propertyDefinitionId="cmis:contentStreamLength" queryName="cmis:contentStreamLength">
					<cmis:value>5606</cmis:value>
				</cmis:propertyInteger>
				<cmis:propertyString displayName="ic:zoneDEchange" localName="zoneDEchange" propertyDefinitionId="ic:zoneDEchange" queryName="ic:zoneDEchange"/>
				<cmis:propertyString displayName="ic:marchandisesLibelle" localName="marchandisesLibelle" propertyDefinitionId="ic:marchandisesLibelle" queryName="ic:marchandisesLibelle"/>
				<cmis:propertyId displayName="Object Type Id" localName="objectTypeId" propertyDefinitionId="cmis:objectTypeId" queryName="cmis:objectTypeId">
					<cmis:value>cmis:document</cmis:value>
				</cmis:propertyId>
				<cmis:propertyString displayName="Version Series Checked Out By" localName="versionSeriesCheckedOutBy" propertyDefinitionId="cmis:versionSeriesCheckedOutBy" queryName="cmis:versionSeriesCheckedOutBy"/>
				<cmis:propertyString displayName="ic:author" localName="author" propertyDefinitionId="ic:author" queryName="ic:author"/>
				<cmis:propertyId displayName="Version series id" localName="versionSeriesId" propertyDefinitionId="cmis:versionSeriesId" queryName="cmis:versionSeriesId">
					<cmis:value>abd4733b-e80c-4566-b649-d06367050696</cmis:value>
				</cmis:propertyId>
				<cmis:propertyString displayName="ic:sousType" localName="sousType" propertyDefinitionId="ic:sousType" queryName="ic:sousType"/>
				<cmis:propertyString displayName="ic:domaine" localName="domaine" propertyDefinitionId="ic:domaine" queryName="ic:domaine"/>
				<cmis:propertyString displayName="Version Label" localName="versionLabel" propertyDefinitionId="cmis:versionLabel" queryName="cmis:versionLabel">
					<cmis:value>1.0</cmis:value>
				</cmis:propertyString>
				<cmis:propertyBoolean displayName="Is Version Series Checked Out" localName="isVersionSeriesCheckedOut" propertyDefinitionId="cmis:isVersionSeriesCheckedOut" queryName="cmis:isVersionSeriesCheckedOut">
					<cmis:value>false</cmis:value>
				</cmis:propertyBoolean>
				<cmis:propertyString displayName="ic:droitAcces" localName="droitAcces" propertyDefinitionId="ic:droitAcces" queryName="ic:droitAcces"/>
				<cmis:propertyString displayName="ic:titre" localName="titre" propertyDefinitionId="ic:titre" queryName="ic:titre"/>
				<cmis:propertyString displayName="ic:typeFichier" localName="typeFichier" propertyDefinitionId="ic:typeFichier" queryName="ic:typeFichier"/>
				<cmis:propertyString displayName="ic:thematique" localName="thematique" propertyDefinitionId="ic:thematique" queryName="ic:thematique"/>
				<cmis:propertyId displayName="Alfresco Node Ref" localName="nodeRef" propertyDefinitionId="alfcmis:nodeRef" queryName="alfcmis:nodeRef">
					<cmis:value>workspace://version2Store/abd4733b-e80c-4566-b649-d06367050696</cmis:value>
				</cmis:propertyId>
				<cmis:propertyBoolean displayName="Is Latest Major Version" localName="isLatestMajorVersion" propertyDefinitionId="cmis:isLatestMajorVersion" queryName="cmis:isLatestMajorVersion">
					<cmis:value>true</cmis:value>
				</cmis:propertyBoolean>
				<cmis:propertyId displayName="Content Stream Id" localName="contentStreamId" propertyDefinitionId="cmis:contentStreamId" queryName="cmis:contentStreamId">
					<cmis:value>store://2021/9/13/14/56/b42fdfc9-5919-4691-a1ba-a87139de82d4.bin</cmis:value>
				</cmis:propertyId>
				<cmis:propertyString displayName="Name" localName="name" propertyDefinitionId="cmis:name" queryName="cmis:name">
					<cmis:value>9a44c08b7986df275f1ef547d288a68ad08542b2</cmis:value>
				</cmis:propertyString>
				<cmis:propertyString displayName="ic:nature" localName="nature" propertyDefinitionId="ic:nature" queryName="ic:nature"/>
				<cmis:propertyId displayName="Secondary Object Type Ids" localName="secondaryObjectTypeIds" propertyDefinitionId="cmis:secondaryObjectTypeIds" queryName="cmis:secondaryObjectTypeIds">
					<cmis:value>P:cm:titled</cmis:value>
					<cmis:value>P:cm:author</cmis:value>
					<cmis:value>P:sys:localized</cmis:value>
					<cmis:value>P:ver2:version</cmis:value>
				</cmis:propertyId>
				<cmis:propertyString displayName="Change token" localName="changeToken" propertyDefinitionId="cmis:changeToken" queryName="cmis:changeToken"/>
				<cmis:propertyString displayName="ic:statusMarche" localName="statusMarche" propertyDefinitionId="ic:statusMarche" queryName="ic:statusMarche"/>
				<cmis:propertyString displayName="Checkin Comment" localName="checkinComment" propertyDefinitionId="cmis:checkinComment" queryName="cmis:checkinComment"/>
				<cmis:propertyString displayName="ic:commentaires" localName="commentaires" propertyDefinitionId="ic:commentaires" queryName="ic:commentaires"/>
				<cmis:propertyBoolean displayName="Is Major Version" localName="isMajorVersion" propertyDefinitionId="cmis:isMajorVersion" queryName="cmis:isMajorVersion">
					<cmis:value>true</cmis:value>
				</cmis:propertyBoolean>
				<cmis:propertyId displayName="Base Type Id" localName="baseTypeId" propertyDefinitionId="cmis:baseTypeId" queryName="cmis:baseTypeId">
					<cmis:value>cmis:document</cmis:value>
				</cmis:propertyId>
				<cmis:propertyString displayName="Content Stream Filename" localName="contentStreamFileName" propertyDefinitionId="cmis:contentStreamFileName" queryName="cmis:contentStreamFileName">
					<cmis:value>9a44c08b7986df275f1ef547d288a68ad08542b2</cmis:value>
				</cmis:propertyString>
				<cmis:propertyDateTime displayName="Last Modified Date" localName="lastModificationDate" propertyDefinitionId="cmis:lastModificationDate" queryName="cmis:lastModificationDate">
					<cmis:value>2021-09-13T14:56:34.488+02:00</cmis:value>
				</cmis:propertyDateTime>
				<cmis:propertyId displayName="Version Series Checked Out Id" localName="versionSeriesCheckedOutId" propertyDefinitionId="cmis:versionSeriesCheckedOutId" queryName="cmis:versionSeriesCheckedOutId"/>
				<cmis:propertyBoolean displayName="Is private working copy" localName="isPrivateWorkingCopy" propertyDefinitionId="cmis:isPrivateWorkingCopy" queryName="cmis:isPrivateWorkingCopy">
					<cmis:value>false</cmis:value>
				</cmis:propertyBoolean>
				<cmis:propertyBoolean displayName="ic:eligibiliteRappelValidation" localName="eligibiliteRappelValidation" propertyDefinitionId="ic:eligibiliteRappelValidation" queryName="ic:eligibiliteRappelValidation"/>
				<cmis:propertyString displayName="ic:codesh" localName="codesh" propertyDefinitionId="ic:codesh" queryName="ic:codesh"/>
				<cmis:propertyString displayName="ic:pointInformation" localName="pointInformation" propertyDefinitionId="ic:pointInformation" queryName="ic:pointInformation"/>
				<cmis:propertyString displayName="ic:typeProcedure" localName="typeProcedure" propertyDefinitionId="ic:typeProcedure" queryName="ic:typeProcedure"/>
				<cmis:propertyString displayName="ic:statut" localName="statut" propertyDefinitionId="ic:statut" queryName="ic:statut"/>
				<cmis:propertyBoolean displayName="Is Latest Version" localName="isLatestVersion" propertyDefinitionId="cmis:isLatestVersion" queryName="cmis:isLatestVersion">
					<cmis:value>true</cmis:value>
				</cmis:propertyBoolean>
				<cmis:propertyInteger displayName="ic:nbReference" localName="nbReference" propertyDefinitionId="ic:nbReference" queryName="ic:nbReference"/>
				<cmis:propertyString displayName="Last Modified By" localName="lastModifiedBy" propertyDefinitionId="cmis:lastModifiedBy" queryName="cmis:lastModifiedBy">
					<cmis:value>alfresco</cmis:value>
				</cmis:propertyString>
				<cmis:propertyString displayName="ic:titreNormalise" localName="titreNormalise" propertyDefinitionId="ic:titreNormalise" queryName="ic:titreNormalise"/>
				<cmis:propertyDateTime displayName="ic:finDateValidite" localName="finDateValidite" propertyDefinitionId="ic:finDateValidite" queryName="ic:finDateValidite"/>
				<cmis:propertyString displayName="Created by" localName="createdBy" propertyDefinitionId="cmis:createdBy" queryName="cmis:createdBy">
					<cmis:value>alfresco</cmis:value>
				</cmis:propertyString>
				<cmis:propertyBoolean displayName="ic:redirectionCertificat" localName="redirectionCertificat" propertyDefinitionId="ic:redirectionCertificat" queryName="ic:redirectionCertificat"/>
				<cmis:propertyDateTime displayName="ic:dateSuspension" localName="dateSuspension" propertyDefinitionId="ic:dateSuspension" queryName="ic:dateSuspension"/>
				<cmis:propertyString displayName="ic:lienDocument" localName="lienDocument" propertyDefinitionId="ic:lienDocument" queryName="ic:lienDocument"/>
				<cmis:propertyString displayName="Content Stream MIME Type" localName="contentStreamMimeType" propertyDefinitionId="cmis:contentStreamMimeType" queryName="cmis:contentStreamMimeType">
					<cmis:value>application/vnd.ms-excel</cmis:value>
				</cmis:propertyString>
				<cmis:propertyDateTime displayName="Creation Date" localName="creationDate" propertyDefinitionId="cmis:creationDate" queryName="cmis:creationDate">
					<cmis:value>2021-09-13T14:56:34.488+02:00</cmis:value>
				</cmis:propertyDateTime>
				<cmis:propertyString displayName="ic:structureDeposante" localName="structureDeposante" propertyDefinitionId="ic:structureDeposante" queryName="ic:structureDeposante"/>
				<cmis:propertyString displayName="ic:structureValidation" localName="structureValidation" propertyDefinitionId="ic:structureValidation" queryName="ic:structureValidation"/>
				<cmis:propertyDateTime displayName="ic:debutDateValidite" localName="debutDateValidite" propertyDefinitionId="ic:debutDateValidite" queryName="ic:debutDateValidite"/>
				<cmis:propertyString displayName="ic:diffusion" localName="diffusion" propertyDefinitionId="ic:diffusion" queryName="ic:diffusion"/>
				<cmis:propertyString displayName="ic:associations" localName="associations" propertyDefinitionId="ic:associations" queryName="ic:associations"/>
				<cmis:propertyDateTime displayName="ic:dateReactivation" localName="dateReactivation" propertyDefinitionId="ic:dateReactivation" queryName="ic:dateReactivation"/>
				<cmis:propertyId displayName="Object Id" localName="objectId" propertyDefinitionId="cmis:objectId" queryName="cmis:objectId">
					<cmis:value>abd4733b-e80c-4566-b649-d06367050696;1.0</cmis:value>
				</cmis:propertyId>
				<cmis:propertyBoolean displayName="Is Immutable" localName="isImmutable" propertyDefinitionId="cmis:isImmutable" queryName="cmis:isImmutable">
					<cmis:value>false</cmis:value>
				</cmis:propertyBoolean>
				<cmis:propertyString displayName="ic:zoneDEchangeLibelle" localName="zoneDEchangeLibelle" propertyDefinitionId="ic:zoneDEchangeLibelle" queryName="ic:zoneDEchangeLibelle"/>
				<cmis:propertyString displayName="ic:marchandises" localName="marchandises" propertyDefinitionId="ic:marchandises" queryName="ic:marchandises"/>
				<cmis:propertyString displayName="Description" localName="description" propertyDefinitionId="cmis:description" queryName="cmis:description"/>
				<cmis:propertyBoolean displayName="ic:validation" localName="validation" propertyDefinitionId="ic:validation" queryName="ic:validation"/>
			</cmis:properties>
			<cmis:allowableActions>
				<cmis:canDeleteObject>true</cmis:canDeleteObject>
				<cmis:canUpdateProperties>true</cmis:canUpdateProperties>
				<cmis:canGetProperties>true</cmis:canGetProperties>
				<cmis:canGetObjectRelationships>true</cmis:canGetObjectRelationships>
				<cmis:canMoveObject>true</cmis:canMoveObject>
				<cmis:canDeleteContentStream>true</cmis:canDeleteContentStream>
				<cmis:canCheckOut>true</cmis:canCheckOut>
				<cmis:canSetContentStream>true</cmis:canSetContentStream>
				<cmis:canGetAllVersions>true</cmis:canGetAllVersions>
				<cmis:canAddObjectToFolder>true</cmis:canAddObjectToFolder>
				<cmis:canRemoveObjectFromFolder>true</cmis:canRemoveObjectFromFolder>
				<cmis:canGetContentStream>true</cmis:canGetContentStream>
				<cmis:canGetAppliedPolicies>true</cmis:canGetAppliedPolicies>
				<cmis:canCreateRelationship>true</cmis:canCreateRelationship>
				<cmis:canGetRenditions>true</cmis:canGetRenditions>
				<cmis:canGetACL>true</cmis:canGetACL>
				<cmis:canApplyACL>true</cmis:canApplyACL>
			</cmis:allowableActions>
		</cmisra:object>
	</atom:entry>

Any help would be appreciated.

Thanks in advance. 

Thomas