Good evening,

On 22/09/10 at 7:24 AM -0600, Larry Leszczynski <lar...@emailplus.org> wrote:

May be totally related but I have seen those symptoms when the body of a
POST request gets read earlier in the request than usual, and then looks
empty when it is supposed to be read (so the Content-Length is zero
instead of whatever it should be).  In my case I was calling
$c->req->param inside prepare_path, and it seemed like it was sucking in
the whole POST body, leaving it empty for when it needed to be accessed
later.

Thanks for that. I thought this issue seemed familiar. Fingers in too many pies and I just couldn't remember where I had seen it recently. It's an issue with Catalyst::Plugin::Session::State::URI.

I don't have access to the problem machine right now, but I'm sure this will fix it.

@@ -320,7 +320,7 @@
     if ( my $param = $c->_session_plugin_config->{param} )
     {           # use param style rewriting

-        if ( my $sid = $c->request->param($param) ) {
+ if ( my $sid = $c->request->query_parameters->{$param} ) {
             $c->_sessionid_from_uri($sid);
             $c->_tried_loading_session_id(0);
             $c->log->debug(qq/Found sessionid "$sid" in query parameters/)


I think I already submitted a patch for this; yep, r13505.

t0m, any chance of a new release of C::P::Session::State::URI? In the meantime I'll apply the above patch to the new dev's machine.


Charlie

--
   Ꮚ Charlie Garrison ♊ <garri...@zeta.org.au>

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
〠  http://www.ietf.org/rfc/rfc1855.txt

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to