Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
5.4.5
-
None
-
None
Description
Trying to access a random var/storage/images/... url results in an error 500, but an error 404 is what I would expect instead.
1st step: fix issue https://jira.ez.no/browse/EZP-25991
2nd step: catch the BinaryFileNotFoundException and return a 404.
What I get at the moment is:
[2016-07-20 12:49:59] request.CRITICAL: Uncaught PHP Exception eZ\Publish\Core\IO\Exception\BinaryFileNotFoundException: "Could not find 'BinaryFile' with identifier 'images/users/analysts/oleksiy-danilin/31226481-2-eng-GB/Oleksiy-Danilin_analystpicture3.jpg'" at /srv/www/mysiste/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/IOMetadataHandler/LegacyDFSCluster.php line 232
{"exception":"[object] (eZ\\Publish\\Core\\IO\\Exception\\BinaryFileNotFoundException(code: 404): Could not find 'BinaryFile' with identifier 'images/users/analysts/oleksiy-danilin/31226481-2-eng-GB/Oleksiy-Danilin_analystpicture3.jpg' at /srv/www/www.ovumkc.com/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/IO/IOMetadataHandler/LegacyDFSCluster.php:232)"}[]
Attachments
Issue Links
- is blocked by
-
EZP-25991 Error in BinaryStreamResponse if the file's mtime isn't set
- Open