Ticket #809 (new defect)

Opened 15 months ago

Import/harvest metadata with default namespace not defined in metadata schema fails even if metadata is valid

Reported by: josegar74 Owned by: geonetwork-devel@…
Priority: major Milestone: v2.6.5
Component: General Version: v2.6.4
Keywords: Cc:

Description

Trying to import the attached metadata fails with this message:

IllegalArgumentException : No prefix - cannot find a namespace to set for element gmd:MD_Metadata - namespace URI  http://www.isotc211.org/2005/gmd

The problem is in DataManager.setNamespacePrefixUsingSchemas

Attached a patch to review.

Attachments

world.xml Download (4.9 KB) - added by josegar74 15 months ago.
#809.patch Download (1.7 KB) - added by josegar74 15 months ago.

Change History

Changed 15 months ago by josegar74

Changed 15 months ago by josegar74

Note: See TracTickets for help on using tickets.