[Zope] Not corruption (was Re: [Zope] ZODB corruption? WWYD? ;)

Jim Fulton jim@digicool.com
Tue, 10 Aug 1999 16:06:01 -0400


"Thaxter, Jason M." wrote:
> 
> I had a problem removing an item from a folder:
> 
>         Zope has encountered an error while publishing this resource.
> 
>           exceptions.AttributeError
> 
>           Sorry, a Zope error occurred.
> 
>           Traceback (innermost last):
>             File /zope/Zope-2.0.0b1-src/lib/python/ZPublisher/Publish.py,
> line 256, in publish_module
>             File /zope/Zope-2.0.0b1-src/lib/python/ZPublisher/Publish.py,
> line 161, in publish
>             File /zope/Zope-2.0.0b1-src/lib/python/ZPublisher/mapply.py,
> line 154, in mapply
>               (Object: manage_delObjects)
>             File /zope/Zope-2.0.0b1-src/lib/python/ZPublisher/Publish.py,
> line 98, in call_object
>               (Object: manage_delObjects)
>             File /zope/Zope-2.0.0b1-src/lib/python/OFS/ObjectManager.py,
> line 392, in manage_delObjects
>               (Object: ElementWithAttributes)
>             File /zope/Zope-2.0.0b1-src/lib/python/OFS/ObjectManager.py,
> line 264, in _delObject
>               (Object: ElementWithAttributes)
>             File /zope/Zope-2.0.0b1-src/lib/python/Products/OFSP/Draft.py,
> line 218, in manage_beforeDelete
>               (Object: AddocPart)
>             File /zope/Zope-2.0.0b1-src/lib/python/Products/OFSP/Draft.py,
> line 174, in nonempty
>               (Object: AddocPart)
>           AttributeError: VersionBase

This is due to bug in Draft objects.  This bug will be fixed in 
2.0 Beta 4. (Actually, draft objects were supposed to go away
in Zope 2, but we forgot to disable them.  Staring in Beta 4
you won't be able to add Draft objects.)

> I tried bbb.py to see what's up:
> 
>         machine$ python utilities/bbb.py var/Data.fs
> 
>         Corrupted data record at 9

bbb.py of for reading ZODB 2 (Bobobase) databases.
Data.fs is a ZODB 3 file storage.  bbb.py should have
complained that Data.fs was not a ZODB 3 file.

Jim

--
Jim Fulton           mailto:jim@digicool.com   Python Powered!        
Technical Director   (888) 344-4332            http://www.python.org  
Digital Creations    http://www.digicool.com   http://www.zope.org    

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.