INSPIRE-MIF / helpdesk-geoportal

Community discussion for INSPIRE geoportal topics
11 stars 3 forks source link

INSPIRE CSW faulty #195

Open armin11 opened 1 month ago

armin11 commented 1 month ago

Dear colleagues,

your CSW interface (https://inspire-geoportal.ec.europa.eu/srv/ger/csw?REQUEST=GetCapabilities&VERSION=2.0.2&SERVICE=CSW) don't work as expected. Can you check your geonetwork configuration?

Example post request which work (search for series):

<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecords service="CSW" version="2.0.2" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:ogc="http://www.opengis.net/ogc" xmlns:apiso="http://www.opengis.net/cat/csw/apiso/1.0" xmlns:gml="http://www.opengis.net/gml" maxRecords="10" startPosition="1" outputSchema="http://www.isotc211.org/2005/gmd" resultType="results">
<csw:Query typeNames="csw:Record">
<csw:ElementSetName>full</csw:ElementSetName>
<csw:Constraint version="1.1.0">
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>Type</ogc:PropertyName>
<ogc:Literal>series</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:PropertyIsLike wildCard="*" singleChar="_" escapeChar="/">
<ogc:PropertyName>AnyText</ogc:PropertyName>
<ogc:Literal>*baum*</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:And>
</ogc:Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>

If we try to search for dataset or services this will not work:

<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecords service="CSW" version="2.0.2" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:ogc="http://www.opengis.net/ogc" xmlns:apiso="http://www.opengis.net/cat/csw/apiso/1.0" xmlns:gml="http://www.opengis.net/gml" maxRecords="10" startPosition="1" outputSchema="http://www.isotc211.org/2005/gmd" resultType="results">
<csw:Query typeNames="csw:Record">
<csw:ElementSetName>full</csw:ElementSetName>
<csw:Constraint version="1.1.0">
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>Type</ogc:PropertyName>
<ogc:Literal>dataset</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:PropertyIsLike wildCard="*" singleChar="_" escapeChar="/">
<ogc:PropertyName>AnyText</ogc:PropertyName>
<ogc:Literal>*baum*</ogc:Literal>
</ogc:PropertyIsLike>
</ogc:And>
</ogc:Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>

Which version of geowetwork do you use? Is the project on github?

In our test catalogue (gn 4.4.4.0) the CSW-interface workes out of the box - some pre versions (4+) had problems. https://documents.geoportal.rlp.de/geonetwork/srv/ger/catalog.search#/home

In the last years, the old interface was very reliable and we use it in out productive environment to allow the search for european datasets.

Best regards from Germany,

Armin

pvgenuchten commented 3 weeks ago

i ran into similar issue;

Following urls run into the same error:

the error displayed is:

    <ows:Exception exceptionCode="NoApplicableCode">
        <ows:ExceptionText>java.lang.RuntimeException: java.lang.NullPointerException</ows:ExceptionText>
    </ows:Exception>

when running this query to other instances of geonetwork, this problem does not occur