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

REST API: Content Versions request fails when content version has an internal version status

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: High High
    • None
    • 5.3
    • Platform > REST API v2
    • None

    Description

      When a user edits content, a new version with a version status INTERNAL_DRAFT (5) is created. If the REST API is then used to query for the versions of that object, the result is a HTTP 500, "Undefined version status: 5".

      This happens because the Repository loads all versions including internal ones, the controller does not filter the result, and \eZ\Publish\Core\REST\Server\Output\ValueObjectVisitor\VersionInfo reacts to all statuses except DRAFT, PUBLISHED and ARCHIVED with an Exception.

      Attachments

        Activity

          People

            Unassigned Unassigned
            henningp henningp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: