[Catalyst] New install getting "Wide character in syswrite" error

Charlie Garrison garrison at zeta.org.au
Wed Sep 22 13:53:12 GMT 2010


Good evening,

On 22/09/10 at 7:24 AM -0600, Larry Leszczynski 
<larryl at 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 ♊ <garrison at zeta.org.au>

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



More information about the Catalyst mailing list