[GeoNetwork-devel] CSW-T Insert - proposal

Hello everybody,

if you trying to insert a dataset which already exists you'll get the
following exception (via CSW-T):

<?xml version="1.0" encoding="UTF-8"?>
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows&quot;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd&quot;&gt;
  <ows:Exception exceptionCode="NoApplicableCode">
    <ows:ExceptionText>Cannot process transaction: FEHLER: doppelter
Schlüsselwert verletzt Unique-Constraint
»metadata_uuid_key«</ows:ExceptionText>
  </ows:Exception>
</ows:ExceptionReport>

Possible solution?! (like trying to delete a dataset which does not
exists (via CSW-T)).

<?xml version="1.0" encoding="UTF-8"?>
<csw:TransactionResponse xmlns:csw="http://www.opengis.net/cat/csw/2.0.2&quot;&gt;
  <csw:TransactionSummary>
    <csw:totalInserted>0</csw:totalInserted>
    <csw:totalUpdated>0</csw:totalUpdated>
    <csw:totalDeleted>0</csw:totalDeleted>
  </csw:TransactionSummary>
</csw:TransactionResponse>

Just <csw:totalInserted>0</csw:totalInserted> in case of
<csw:totalInserted>1</csw:totalInserted>.

Kind regards
Juergen