[Geoserver-devel] [JIRA] (GEOS-7169) order of metadata elements in csw-getrecord is randomly, causing errors when validating against the xsd-schema

Paul van Genuchten created an issue

GeoServer / BugGEOS-7169

order of metadata elements in csw-getrecord is randomly, causing errors when validating against the xsd-schema

Issue Type:

BugBug

Affects Versions:

2.7.1.1

Assignee:

Unassigned

Components:

CSW

Created:

24/Aug/15 5:28 PM

Priority:

MediumMedium

Reporter:

Paul van Genuchten

when adding some metadata elements using the md_metadata.properties configuration, i noticed the order these elements were added to the csw-response was randomly (at least i couldn’t deduce what order was used, not the order from the properties file and not alphabetically)

This breaks conformance with the schema, since the iso19139 schema defines a strict order of metadata elements

The resulting metadata for me looked like:

<gmd:MD_Metadata>
<gmd:referenceSystemInfo>…
<gmd:dataQualityInfo>…
<gmd:fileIdentifier>…
<gmd:distributionInfo>…
<gmd:language>…

If using the order of the properties file, at least users would be able to create correct metadata by using proper order in their properties file. Better alternative would be to check the schema for correct ordering.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.0.0-OD-02-247#70102-sha1:09808d3)

Atlassian logo