[GeoNetwork-users] [Geoserver-users] GeoServer: @href error on MD_LegalConstraints.otherConstraints

Hi Jan!
Unfortunately, the whole geoserver csw-metadata-inspire subsystem seems
fundamentally broken. Or is it the documentation that is outdated?
I have tried to raise this as a bug on JIRA
https://osgeo-org.atlassian.net/browse/GEOS-10110?jql=project%20%3D%20GEOS%20AND%20text%20~%20CSW
and as a question on Stackexchange
https://gis.stackexchange.com/questions/402263/how-to-configure-csw-and-metadata-in-geoserver
but have received no useful response.
If this had worked as advertised, Geoserver could be very useful as a
qualified metadata repository along with its map services. But like Jukka
Rahkonen wrote:"Obviously it is not a very much used service among
Geoserver users."

Regards, Mats.E

Den fre 23 juli 2021 kl 11:00 skrev Andrea Aime <
andrea.aime@anonymised.com>:

I see you're trying to use ISO metadata in the request, however the CSW
ISO
module fell un-maintained and it's no longer part of the CSW extension.
I'm not sure
It can still be used, but you have to grab the module from the nightly
builds:

https://build.geoserver.org/geoserver/2.18.x/community-latest/geoserver-2.18-SNAPSHOT-csw-iso-plugin.zip

I have no idea if it's still working though.

Cheers
Andrea

On Thu, Jul 22, 2021 at 9:26 PM Wal, Jan Tjalling van der <
jan_tjalling.vanderwal@anonymised.com> wrote:

Dear all,

We have added the CSW-module and the Inspire-metadata to GeoServer
(2.18.4) as per the instructions here
<https://docs.geoserver.org/latest/en/user/tutorials/metadata/index.html&gt;\.

However despite trying various options when editing the metadata (on the
available tab), a GetRecord-request does not receive a valid answer.

GetCapabilities does give a correct answer.

This query:

https://opengeodata.wmr.wur.nl/geoserver/csw?service=CSW&version=2.0.2&request=GetRecords&typeNames=gmd:MD_Metadata&resultType=results&elementSetName=full&outputSchema=http://www.isotc211.org/2005/gmd

Yields this result:

<ows:ExceptionReport xmlns:xs="http://www.w3.org/2001/XMLSchema
" xmlns:ows="http://www.opengis.net/ows&quot; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance
" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/ows
https://opengeodata.wmr.wur.nl/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd
">

<ows:Exception exceptionCode="NoApplicableCode">

<ows:ExceptionText>javax.xml.transform.TransformerException: Translator
error Translator error Failed to encoder records Problem with features2
visiting feature:java.lang.IllegalArgumentException: Error mapping resource
BV_Telgebieden: Failed mapping property
'identificationInfo.MD_DataIdentification.resourceConstraints[2].MD_LegalConstraints.otherConstraints.Anchor.@anonymised.com':
Cannot find descriptor for attribute @href in type
http://www.isotc211.org/2005/gmx:Anchor_Type Error mapping resource
BV_Telgebieden: Failed mapping property
'identificationInfo.MD_DataIdentification.resourceConstraints[2].MD_LegalConstraints.otherConstraints.Anchor.@anonymised.com':
Cannot find descriptor for attribute @href in type
http://www.isotc211.org/2005/gmx:Anchor_Type Failed mapping property
'identificationInfo.MD_DataIdentification.resourceConstraints[2].MD_LegalConstraints.otherConstraints.Anchor.@anonymised.com':
Cannot find descriptor for attribute @href in type
http://www.isotc211.org/2005/gmx:Anchor_Type Cannot find descriptor for
attribute @href in type http://www.isotc211.org/2005/gmx:Anchor_Type
</ows:ExceptionText>

</ows:Exception>

</ows:ExceptionReport>

What are we missing?

Suggestions on what to check or modify are greatly appreciated,

*Jan Tjalling van der Wal*

Wageningen Marine Research (IMARES) Institute for Marine Resources
& Ecosystem Studies

Ankerpark 27, 1781 AG Den Helder

Postbus 57, 1780 AB Den Helder

Tel. +31 (0)317-4 87147 #

GSM +31(0)626120915 (privé) #

# Ma+Di 09:00-18:00, Wo XX, Do+Vr 09:00-18:00

Jan_Tjalling.vanderWal@anonymised.com

!image001.png|252x74

www.wur.nl/marine-research (NL) / www.wur.eu/marine-research (ENG)

www.disclaimer-nl.wur.nl / www.disclaimer-uk.wur.nl

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to
this list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to
this list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--

*GisKraft*, Geodatakonsult

Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se