From andrew@scoop.co.nz  Mon Jul  5 14:31:08 2004
Return-Path: <andrew@scoop.co.nz>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BE76E16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Jul 2004 14:31:08 +0000 (GMT)
Received: from a2.scoop.co.nz (aurora.scoop.co.nz [203.96.152.68])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E998643D45
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Jul 2004 14:31:07 +0000 (GMT)
	(envelope-from andrew@scoop.co.nz)
Received: from a2.scoop.co.nz (localhost [127.0.0.1])
	by a2.scoop.co.nz (8.12.11/8.12.11) with ESMTP id i65EV6HG083116
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 6 Jul 2004 02:31:06 +1200 (NZST)
	(envelope-from andrew@a2.scoop.co.nz)
Received: (from root@localhost)
	by a2.scoop.co.nz (8.12.11/8.12.8/Submit) id i65EV6dT083115;
	Tue, 6 Jul 2004 02:31:06 +1200 (NZST)
	(envelope-from andrew)
Message-Id: <200407051431.i65EV6dT083115@a2.scoop.co.nz>
Date: Tue, 6 Jul 2004 02:31:06 +1200 (NZST)
From: Andrew McNaughton <andrew@scoop.co.nz>
Reply-To: Andrew McNaughton <andrew@scoop.co.nz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: p5-Class-DBI version update needed 0.95 -> 0.96
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         68696
>Category:       ports
>Synopsis:       p5-Class-DBI version update needed 0.95 -> 0.96
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    skv
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 05 14:40:24 GMT 2004
>Closed-Date:    Mon Jul 12 13:15:30 GMT 2004
>Last-Modified:  Mon Jul 12 13:15:30 GMT 2004
>Originator:     Andrew McNaughton <andrew@scoop.co.nz>
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
>Environment:
System: FreeBSD a2.scoop.co.nz 4.10-STABLE FreeBSD 4.10-STABLE #0: Fri Jul 2 05:42:59 NZST 2004 andrew@a2.scoop.co.nz:/usr/obj/usr/src/sys/wal-20040406-01 i386


	
>Description:

Some sort of version incompatibility exists between Class::DBI, Class::DBI::FromCGI and CGI::Untaint::url.

When trying to enter form data with a field of type url, CGI::Untaint::url returns an object of type URI::URL.  Somewhere along the chain en-route to the database this needs to be cast as a string.  Updating Class::DBI from version 0.95 (currently in ports) to 0.96 seems to fix the problem just fine.  I haven't dug into the code to locate the relevant change.
  I'm not sure if it's relevant, but I'm using mysql and Class::DBI::mysql  I'm not sure if it's relevant, but I'm using mysql-4.1.2 and Class::DBI::mysql from ports.

Note that CGI::Untaint::url is not yet in ports.  I'll fix that shortly.  It's readily available from CPAN.  I haven't verified this, but i suspect that CGI::Untaint::date might cause similar problems, as it returns an object also.  I'm not sure if it's relevant, but I'm using mysql and Class::DBI::mysql


>How-To-Repeat:

 It's a bit tangled in other code.  If you really want this, contact me and I'll put something together.

>Fix:

change PORTVERSION in /usr/ports/databases/p5-Class-DBI/Makefile from 0.95 to 0.96
make makesum
make deinstall reinstall
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->skv 
Responsible-Changed-By: erwin 
Responsible-Changed-When: Mon Jul 5 14:59:16 GMT 2004 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68696 
State-Changed-From-To: open->closed 
State-Changed-By: skv 
State-Changed-When: Mon Jul 12 13:15:02 GMT 2004 
State-Changed-Why:  
See ports/68291 - committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68696 
>Unformatted:
