[ZODB-Dev] [ zodb-Bugs-631680 ] Error in objects un-created due to undo

noreply@sourceforge.net noreply@sourceforge.net
Thu, 31 Oct 2002 09:56:37 -0800


Bugs item #631680, was opened at 2002-10-31 18:56
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=631680&group_id=15628

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Magnus Lyckå (mly)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error in objects un-created due to undo

Initial Comment:
If an object is created in a transaction, and this
transaction is removed with db.undo(), the object is so
to say "un-created" (or George Bailey'd) in the database.

It might still exist in the running program though. If
you try to access attributes of this object using
FileStorage, you will get "error: unpack str size does
not match format" with Python 2.2, and "OverflowError:
long int too large to convert" with Python 2.1. Correct
error (as seen in Berkeley Full storage) would be a
KeyError.

(I'm not sure whether anything else regarding these
objects should be handled differently.)

Test script that will trigger the error is attached.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=631680&group_id=15628