geobtaa / geoblacklight_admin

MIT License
4 stars 2 forks source link

Thumbnail Harvests - Can 500 the app when derivative called isn't available yet #55

Closed ewlarson closed 1 month ago

ewlarson commented 1 month ago

Need to guard against (nil) calling for a Kithe derivative image before it's available:

<%= image_tag(@document&.thumbnail&.file_url(:thumb_mini_2X), class: "thumbnail") %>

Will 500

500 Internal Server Error
If you are the administrator of this website, then please read this web application's log file and/or the web server's log file to find out what went wrong.

Because

Nil location provided. Can't build URI.