[Maypole] Re: Non-insignificant add/update issues

Jesse Sheidlower jester@panix.com
Tue, 2 Mar 2004 23:28:11 -0500


On Mon, Mar 01, 2004 at 12:00:52PM -0500, Jesse Sheidlower wrote:
> On Mon, Mar 01, 2004 at 03:39:04PM +0000, Simon Cozens wrote:
> > Jesse Sheidlower wrote:
> 
> > > I'm also getting weirdness when I try to edit an entry. Simply,
> > > the entry does not update. I've set up untaint_columns and such,
> > > and when I do an update, the "warn "Updating an object ($obj)""
> > > line of do_edit [which should, I expect, ultimately be pulled,
> > > as it's debugging code] 
> [...]
> > > shows that the correct values are being
> > > set for the object. However, the object does not update, and
> > > there are no errors shown.
> > 
> > I've seen this when the untaint columns aren't properly specified,
> > but I'm not sure what to do if they are. Can you check that whatever
> > is specifying the untaint_columns is actually being called?
> 
> I'll have to play around further. It _is_ being called; I know
> because I tried a test where I entered invalid values that
> should have triggered CGI::Untaint errors, and I managed to
> create some kind of endless loop that hung Apache entirely
> and I had to restart it :-/

I have gone back to this, and realized that in fact my untaint_columns
were _not_ properly specified. Indeed, they were not specified at all,
which is an extreme case of improper specification.

I had set them up for one class but not the other.

Everything is working fine now, to my great delight.

Jesse