[Zope] maximum recursion depth exceeded - SimpleUserFolder

Dieter Maurer dieter at handshake.de
Fri Aug 4 14:16:21 EDT 2006


Remy Pinsonnault wrote at 2006-8-3 16:53 -0400:
>I have a SimpleUserFolder 0.9.0 inside a GRUF folder.
>
>I am running on a Plone 2.1.3 instance.
>
>If I change the SimpleUserFolder to the newest version (1.1.2), I get a
>maximum recursion depth exceeded error (see traceback).
>
>What is wrong??
> ...
>   - Module Products.SimpleUserFolder.SimpleUserFolder, line 63, in
>   getUserNames
>   - Module Products.GroupUserFolder.GroupUserFolder, line 245, in
>   getUserIds
>   - Module Products.GroupUserFolder.GroupUserFolder, line 216, in
>   getUserNames
>   - Module Products.SimpleUserFolder.SimpleUserFolder, line 63, in
>   getUserNames
>   - Module Products.GroupUserFolder.GroupUserFolder, line 245, in
>   getUserIds
>   - Module Products.GroupUserFolder.GroupUserFolder, line 216, in
>   getUserNames
>   - Module Products.SimpleUserFolder.SimpleUserFolder, line 63, in
>   getUserNames
> ...

I think I have seen a corresponding warning in GRUF. But, I forgot
the details.

The traceback shows you that the infinite loop is

   SimpleUserFolder.getUserNames
   --> GroupUserFolder.getUserIds
   --> GroupUserFolder.getUserNames
   --> SimpleUserFolder.getUserNames

Almost surely, "SimpleUserFolder" requires that a customization
method "getUserIds" is present. Apparently, it is missing.
Therefore, it is acquired -- and this enters an infinite loop...

-- 
Dieter


More information about the Zope mailing list