Skip Menu |

This queue is for tickets about the Class-DBI-FromCGI CPAN distribution.

Report information
The Basics
Id: 9172
Status: new
Priority: 0/
Queue: Class-DBI-FromCGI

People
Owner: Nobody in particular
Requestors: kconnor [...] proofpoint.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Date: Tue, 12 Oct 2004 11:06:05 -0700
From: Kevin Connor <kconnor [...] proofpoint.com>
To: Tony Bowden <tony-maypole [...] kasei.com>
Subject: Class::DBI::FromCGI enhancement?
Hi Tony, First, thanks for all the great work on Class::DBI. It's fun to play with. The enhancement I'm interested in FromCGI is that it should handle constraint violations in the same way it handles CGI::Untaint failures. That is, within the run_update/run_create methods, wrap the calls to set/create in evals, catch any exceptions and set _cgi_update_error as validate() does. I'm thinking you probably tried this and ran into some problem. Is that true? Constraints can be multiple column oriented which would make handling those a little harder. add_constraint does take a col name as a parameter. http://rt.cpan.org/NoAuth/Bug.html?id=7930 I think I'll run along and write a CGI::Untaint module for now. I may end up using FormBuilder instead for the javascript checking, so don't only take this up if it interests you. If it does interest you but you have no time maybe I should write a patch. -Kevin