Details
-
Bug
-
Resolution: Fixed
-
High
-
5.4.10
-
None
-
None
Description
loadBinaryFileByUri method makes use of eZ\Publish\Core\IO\TolerantIOService to load images. If a published image is not found such method catches exception to search and load draft image, as is stated in the following comment:
"InvalidArgumentException means that the prefix didn't match, NotFound can pass through".
Unfortunately TolerantIOService' loadBinaryFileByUri method catgches itself InvalidArgumentException in order to log missing file and return a new MissingBinaryFile instance, so an image stored in draft folder, that is "images-versioned" one, won't ever be loaded.