#758: MEF import failed with multiple metadata
---------------------+------------------------------------------------------
Reporter: fxp | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.7.0
Component: General | Version:
Keywords: |
---------------------+------------------------------------------------------
On Postgres:
{{{
2012-01-24 08:57:56,271 ERROR [jeeves.service] - Exception when executing
service
2012-01-24 08:57:56,271 ERROR [jeeves.service] - (C) Exc :
org.postgresql.util.PSQLException: ERROR: insert or update on table
"metadatacateg" violates foreign key constraint
"metadatacateg_metadataid_fkey"
Detail: Key (metadataid)=(63) is not present in table "metadata".
2012-01-24 08:57:56,272 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
<message>ERROR: insert or update on table "metadatacateg" violates
foreign key constraint "metadatacateg_metadataid_fkey"
Detail: Key (metadataid)=(63) is not present in table
"metadata".</message>
<class>PSQLException</class>
<stack>
}}}
Works with H2.
It looks to be related to the use of 2 DB connections during the import.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/758>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
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.