convert process hangs forever if the source file does not exist

Created on 9 January 2015, over 10 years ago
Updated 20 January 2025, 5 months ago

Problem

_imagemagick_convert() calls drupal_realpath() on the passed-in $source and $destination.

drupal_realpath() can return FALSE in some conditions, however, and this condition is never checked. One such condition is if the source file is not present which can sometimes happen in dev-stage-prod scenarios. If this happens _imagemagick_convert() proceeds to call the convert binary which simply hangs forever causing the site, as well, to hang forever.

Proposed resolution

Early return if drupal_realpath() returns FALSE.

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇩🇪Germany tstoeckler Essen, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024