Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-27123

eZ\Publish\Core\FieldType\Image\IO\Legacy loadBinaryFileByUri does not load draft images

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • Customer request
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            matthewreed matthewreed
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: