INSPIRE-MIF / helpdesk-geoportal

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

INSPIRE CSW faulty #195

Open armin11 opened 6 months ago

armin11 commented 6 months 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 5 months 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

jescriu commented 2 months ago

Dear @armin11 and @pvgenuchten, After several exchanges with GeoCat on this matter, they could not reproduce the issue in GeoNetwork software but pointed out that a mismatch between the content of the GeoNework database and the index might be the cause of this issue in the CSW. We plan to thread a full re-indexation of the INSPIRE Geoportal frontend GeoNetwork instance by the end of September, after having harvested some endpoints (including DE). Will keep you posted.

jescriu commented 12 hours ago

A new harvest of DE will be soon scheduled, taking advantage of the new version of the Link-Checker already in production (See https://github.com/INSPIRE-MIF/helpdesk-geoportal/discussions/233). When it is successfully finished, we will check if the the CSW faulty was solved or not.