[Zope] [Fwd: [BTreeFolder2] BTree keys corruption problem] Related

Max M maxm at mxm.dk
Tue Feb 24 09:20:08 EST 2004


FLORAC Thierry wrote:
 >   Hi,
 >
 > I posted the following message a few weeks ago, to explain a problem 
of duplicated keys into a BTreeFolder2 subclass.
 > After looking for the origins of this problem, I just discovered a 
possible one :
 >  - the authentication into my web site is done via an LDAPUserFolder 
component ;
 >  - for an unknown reason (I don't know LDAP very much !), if a user 
authenticate himself using spaces before or after his user name, 
authentication is OK ;
 >  - if I try to create a new entry into my profiles folder using this 
user name (including spaces !), the entry is created into the 
BTreeFolder2 without spaces, and that seems to create duplicated keys !!


You should verify that you do indeed have duplicate keys.

In html you cannot see the spaces first and last in the keys.

<span> someid</someid>

will look exactly the same as

<span>someid</someid>

in a browser.

If you choose view source you should be able to determine if it is 
indeed so.


I don't believe that The BTreeFolder makes duplicate keys, but the other 
problem is very likely. And one I have made myself from time to time, 
when forgetting to do an "id.strip()"


regards Max M



More information about the Zope mailing list