Details
-
Bug
-
Resolution: Fixed
-
High
-
4.2.0
-
None
Description
In a specific example explained below, when I discard a draft, it has consequence on attribute content of the published version (for which I wanted to edit a new draft)
Steps to reproduce
Hi
Here is a simple scenario one can do on an eZpublish with 2 languages configured at least.
Tests are all done in the admin interface (but could be in ezwebin interface)
0/ I clean the content of directory var/ezwebin_site/storage/original/video to show in the next the problem (you can backup this directory in order to perform the following test)
1/ I create a new class 'newClass' that contains one attribute of datatype ezmedia, named video (for example), translation disabled, windows Media Player as the player (for example), max file size set at 100MB (for example)
2/ I go then in Media library, in Media/Multimedia (for example), in order to create a new object of this new class:
So i create testObject object in english (main language of my eZ), with a video file
3/ I publish this object, everything works, i can see the video stored in var/ezwebin_site/storage/original/video/
4/ I go back on this new object, and edit it in french (so it creates a draft in french), and i do nothing except discard the draft
5/ Here is my big problem... the video stored in the published version of this object has been deleted... I can't see it anymore in var/ezwebin_site/storage/original/video/
If i edit this object in english, i can see a video in ezmedia, but size is 0Mb, i can only see the name and content-type of the file. The file (mpeg for example) as really been deleted...
Thanks for your help !