Sorry. Hit reply not reply all. Reposting to mailing list so if someone else gets burned they can see what the problem was.
Alfie On Sun, May 02, 2010 at 11:45:29PM -0500, Dave Rolsky wrote: > >I've managed to narrow it down to the attributes being arrayrefs. If I > >change the leftnav_selected attribute value to be a comma-seperated > >string and perform a split in my display_navigation module, I can't > >fault it. In other words, it will *always* work. > > > >When I dump $m->request_comp()->attributes() I do see leftnav_selected > >as a key, but its value is an empty arrayref! > > Are you _modifying_ the attribute value in your code? The array > reference is only created once, so if you change it, you're changing > it for all future accesses as well. I didn't realise that attributes were in effect inside a %once block. To add to my confusion, since Apache was forked 5 times and each request was being bounced to the different processes, it made the problem even more random! I'm now taking a copy of the arrayref and it's all good. Thanks Dave. Alfie ------------------------------------------------------------------------------ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users