M-Yankov/Sitefinity.LibraryItemsDownloader

It should work when the image content is missing

Closed this issue · 4 comments

In some cases the actual image content could be missing (404 not found). The Image meta data is stored in database, but the actual content could be configured to use different storage provider. Need to check the following cases:

  • When the images are stored in Azure (Delete the image from Azure storage explorer)
  • When the images are stored in File system, but the image content is not there
  • When moving an image (video document ) to a library with different provider

When an image is missing or it's broken

  • Chrome:
    brokenimage

  • Firefox:
    screenshot-2018-2-25 library images

  • Internet Explorer & Edge
    iebroken image

Steps to produce the bug (Images):

  • Create a library with File System storage provider
  • Upload an image
  • Go to ~\App_Data\Storage\FileSystem find the uploaded item and delete it
  • Go to the new library, select the image and click More actions, Download selected images
  • An exception is thrown

Same for (Videos and documents)

After the fix expected to return empty Zip archive if ALL images are missing.

Not tested with Azure storage provider, but I assume it would be the same