On Tue, Jan 23, 2007 at 05:30:18PM +0000, Adrian Cumiskey wrote:
> Hi Andreas,
> 
> I like this idea and suggest adding a new configuration variable called 
> 'strict-config' with a default value of false.  What does everyone else 
> think?

Discovering an error in the configuration file is not immediately
bad.

The severity can only be judged when the error has consequences:
- Not being able to find the font file, resulting in an unusable PDF
file merits an exception.
- Not being able to find a graphic, resulting in it not being included
in the result file, merits a severe error or an exception, depending
on the user's preferences.
- A nonexistent metrics file URL for a font that is not used is not a
problem.
- A nonexistent metrics file URL for a font that is used is currently
well handled with an error message.

Simon

> 
> regards,
> 
> Adrian.
> 
> Andreas L Delmelle wrote:
> >On Jan 23, 2007, at 15:06, Adrian Cumiskey wrote:
> >
> >Hi Adrian,
> >
> >>I am investigating some bugs with bad FOP configurations..
> >>
> >>http://issues.apache.org/bugzilla/show_bug.cgi?id=40120
> >>http://issues.apache.org/bugzilla/show_bug.cgi?id=40288
> >>
> >>In your opinion, on initialization if the FopFactory and FOUserAgent 
> >>discover that they have bad configurations (e.g. malformed (base) 
> >>urls, urls that reference non-existent content), should they :-
> >>
> >>a) Catch exceptions (ConfigurationException) and log SEVERE errors and 
> >>silently continue.
> >
> >I personally prefer this, but would also agree with an intermediate 
> >solution, where the user can flip a switch on the FopFactory or the 
> >FOUserAgent to have them propagate the exception if it occurs... 
> >(analogous to strict or relaxed validation).
> >
> >
> >Just my 2 cents...
> >
> >Cheers,
> >
> >Andreas
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Simon Pepping
home page: http://www.leverkruid.eu

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to