Opened 13 years ago

#809 new defect

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 (2)

world.xml (4.9 KB ) - added by josegar74 13 years ago.
#809.patch (1.7 KB ) - added by josegar74 13 years ago.

Download all attachments as: .zip

Change History (2)

by josegar74, 13 years ago

Attachment: world.xml added

by josegar74, 13 years ago

Attachment: #809.patch added
Note: See TracTickets for help on using tickets.