Details
-
Bug
-
Resolution: Fixed
-
High
-
5.2, 5.3.1
-
None
-
Castor Core S2, Castor Core S3, Castor Core S4
Description
When using DFS cluster, after creating an image content updating it through the API will fail with an exception:
[eZ\Publish\Core\Base\Exceptions\InvalidArgumentValue] Argument '$value->path' is invalid: ''var/ezdemo_site/storage/images/1040-1-eng-GB/image.jpg' is wrong value
Steps to reproduce:
- configure ezpublish with eZDFS cluster
- see https://gist.github.com/joaoinacio/13b80bb10b5905f5e6cf
Other Info:
It seems Image FieldType incorrectly tries to validate the file using file_exists() in checkValueStructure()
https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/Image/Type.php#L109
The same may happen with other Binary Files
https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/FieldType/BinaryBase/Type.php#L101