[GeoNetwork-devel] [GeoNetwork opensource Developer website] #527: Exception when sending multiple CSW update transactions to a geonetwork record

#527: Exception when sending multiple CSW update transactions to a geonetwork
record
-----------------------+----------------------------------------------------
Reporter: mbertrand | Owner: geonetwork-devel@…
     Type: defect | Status: new
Priority: major | Milestone: v2.6.5
Component: General | Version: v2.6.4
Keywords: |
-----------------------+----------------------------------------------------
When I attempt to send multiple CSW update
transactions to a record in Geonetwork in the same session, the first
update succeeds but all subsequent updates fail with an
ExceptionRecord: "Cannot process transaction: Raised exception while
searching metadata".

I am using a script from the wiki
(http://trac.osgeo.org/geonetwork/wiki/HowToDoCSWTransactionOperations)
which I modified to send an update transaction request for a particular
record several times in a row:

     for n in range(0,2):
        request = urllib2.Request(url_csw, xml_request, header_xml)
        response = opener.open(request)
        # CSW respons
        xml_response = response.read()
        print xml_response

Logging out and back in between requests doesn't help either.

But if I run the entire function twice (this time with only one update
request), then both updates succeed:

if __name__=="__main__":
     gn_csw_transaction()
     gn_csw_transaction()

--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/527&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.