Opened 13 years ago

Closed 13 years ago

#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()

Change History (3)

comment:1 by jesseeichar, 13 years ago

Owner: changed from geonetwork-devel@… to jesseeichar

comment:2 by jesseeichar, 13 years ago

Status: newassigned

comment:3 by jesseeichar, 13 years ago

Milestone: v2.6.5v2.7.0
Resolution: worksforme
Status: assignedclosed

I have tested this against trunk and it is working.

I execute almost the same transaction 4 times and checked the resulting metadata to verify that the last result was done correctly.

Here is what I have done:

execute a title update then an abstract update with the constraint Identifier = <uuid>

It works perfectly fine if I execute in parallel or sequentially. I admit I do the login only once and both requests are done in the same ExecutionContext but I think that this is not an issue for trunk

Note: See TracTickets for help on using tickets.