[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] Make warnings for relative URIs with no base URI config
From: |
Chris Burdess |
Subject: |
Re: [cp-patches] Make warnings for relative URIs with no base URI configurable |
Date: |
Wed, 19 Jan 2005 09:12:47 +0000 |
User-agent: |
Mutt/1.3.28i |
Mark Wielaard wrote:
> > > This patch makes warnings for relative URIs with no base URI
> > > configurable by a boolean system property
> > > 'gnu.xml.aelfred2.XmlParser.uriWarnings'. The default is not to
> > > emit such warnings, in order to correct behaviour in Debian
> > > checkstyle and other applications.
> > >
> > > 2005-01-18 Chris Burdess <address@hidden>
> > >
> > > * gnu/xml/aelfred2/XmlParser.java: Added uriWarnings class
> > > field to configure warnings for relative URIs with no base URI.
>
> It would be nice if the warnings were turned on by default and only
> turned off when done explicitly (the warning could add a hint how to
> turn the warnings off). The idea being that hopefully the code will get
> fixed instead of these warnings being turned off.
>
> Also please look at this patch that does some more validity checking:
> http://lists.gnu.org/archive/html/classpathx-xml/2004-12/msg00027.html
>
> You are trying to catch SecurityExceptions trying to get the system
> properties (which is a good idea if the code can be executed from an
> untrusted context). It seems this is a good place to use a
> GetSystemPropertyAction to access these SystemProperties since we can
> assume this is trusted code.
Please review the following patch which addresses both these issues.
--
Chris Burdess
patch
Description: Text document
pgpaErCilIn92.pgp
Description: PGP signature