After spending the past two hours looking through code etc, I finally 
discovered this was a bug of my own making. Basically, I've written a custom 
little FormBuilder controller module that loads .pm files with formbuilder 
specs. As part of that, it specified that it wanted { params => $c->req }, 
which wouldn't normally be a problem except that then in the base class, I do 
a Hash::Merge with some other values that I want. This by default does a 
Clone on the hashes, hence cloning $c->req. This meant that $c->req->{_body} 
was read in the cloned version when ->param was called, but it was then 
called again in the non-cloned version which caused it to want to read the 
data again. Pfew!

Mark

On Friday 18 May 2007 10:24 pm, Andy Grundman wrote:
> One more thing, can you set the environment variable
> CATALYST_HTTP_DEBUG=1 and then run through your bad POST?  This
> should give some helpful info.
>
> _______________________________________________
> List: [email protected]
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to