[Zope] BUG: subtransaction not handled correctly in "manage_addFile" (was: [Zope] Re: manage_addFile problem) (was: [Zope] Re: manage_addFile problem)

Dieter Maurer dieter@handshake.de
Thu, 4 Jan 2001 22:58:18 +0100 (CET)


Ian Sealy writes:
 > I sent the following message to the list just before Christmas, but
 > didn't get any replies.
You probably did not get an answer because it is extremely difficult
to see the problem cause.

Apparently, the upload was successful and resulted in some
subtransaction (because your file was large).

Later an exception occured during the commit.
Zope tries to abort the associated transaction.
During this abort, Zope hits the subtransactions
and wants to abort them calling "abort_sub" on
them.
However, at least one of the subtransaction objects
does not have this method.
This results in your backtrace.

Apparently, there is a Zope bug in the subtransaction
handling or their abort. Please file a bug report
into the Collector.

On the other hand, the bug is triggered by
something. I would expect, it is an
exception in "ZODB.Transaction:261",
AttributeError "commit_sub".
You can verify this, if you put an
"import traceback; traceback.print_exc()"
below line 270.
Problably some non-subtransaction object
managed to enter in "subjars".
I can't tell you why.


Dieter