Details
-
Type:
Bug
-
Status: Closed
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: 5.2, 5.3.1
-
Fix Version/s: Customer request, 5.2 Maintenance, 5.3.3, 5.4.0-beta1
-
Component/s: Platform > Repository & Services (Public API impl)
-
Labels:None
-
Sprint: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