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

Discarding a draft when there is no published version raises a response error

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: High High
    • QA tracked issues
    • 1.4.0-rc1
    • Operating System: Debian 8
      PHP Version: 5.6.14-0+deb8u1
      Database and version: Mysql 5.5.46-0+deb8u1
      Browser (and version): Firefox 47
      Env: Prod

    Description

      Steps to reproduce
      • Access your admin interface as admin
      • Create one draft of a folder and then exit (create a folder, click "Save" button and then exit without publishing the folder)
      • Go to "My Drafts" and edit the draft again
        (Open your dev tools)
      • Click on "Discard changes"

      Here we have a "409 conflict" and the response:

      <?xml version="1.0" encoding="UTF-8"?>
      <ErrorMessage media-type="application/vnd.ez.api.ErrorMessage+xml"><errorCode>409</errorCode><errorMessage
      >Conflict</errorMessage><errorDescription>Argument '$versionInfo' has a bad state: Version is the last
       version of the Content and can not be removed</errorDescription></ErrorMessage>
      

      If we do the same steps, but with a previous published version, then the error do not happen.

      Attachments

        Activity

          People

            Unassigned Unassigned
            paulo.nunes-obsolete@ez.no Paulo Nunes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: