X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9649032A295 for ; Thu, 7 Oct 2004 15:51:30 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87915-07 for ; Thu, 7 Oct 2004 14:51:21 +0000 (GMT) Received: from mail.logi-track.com (www.logi-track.com [213.239.193.212]) by svr1.postgresql.org (Postfix) with ESMTP id 2A630329F22 for ; Thu, 7 Oct 2004 15:51:24 +0100 (BST) Received: from kingfisher.intern.logi-track.com (G7ed7.g.pppool.de [80.185.126.215]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logi-track.com (Postfix) with ESMTP id 3E2E130338; Thu, 7 Oct 2004 16:51:27 +0200 (CEST) Received: from kingfisher.intern.logi-track.com (localhost [127.0.0.1]) by kingfisher.intern.logi-track.com (Postfix) with SMTP id 0B541AB903; Thu, 7 Oct 2004 16:51:20 +0200 (CEST) Date: Thu, 7 Oct 2004 16:51:20 +0200 From: Markus Schaber To: PostGreSQL JDBC Subject: Re: Avoiding explicit addDataType calls for PostGIS Message-ID: <20041007165120.0e8d85f9@kingfisher.intern.logi-track.com> In-Reply-To: <41651AFD.5030408@opencloud.com> References: <20041006181653.4fc83924@kingfisher.intern.logi-track.com> <20041007105427.2a559360@kingfisher.intern.logi-track.com> <41651AFD.5030408@opencloud.com> Organization: logi-track ag, =?ISO-8859-15?Q?z=FCrich?= X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-pc-linux-gnu) X-Face: Nx5T&>Nj$VrVPv}sC3IL&)TqHHOKCz/|)R$i"*r@w0{*I6w; UNU_hdl1J4NI_m{IMztq=>cmM}1gCLbAF+9\#CGkG8}Y{x%SuQ>1#t:; Z(|\qdd[i]HStki~#w1$TPF}:0w-7"S\Ev|_a$K wrote: > > Is the opposite problem possible? I think of the driver class loader be > > able to reach the driver extension, but not the user code class loader. >=20 > That seems unlikely; it'd only happen if you had user code that did not= =20 > contain any references to the extension classes. If there are no=20 > references to the extensions, how does the user code use the returned=20 > objects? Reflection, or a common superclass shared by both classloaders,= =20 > seem like the only options. It is also possible that the classes were known at compile time, and are used read-only at run-time. That means that the user does not create instances itsself, but only gets them from the db. But I assume this are academic examples. > It's also debatable whether the driver should even allow user code to=20 > cause loading and instantiation of classes that the user code would not= =20 > otherwise be able to access.. That's a good question. So, from the security point, we should scan the ressources for possible classes (not eliminating collisions), and then filter all classes the user gives by name (via addDataType, URL or whatever) wether they are allowed (they exist in the ressources file). Markus --=20 markus schaber | dipl. informatiker logi-track ag | rennweg 14-16 | ch 8001 z=FCrich phone +41-43-888 62 52 | fax +41-43-888 62 53 mailto:schabios@logi-track.com | www.logi-track.com