[Geoserver-devel] [JIRA] (GEOS-10110) Geoserver csw request provides false Datestamp

Mats Elfstrom created an issue

GeoServer / BugGEOS-10110

Geoserver csw request provides false Datestamp

Issue Type:

BugBug

Affects Versions:

2.19.1

Assignee:

Unassigned

Components:

CSW

Created:

13/Jun/21 4:05 PM

Environment:

Tomcat 9 on Windows 2016 server

Priority:

HighHigh

Reporter:

Mats Elfstrom

A csw response from Geoserver provides no datestamp, and thus the csw cannot be harvested to Geonetwork (4). The layer has a creation date set in the Metadata tab.
The datestamp section reads like this:
{{ <gmd:dateStamp>
<gco:Date xsi:nil=“false”>Unknown</gco:Date>
</gmd:dateStamp> }}
This breaks the csw harvester with this error:
{{ 2021-06-13T15:34:11,753+0200 ERROR [Giskraft_csw] - Unable to process record from csw (Giskraft csw)
2021-06-13T15:34:11,753+0200 ERROR [Giskraft_csw] - Record failed: misc:sockenstad. Error is: Invalid ISO date: Unknown
2021-06-13T15:34:11,753+0200 ERROR [Giskraft_csw] - Invalid ISO date: Unknown
java.lang.IllegalArgumentException: Invalid ISO date: Unknown }}
A sample csw record from Geonetwork presents a Datestamp like this:
{{ <gmd:dateStamp>
<gco:DateTime>2021-04-01T15:41:55</gco:DateTime>
</gmd:dateStamp> }}

There seems to be no way to edit which attribute is put into the Datestamp attribute.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100166-sha1:25236ce)

Atlassian logo