[Rt-devel] bug in standalone server image handling
Jesse Vincent
jesse at bestpractical.com
Mon Sep 22 09:45:52 EDT 2008
On Fri 19.Sep'08 at 17:33:36 -0400, Hans Dieter Pearcey wrote:
> share/html/NoAuth/images/autohandler purports to serve images directly, before
> Mason gets a chance to. However, Mason loads (that is, compiles)
> $m->request_comp as soon as the request object is created, so the autohandler
> doesn't actually get a chance to intervene in the case where the image file
> being requested has a Mason syntax error.
The way we've taken to fixing this in newer code is to actually put the
images into an assets or data directory and use a dhandler to serve out
from the /images directory. It doesn't require server changes and feels
more portable. Thoughts?
-j
> The attached patch includes a test and a fix for the standalone server.
> Similar solutions are probably needed for running under mod_perl or fastcgi.
>
> hdp.
> _______________________________________________
> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20080922/bc9e0d04/attachment.pgp
More information about the Rt-devel
mailing list