[GeoNetwork-users] Why does Geonework 10.2 try to read Schema.xsds from the Internet?

Hi!

Our Geonetwork-Server cannot connect to the Internet due to security
restrictions.
This was no issue for quite a time.
But out of the blue the Validation of the metadata did not work anymore.
The only explanation i could find was that the validation-process could not
execute the following http-call

Message in Log:
Request on http://schemas.opengis.net/iso/19139/20060504/gmd/gmd.xsd failed

An exact copy of gmd.xsd resides in the schemas folder of the
geonetwork-installation. So there should not be any neet do make the
http-request.

So my question is.
What triggered geonetwork to look for gmd.xsd in the web?

Thanks
Andy

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Why-does-Geonework-10-2-try-to-read-Schema-xsds-from-the-Internet-tp5148149.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Andy,

You need to add that url to the oasis catalog in order to map it to the local file location of gmd.xsd. You have to do this because schemas.opengis.net/19139/20060504/... is not one of the maps already provided (we provide maps for www.isotc211.org/2005 etc).

This is probably happening because you're using records that are including that url as part of their schemaLocation hint. See web/geonetwork/WEB-INF/data/config/schema_plugins/iso19139/oasis-catalog.xml (each schema plugin has its own oasis-catalog.xml file). Note this path may be different if you have your GEONETWORK_DATA_DIR env variable set to something.

Cheers,
Simon
________________________________________
From: sulu [andreas.siegel@anonymised.com]
Sent: Friday, 27 June 2014 1:01 AM
To: geonetwork-users@lists.sourceforge.net
Subject: [GeoNetwork-users] Why does Geonework 10.2 try to read Schema.xsds from the Internet?

Hi!

Our Geonetwork-Server cannot connect to the Internet due to security
restrictions.
This was no issue for quite a time.
But out of the blue the Validation of the metadata did not work anymore.
The only explanation i could find was that the validation-process could not
execute the following http-call

Message in Log:
Request on http://schemas.opengis.net/iso/19139/20060504/gmd/gmd.xsd failed

An exact copy of gmd.xsd resides in the schemas folder of the
geonetwork-installation. So there should not be any neet do make the
http-request.

So my question is.
What triggered geonetwork to look for gmd.xsd in the web?

Thanks
Andy

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Why-does-Geonework-10-2-try-to-read-Schema-xsds-from-the-Internet-tp5148149.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Simon!

Thanks four your reply.
This was exactly what enabled me to make GN work again

I made a mapping in
/usr/local/geonetwork/web/geonetwork/WEB-INF/data/config/schema_plugins/iso19139/oasis-catalog.xml
....
27 <system
systemId="http://schemas.opengis.net/iso/19139/20060504/gmd/gmd.xsd&quot;
28 uri="schema/gmd/gmd.xsd"/
....

The question why GN wanted to do
http://schemas.opengis.net/iso/19139/20060504/gmd/gmd.xsd
remains.

It worked for months without this call. Why now?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Why-does-Geonework-10-2-try-to-read-Schema-xsds-from-the-Internet-tp5148149p5149026.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.