Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm seeing image_fetch() call file_transfer() even when there's no file to transfer. When this happens, Drupal eventually tries to serve a 404 page with the image/png content type, and this in turn is causing varnish to put out a 503 error. If file existence is checked first, then you just get a normal 404 as expected.
Comment | File | Size | Author |
---|---|---|---|
#1 | image-1702690-1.patch | 730 bytes | catch |
Comments
Comment #1
catchHere's a patch.
Comment #2
catchThis is arguably a core bug since file_transfer() tries to send the drupal_not_found() too, so I've opened http://drupal.org/node/1702710.
Comment #3
joachim CreditAttribution: joachim commentedCommitted. Thanks!