pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabios@logi-track.com>
To: PostGreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: Avoiding explicit addDataType calls for PostGIS
Date: Thu, 7 Oct 2004 16:51:20 +0200
Message-ID: <20041007165120.0e8d85f9@kingfisher.intern.logi-track.com> (raw)
In-Reply-To: <41651AFD.5030408@opencloud.com>
References: <20041006181653.4fc83924@kingfisher.intern.logi-track.com>
	<Pine.BSO.4.56.0410061127450.5501@leary.csoft.net>
	<20041007105427.2a559360@kingfisher.intern.logi-track.com>
	<41651AFD.5030408@opencloud.com>

[Sorry for the duplicate message, Oliver, my fist mail was
unintentionally sent privately to you]

Hi, Oliver,

On Thu, 07 Oct 2004 23:31:25 +1300
Oliver Jowett <oliver@opencloud.com> 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.
> 
> That seems unlikely; it'd only happen if you had user code that did not 
> contain any references to the extension classes. If there are no 
> references to the extensions, how does the user code use the returned 
> objects? Reflection, or a common superclass shared by both classloaders, 
> 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 
> cause loading and instantiation of classes that the user code would not 
> 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

-- 
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios@logi-track.com | www.logi-track.com



view thread (21+ messages)  latest in thread

Message-ID: <20041007165120.0e8d85f9@kingfisher.intern.logi-track.com>
Permalink:  ../20041007165120.0e8d85f9@kingfisher.intern.logi-track.com/
Also on:    postgresql.org/message-id/20041007165120.0e8d85f9@kingfisher.intern.logi-track.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: schabios@logi-track.com
  Subject: Re: Avoiding explicit addDataType calls for PostGIS
  In-Reply-To: <20041007165120.0e8d85f9@kingfisher.intern.logi-track.com>
  References: <20041006181653.4fc83924@kingfisher.intern.logi-track.com> <Pine.BSO.4.56.0410061127450.5501@leary.csoft.net> <20041007105427.2a559360@kingfisher.intern.logi-track.com> <41651AFD.5030408@opencloud.com> <20041007165120.0e8d85f9@kingfisher.intern.logi-track.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox