[GeoNetwork-users] Caching DTD's

Hello,

I'm trying to import an XML file in GeoNetwork. After clicking "Insert", I
get the error :
IOException : Server returned HTTP response code: 503 for URL:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd

I read on
http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic
http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic that
a 503 is a typical error W3C would send when somebody requested too much of
the same DTD. Caching would be the solution.

I tried to go through a proxy using the proxy configuration in GeoNetwork
Administration > System configuration, but it looks like GeoNetwork doesn't
use the proxy for such a request.

How can I tell GeoNetwork to cache this type of files ? Or is it something
that should be done in Tomcat ?

Alain

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Caching-DTD-s-tp5427907p5427907.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Alain,

This actually looks like you might be trying to import an HTML file rather than an XML file (hence the external reference to xhtml DTD which GeoNetwork is trying to import)?

However on the broader question of how GeoNetwork interacts with externally referenced XML entities (eg. schemas in schemaLocation hints), I've been working on adding oasis catalog support (allows redirection of schema hints and dtds for example) with caching to avoid excess internet traffic and using the GeoNetwork configured proxy and any proxy authentication when getting the external entities. I'll put this in a proposal for the trunk soon (I hope).

Cheers,
Simon
________________________________________
From: acangi [aca@anonymised.com]
Sent: Monday, 16 August 2010 11:50 PM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] Caching DTD's

Hello,

I'm trying to import an XML file in GeoNetwork. After clicking "Insert", I
get the error :
IOException : Server returned HTTP response code: 503 for URL:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd

I read on

W3C's Excessive DTD Traffic | 2008 | Blog | W3C that
a 503 is a typical error W3C would send when somebody requested too much of
the same DTD. Caching would be the solution.

I tried to go through a proxy using the proxy configuration in GeoNetwork
Administration > System configuration, but it looks like GeoNetwork doesn't
use the proxy for such a request.

How can I tell GeoNetwork to cache this type of files ? Or is it something
that should be done in Tomcat ?

Alain

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Caching-DTD-s-tp5427907p5427907.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi Simon,

Thanks for your help. Indeed I was trying to import the trac HTML page that contained the XML code of a set of metadata...

So I didn't really run into the problem, but I think caching of externally referenced XML entities is a better practice, thanks for your work.

Alain

------------------------------------------------
Alain Camus
Equipe Web - Service CTI
Institut Géographique National
Abbaye de la Cambre, 13
1000 Bruxelles
Tél : +32 2 62 98 248 4
www.ign.be
------------------------------------------------

----- Mail original -----
De: "Simon Pigot" <Simon.Pigot@anonymised.com>
À: aca@anonymised.com, geonetwork-users@lists.sourceforge.net
Envoyé: Mardi 17 Août 2010 14:29:21
Objet: RE: [GeoNetwork-users] Caching DTD's

Hi Alain,

This actually looks like you might be trying to import an HTML file rather than an XML file (hence the external reference to xhtml DTD which GeoNetwork is trying to import)?

However on the broader question of how GeoNetwork interacts with externally referenced XML entities (eg. schemas in schemaLocation hints), I've been working on adding oasis catalog support (allows redirection of schema hints and dtds for example) with caching to avoid excess internet traffic and using the GeoNetwork configured proxy and any proxy authentication when getting the external entities. I'll put this in a proposal for the trunk soon (I hope).

Cheers,
Simon