chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Raoul (JIRA)" <>
Subject [jira] [Created] (CMIS-1045) Successful deletion of folder (204 NO CONTENT) returns FailedToDeleteData
Date Fri, 08 Sep 2017 07:00:18 GMT
Nicolas Raoul created CMIS-1045:

             Summary: Successful deletion of folder (204 NO CONTENT) returns FailedToDeleteData
                 Key: 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

This removes the folder from the repository. This is deletion of the folder only and not any
contained objects.
CMIS Services:
Success Status Codes:
    204 No Content }}

After successfully deleting the folder, Alfresco correctly sends HTTP status 204 NO CONTENT.

Problematic source code:

{{// 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.

This message was sent by Atlassian JIRA

View raw message