Strange NoAuth image problems!

Hello!

RT 3.8.4
Apache 2.2
modperl 2.0.4

I realized that the images which are under /NoAuth/images were broken.
When I tried the Image-Url directly I got:

Can’t locate object method “SendStaticFile” via package
"RT::Interface::Web" at /opt/rt3/share/html/NoAuth/images/autohandler
line 6.

Than I added “Alias /NoAuth/images/ /opt/rt3/share/html/NoAuth/images”
(from: http://wiki.bestpractical.com/view/ApacheConfig) which gave
me an RT Error Page for the image link.

Than I found the posting “
Custom logo broken. Does share/html/NoAuth/images/autohandler do the
right thing?”

And indeed after change the order of two “locations” and remove the
alias. It seems now to work.

Is this the right way?

regards

sven

Here my apache config:

ServerName xxx
DocumentRoot /opt/rt3/share/html
#Alias /NoAuth/images/ /opt/rt3/share/html/NoAuth/images

AddDefaultCharset UTF-8

PerlModule Apache::DBI
PerlModule Apache2::RequestRec
PerlRequire "/opt/rt3/bin/webmux.pl"

<Location />
    SetHandler perl-script
    PerlResponseHandler RT::Mason

    ... auth stuff ...

</Location>

<Location /NoAuth/images>
    SetHandler default
</Location>

Hello!

RT 3.8.4
Apache 2.2
modperl 2.0.4

(testing using 3.8.4, apache 2.2.11, mod_perl 2.0.3 and the config
specified in README)

I realized that the images which are under /NoAuth/images were broken.
When I tried the Image-Url directly I got:

Can’t locate object method “SendStaticFile” via package
"RT::Interface::Web" at /opt/rt3/share/html/NoAuth/images/autohandler
line 6.

There was a change made to this code between 3.8.2 and 3.8.3
Make sure you don’t have local customizations to RT::Interface::Web or
the autohandlers.

Than I added “Alias /NoAuth/images/ /opt/rt3/share/html/NoAuth/images”
(from: http://wiki.bestpractical.com/view/ApacheConfig) which gave
me an RT Error Page for the image link.

Than I found the posting “
Custom logo broken. Does share/html/NoAuth/images/autohandler do the
right thing?”

And indeed after change the order of two “locations” and remove the
alias. It seems now to work.

For mod_perl I use the config specified in the README

The Alias you mention above is generally only mentioned for fast_cgi
installations. Both the SetHandler default and Alias lines try to
block Mason from interpreting images as mason files, without knowing
what error you triggered it is hard to say what caused your error.

-kevin

Hi!

Can’t locate object method “SendStaticFile” via package
"RT::Interface::Web" at /opt/rt3/share/html/NoAuth/images/autohandler
line 6.

There was a change made to this code between 3.8.2 and 3.8.3
Make sure you don’t have local customizations to RT::Interface::Web or
the autohandlers.

yes indeed we customized! In “local/lib/RT/Interface/Web.pm” we
modified "WebCanonicalizeInfo"
btw. is there an other way to have a customized version of this
function?

The Alias you mention above is generally only mentioned for fast_cgi
installations. Both the SetHandler default and Alias lines try to
block Mason from interpreting images as mason files, without knowing
what error you triggered it is hard to say what caused your error.

It looks like the order of the locations is meaningful. Most people
wouldn’t notice that there images are delivered through mason,
because of their autohandler.

But now I know that our setup is correct, and I found an extra error
in our installation.

Thank you very much for your help!

best regards!

Sven Sternberger
DESY

Hi!

Can’t locate object method “SendStaticFile” via package
"RT::Interface::Web" at /opt/rt3/share/html/NoAuth/images/autohandler
line 6.

There was a change made to this code between 3.8.2 and 3.8.3
Make sure you don’t have local customizations to RT::Interface::Web or
the autohandlers.

yes indeed we customized! In “local/lib/RT/Interface/Web.pm” we
modified "WebCanonicalizeInfo"
btw. is there an other way to have a customized version of this
function?

You probably want local/lib/RT/Interface/Web_Local.pm
and to only have the one function that you modify in that file.

The Alias you mention above is generally only mentioned for fast_cgi
installations. Both the SetHandler default and Alias lines try to
block Mason from interpreting images as mason files, without knowing
what error you triggered it is hard to say what caused your error.

It looks like the order of the locations is meaningful. Most people
wouldn’t notice that there images are delivered through mason,
because of their autohandler.

Interesting, I couldn’t make the Location order fail, but it may just
have been my test case. If you have an image + config that blows up,
feel free to send something to rt-bugs and we can get the ordering in
README flipped.

-kevin