metno / mmd

GNU General Public License v3.0
2 stars 11 forks source link

CSW output fails after changing MMD version in S-ENDA #230

Closed mortenwh closed 10 months ago

mortenwh commented 10 months ago

There has been only one change in the s-enda system lately, and this was an upgrade of the MMD version. Most likely this has caused the below errors.

The following commit likely breaks exporting to the ISO-output: https://github.com/metno/mmd/commit/66b8b82d58c9242d6aaf76b297c3382c2c67c46f

As part of this issue, we should implement a test to verify the translated output in CI/CD.

TODO:

These are valid outputs from the getCapabilities:

http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/ http://www.isotc211.org/2005/gmd

to get different output is csw you need to add &outputSchema=XXX

CSW default output (dc) https://data.csw.met.no/csw?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecords&RESULTTYPE=results&TYPENAMES=csw:Record&ElementSetName=full

DIF: https://data.csw.met.no/csw?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecords&RESULTTYPE=results&TYPENAMES=csw:Record&ElementSetName=full&outputschema=http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/ (not working)

ISO: https://data.csw.met.no/csw?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecords&RESULTTYPE=results&TYPENAMES=csw:Record&ElementSetName=full&outputschema=http://www.isotc211.org/2005/gmd (not working)

================================================================= OAI-PMH List all available formats: https://data.csw.met.no/csw?mode=oaipmh&verb=ListMetadataFormats

DIF: https://data.csw.met.no/csw?mode=oaipmh&verb=ListRecords&metadataPrefix=dif (not working) ISO: https://data.csw.met.no/csw?mode=oaipmh&verb=ListRecords&metadataPrefix=iso19139 (not working) DC: https://data.csw.met.no/csw?mode=oaipmh&verb=ListRecords&metadataPrefix=oai_dc

mortenwh commented 10 months ago

The bug may be solved in #231. Still need to write test.

mortenwh commented 10 months ago

it works in staging but not in prod. Unfortunately, dev is still down..

mortenwh commented 10 months ago

Actually, this had nothing to do with MMD. It turned out that something had failed during indexing. It now works, after deleting: