Commit 320e4f54 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Check 'tid' parameter, must match with current transaction.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1624 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 00f89a53
......@@ -77,8 +77,9 @@ class StorageAnswersHandler(AnswerBaseHandler):
self.app.local_var.object_stored = oid, serial
def answerStoreTransaction(self, conn, tid):
app = self.app
app.setTransactionVoted()
if tid != self.app.getTID():
raise ProtocolError('Wrong TID, transaction not started')
self.app.setTransactionVoted()
def answerTransactionInformation(self, conn, tid,
user, desc, ext, oid_list):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment