A failed signature on an image style derivative returns a 500 instead of the image
Part of #3596034 (closed).
Problem/Motivation
C2paSignSubscriber::onKernelResponse() logs a failed derivative signature and throws the exception again. The visitor gets a 500, although the unsigned derivative is already on disk. Any c2patool error does this.
Steps to reproduce
- Turn on signing of image derivatives.
- Add a style with Convert to AVIF, on a server whose GD lacks AVIF.
- Request a derivative. c2patool fails with
Box size extends beyond asset boundsand the response is 500.
Proposed resolution
Log the error and serve the unsigned derivative. Signing on upload keeps throwing.
Add a status report warning when derivative signing is on and an image style converts to a format the image toolkit cannot write.
Definition of done
- The derivative is served with 200, unsigned
- The status report names the style and the missing format
- A kernel test covers the failure
AI Compliance
🤖 Generated with the help of an LLM, reviewed and approved by me before posting.
Edited by Giorgio Alfredo Pagano