[Catalyst] $row->copy causing exit from controller(!)

Paul Makepeace paulm at paulm.com
Thu May 1 15:47:26 BST 2008


On Thu, May 1, 2008 at 1:25 PM, Jonathan Rockway <jon at jrock.us> wrote:
> * On Thu, May 01 2008, Paul Makepeace wrote:
>  > I'm seeing something exceedingly odd: copying data causing a premature
>  > return from the controller, like a detach(),
>  >
>  >         foreach my $table (@chart_related_tables) {
>  >           my $rs = $ds->resultset($table);
>  >           warn "copying $table for ", $new_chart->uid;
>  >           for my $row ($rs->search({web_chart_spec_uid => $chart->uid})) {
>  >             warn "..row ", $row->web_chart_spec_uid, $row;
>  >             $row->copy({web_chart_spec_uid => $new_chart->uid});  # XXX
>  >           }
>  >           #$_->copy({web_chart_spec_uid => $new_chart->uid})
>  >               #for $rs->search({web_chart_spec_uid => $chart->uid});
>  >           die "cloned", $new_chart->uid;
>  >         }
>  >
>
>  Is copy throwing an exception?  Are you using an old version of
>  stacktrace?

There's no exception. Imagine a "return;" and that's what is happening AFAICT.

How does one use perl -d in the context of a FastCGI instance? Any
other debugging tips?

P

>
>  If yes and yes: upgrade StackTrace (it eats exceptions)
>  If no and no: something is horribly wrong (perl -d may help)
>  If yes and no: see above.
>
>  I have a feeling it's the first one.  Another possibility is that "copy"
>  is last-ing out of itself.
>
>  Regards,
>  Jonathan Rockway
>
>  --
>  print just => another => perl => hacker => if $,=$"
>
>  _______________________________________________
>  List: Catalyst at 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/
>



More information about the Catalyst mailing list