Personal tools
You are here: Home Documentation Error References Infinite Recursion Error (Catalog)
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

Infinite Recursion Error (Catalog)

This Error Reference applies to: Any version.
This Error Reference is intended for: Any audience.

When I catalog an object I sometimes get a infinite recursion error. Why?

There is a "feature" in the catalog where you can acquire attributes for metadata and indexes. For instance if you want to index the MD5 for a body of a text document. You dont want to build this into the attribute of the object. So what you can do is create a Python Script with a ID of getMD5 and then create a FieldIndex called getMD5 (or that would be the indexed attributes). The same can happen with regards to the "metadata" tab in the Catalog ZMI. Which is the data that is available on a brain/result when you query a catalog. But, this can work against you.

Say I create a index or a metadata attribute I want to catalog on called Materials which is a attribute on some objects. But I have a folder in the root of the site called Materials. Well when indexing a object that does not have Materials as a attribute will acquire the folder in the portal site. This is a source of confusion for newbies.

One way to go around this is to prefix your indexed/metadata. That is usually ugly. Plone currently has a mechanism to ensure that you will not bite yourself - i.e. allowed IDs for objects are not allowed to be the same as indexes/metadata in the catalog. But if you create a folder, Materials then add a metadata or index in the catalog with the same name - it will bite you.

by Alexander Limi last modified October 3, 2005 - 18:42 All content is copyright Plone Foundation and the individual contributors.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by