Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25978

REST API issues a 404 when deleting the Content item with only a draft

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 1.3.1, 1.4.0-rc1
    • Platform > REST API v2
    • 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

        Activity

          People

            Unassigned Unassigned
            damien.pobel-obsolete@ez.no Damien Pobel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: