[Zope] Duplicated keys in a BTreeFolder2
Andreas Jung
andreas at andreas-jung.com
Thu Aug 7 11:21:20 EDT 2003
--On Donnerstag, 7. August 2003 10:11 Uhr +0200 Thierry Florac
<thierry.florac at onf.fr> wrote:
>
> Hi,
>
> I currently use a custom subclass of BTreeFolder2 to store my site's
> users profiles (currently 3700).
>
> I've noticed several problems :
> - several keys (= user ids) are duplicated in this folder ; in the ZMI,
> these duplicated keys appear at the start of the list, unordered.
> - some keys are duplicated more than once ; if I try to delete one of
> them, the other duplicated keys are kept and can't be deleted, because
> the object doesn't exist !!!
> - if I try to cut a duplicated object and paste it into another folder,
> I receive an error message, saying that I'm trying to paste an object
> from a foreign database connection !!!
>
> So here are my questions :
> - is it a bug in BTreeFolder2 ?? Can I avoid this ?
> - are duplicated keys pointing to the same object or no ?
> - is it possible to repair this, without losing currently stored objects
> ??
Do you have a unittest to reproduce this? What Zope version are you running?
This might be a problem with BTrees.
-aj
More information about the Zope
mailing list