Redirect sending http-status code 200 instead of 302

Hi,

Versions:

RT 3.8.2, RTIR 2.4.1, Apache 2.2.9, mod-perl2 2.0.4, Mason 1.39

Symptoms:

Urls like …/rt/Ticket/Display.html?Action=Take&id=16522 execute the
Take, but don’t show the Ticket.

Debugging:

The problem seems to be that RT redirects to itself to show the ticket
with an URL that is safe for a reload. Display.html is calling
RT::Interface::Web::Redirect, which is calling Mason’s
(Mason/CGIHandler.pm) redirect(), which is calling header_out,
which …

But still, the access-log and the packet trace shows the correct
Location: header and HTTP status code 200 instead of the required 302.

This all looks pretty much like
http://www.masonhq.com/?ApacheModPerl2Redirect but all that refers to
older versions of the components.

Any clues?

Would upgrading to 3.8.4 help?

(Can I even do that with the installed RTIR?)

Thanks.

/ol
-=- Otmar Lendl – ol@bofh.priv.at – http://lendl.priv.at/ -=-

Hello Otmar,

This issue has been fixed in RT 3.8.3.On Fri, Sep 4, 2009 at 7:07 PM, Otmar Lendlol@bofh.priv.at wrote:

Hi,

Versions:

RT 3.8.2, RTIR 2.4.1, Apache 2.2.9, mod-perl2 2.0.4, Mason 1.39

Symptoms:

Urls like …/rt/Ticket/Display.html?Action=Take&id=16522 execute the
Take, but don’t show the Ticket.

Debugging:

The problem seems to be that RT redirects to itself to show the ticket
with an URL that is safe for a reload. Display.html is calling
RT::Interface::Web::Redirect, which is calling Mason’s
(Mason/CGIHandler.pm) redirect(), which is calling header_out,
which …

But still, the access-log and the packet trace shows the correct
Location: header and HTTP status code 200 instead of the required 302.

This all looks pretty much like
Mason+Poet: Home but all that refers to
older versions of the components.

Any clues?

Would upgrading to 3.8.4 help?

(Can I even do that with the installed RTIR?)

Thanks.

/ol

-=- Otmar Lendl – ol@bofh.priv.at – http://lendl.priv.at/ -=-


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Best regards, Ruslan.