Skip to content

CSW GetRecords fails when requesting an outputSchema not supported by a metadata schema #6940

Description

@josegar74

Describe the bug
CSW GetRecords fails when requesting iso19139 outputSchema when the catalogue contains iso19110 metadata.

To Reproduce
Steps to reproduce the behavior:

  1. Load iso19110 and iso19119 metadata.
  2. Go to Admin console > Settings > CSW Test and select the request csw-GetRecords | no filter | outputSchema: http://www.isotc211.org/2005/gmd. The following error is returned:
<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2.0" xsi:schemaLocation="http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd">
  <ows:Exception exceptionCode="NoApplicableCode">
    <ows:ExceptionText>java.lang.RuntimeException: org.fao.geonet.csw.common.exceptions.InvalidParameterValueEx: code=InvalidParameterValue, locator=OutputSchema, message=OutputSchema 'gmd' not supported for metadata with '102' (iso19110).
Corresponding XSL transformation 'gmd-summary.xsl' does not exist for this schema.
The record will not be returned in response.</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

Expected behavior

As the metadata has no conversion to iso19139 it is ignored, as it was in previous versions. The rest of the metadata is returned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions