You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Nicolas Raoul (JIRA)" <ji...@apache.org> on 2017/09/08 07:00:18 UTC
[jira] [Created] (CMIS-1045) Successful deletion of folder (204 NO
CONTENT) returns FailedToDeleteData
Nicolas Raoul created CMIS-1045:
-----------------------------------
Summary: Successful deletion of folder (204 NO CONTENT) returns FailedToDeleteData
Key: CMIS-1045
URL: https://issues.apache.org/jira/browse/CMIS-1045
Project: Chemistry
Issue Type: Bug
Components: dotcmis
Affects Versions: DotCMIS 0.7
Environment: Alfresco 5.2.0
Reporter: Nicolas Raoul
The CMIS 1.1 specification (chapter 3.11.4.3):
{{3.11.4.3 HTTP DELETE
This removes the folder from the repository. This is deletion of the folder only and not any contained objects.
CMIS Services:
deleteObject
Success Status Codes:
204 No Content }}
After successfully deleting the folder, Alfresco correctly sends HTTP status 204 NO CONTENT.
Problematic source code: https://github.com/apache/chemistry-dotcmis/blob/trunk/DotCMIS/binding/atompub/atompub.cs#L2053
{{// check response code
if (resp.StatusCode == HttpStatusCode.OK || resp.StatusCode == HttpStatusCode.Accepted || resp.StatusCode == HttpStatusCode.NoContent)
{
return new FailedToDeleteData();
}}}
It should be something like this:
{{if (resp.StatusCode != HttpStatusCode.NoContent)}}
I have only observed this for folders, I have not checked all but other entities seems to have been written correctly.
Cheers!
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)