[Zope] BUG: subtransaction not handled correctly in manage_addFile

2001-01-26 Thread Ian Sealy

Dear all,

Does anyone fancy earning a bit of pocket money? I've got a Zope problem
that I can't solve because my Python isn't good enough and my
understanding of the ZODB is pretty much still zero.

We've got a simple Zope application that allows users to upload files
without going near the Zope management screens. For more information on
this and what the problem is, see:

http://www.egroups.com/message/zope/48084

The basic thrust is that when a large file is uploaded and
subtransactions are needed, something goes wrong.

Dieter Maurer sent a reply helpful reply (thanks Dieter) that's archived
at:

http://www.egroups.com/message/zope/48116

In it, he said:

 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".

Sure enough, Dieter was right. I get:

Traceback (innermost last):
  File "/usr/local/zope/lib/python/ZODB/Transaction.py", line 261, in commit
j.commit_sub(self)
AttributeError: commit_sub

Dieter told me to file a bug report (and he's told a couple of other
people the same thing since) but I haven't yet because I'm having
trouble replicating the problem. I can't replicate it by just copying
the two salient methods to a fresh Zope installation of Zope 2.2.5.
Other messages (e.g.  http://www.egroups.com/message/zope/48492 ) made
me suspect that it was a problem with a Product, but installing the
Products I'm using (SiteAccess, ZOracleDA, ZPyGreSQLDA and
smbUserFolder) to this fresh installation didn't replicate the bug. I
only see it if I copy over the Data.fs from the original installation.

Other people seem to have come across the same problem in different
contexts. Have a look at:

http://groups.yahoo.com/group/zope/messagesearch?query=commit_sub

We need to get this fixed ASAP so my boss has told me to send this
message to the list and offer 400 pounds (sterling) to anyone who can
fix this bug. Any takers?

Cheers,
Ian


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] BUG: subtransaction not handled correctly in manage_addFile

2001-01-26 Thread Chris Withers

Ian Sealy wrote:
 
 We need to get this fixed ASAP so my boss has told me to send this
 message to the list and offer 400 pounds (sterling) to anyone who can
 fix this bug. Any takers?

What version of Zope are you using?

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] BUG: subtransaction not handled correctly in manage_addFile

2001-01-26 Thread Ian Sealy

Dear Chris,

  We need to get this fixed ASAP so my boss has told me to send this
  message to the list and offer 400 pounds (sterling) to anyone who can
  fix this bug. Any takers?
 
 What version of Zope are you using?

2.2.5 on Red Hat 6.2.

Zope version: Zope 2.2.5 (source release, python 1.5.2, linux2) 
Python version: 1.5.2 (#1, Nov 18 2000, 20:03:24) [GCC egcs-2.91.66 19990314/Linux 
(egcs- 
System Platform: linux2 

Cheers,
Ian


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




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

2001-01-04 Thread Dieter Maurer

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

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )