Ticket #527 (closed defect: worksforme)
Exception when sending multiple CSW update transactions to a geonetwork record
| Reported by: | mbertrand | Owned by: | jesseeichar |
|---|---|---|---|
| Priority: | major | Milestone: | v2.7.0 |
| Component: | General | Version: | v2.6.4 |
| Keywords: | Cc: |
Description
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()
