Details
-
Bug
-
Resolution: Fixed
-
High
-
5.0, 5.1, 5.2, 5.3-dev
-
None
Description
The current Legacy Content Handler & API will pass through any value that is known to the storage engine [eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php](https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/Persistence/Legacy/Content/Mapper.php#L310-310).
The SPI knows about the legacy version statuses [eZ/Publish/SPI/Persistence/Content/VersionInfo.php](https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/SPI/Persistence/Content/VersionInfo.php#L23-30), while the API only knows about three statuses [eZ/Publish/API/Repository/Values/Content/VersionInfo.php](https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/API/Repository/Values/Content/VersionInfo.php#L30-32).
A mapping must be added so that API value objects only contain API versions, and not SPI ones.
The list of versions in the SPI also doesn't have to match what was done in legacy (it currently seems to), but should match the repository business requirements.
Attachments
Issue Links
- is blocked by
-
EZP-22322 REST API: Content Versions request fails when content version has an internal version status
- Closed