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:12:00 UTC

[jira] [Resolved] (CMIS-1045) Successful deletion of folder (204 NO CONTENT) returns FailedToDeleteData

     [ https://issues.apache.org/jira/browse/CMIS-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nicolas Raoul resolved CMIS-1045.
---------------------------------
    Resolution: Invalid

> 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):
> {noformat}
> 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
> {noformat}
> 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
> {noformat}
> // check response code
> if (resp.StatusCode == HttpStatusCode.OK || resp.StatusCode == HttpStatusCode.Accepted || resp.StatusCode == HttpStatusCode.NoContent)
> {
>     return new FailedToDeleteData();
> }
> {noformat}
> It should be something like this:
> {{if (resp.StatusCode != HttpStatusCode.NoContent)}}
> ... and the {{throw ConvertToCmisException(resp);}} at the end of the method needs to be modified too.
> 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)