[GeoNetwork-devel] [GeoNetwork opensource Developer website] #809: Import/harvest metadata with default namespace not defined in metadata schema fails even if metadata is valid

#809: Import/harvest metadata with default namespace not defined in metadata
schema fails even if metadata is valid
-----------------------+----------------------------------------------------
Reporter: josegar74 | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.6.5
Component: General | Version: v2.6.4
Keywords: |
-----------------------+----------------------------------------------------
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.

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/809&gt;
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/&gt;
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.