Infinite loop when local source file missing

Created on 27 March 2020, about 5 years ago
Updated 4 April 2025, 21 days ago

We discovered an issue when using remote files and the imagemagick module -- in some rare cases, the remote file fails to download, causing the ImagemagickIdentify->build method to get stuck in an infinite loop (when $sourceLocalPath is an empty string).

πŸ› Bug report
Status

Needs review

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States devoidfury

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

  • πŸ‡ΈπŸ‡°Slovakia kaszarobert

    We experienced this when using image mimetype, width, height in og:image metatags. This loop really made a load on the server, and we had to stop the php processes manually, so I think this fix is really mandatory in production. After applying the patch, it fixed these timeouts.

Production build 0.71.5 2024