Opened 14 years ago

Closed 14 years ago

#373 closed defect (fixed)

GeoNetwork changes schemaLocation, potentially invalidating metadata

Reported by: heikki Owned by: heikki
Priority: major Milestone: v2.6.2
Component: General Version: v2.6.1
Keywords: Cc:

Description

The metadata Show service adds schemaLocation to ISO documents. This may be fine when there is no schemaLocation, but it should not do this when there is already a schemaLocation. Also, the current implementation changes a valid input document that has

<gmd:MD_Metadata
   xmlns:srv="http://www.isotc211.org/2005/srv"
   xmlns:gml="http://www.opengis.net/gml"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:gco="http://www.isotc211.org/2005/gco"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   xmlns:gmd="http://www.isotc211.org/2005/gmd"
   xsi:schemaLocation="http://www.isotc211.org/2005/srv http://schemas.opengis.net/iso/19139/20060504/srv/srv.xsd">

to the invalid

<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd"
   xmlns:srv="http://www.isotc211.org/2005/srv"
   xmlns:gml="http://www.opengis.net/gml"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:gco="http://www.isotc211.org/2005/gco"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   xmlns:geonet="http://www.fao.org/geonetwork"
   xsi:schemaLocation="http://www.isotc211.org/2005/gmd http://www.isotc211.org/2005/gmd/gmd.xsd http://www.isotc211.org/2005/srv http://schemas.opengis.net/iso/19139/20060504/srv/srv.xsd">

(the 2 schemaLocations describe partially the same schema types, trying to assign them to different namespaces).

Change History (2)

comment:1 by heikki, 14 years ago

committed to trunk

comment:2 by heikki, 14 years ago

Resolution: fixed
Status: newclosed

committed in 2.6.x

Note: See TracTickets for help on using tickets.