Details
-
Bug
-
Resolution: Obsolete
-
Medium
-
None
-
1.3.1, 1.4.0-rc1
-
None
Description
When deleting a Content item which has only a draft version, the REST API issues a 404 response with the following content:
curl 'http://ez.loc/api/ezp/v2/content/objects/215' -X DELETE -H 'X-CSRF-Token: lIIM1-X5JB1FOYQYXHIsk4Qh6tDbeakVO4oPpeJiUjc' -H 'Cookie: privacyCookieAccepted=1; eZSESSID98defd6ee70dfb1dea416cecdf391f58=6k8d9gsvoscdamqrfkoff5ch80' <?xml version="1.0" encoding="UTF-8"?> <ErrorMessage media-type="application/vnd.ez.api.ErrorMessage+xml"> <errorCode>404</errorCode> <errorMessage>Not Found</errorMessage> <errorDescription>Could not find 'Content' with identifier '215'</errorDescription> </ErrorMessage>
but the Content item is correctly removed.
Attachments
Issue Links
- discovered while testing
-
EZP-25148 Stale draft after canceling a content creation
- Closed