Catalog not cataloging content edits

Bug #189783 reported by Tom Dossis
8
Affects Status Importance Assigned to Milestone
Zope 3
Won't Fix
Undecided
Unassigned
zope.catalog
Invalid
Undecided
Unassigned

Bug Description

The issue arises after adding Catalog (and Intid) utilities to a site which already contains content. None of the existing content will have a registered uid.

One problem is the Catalog ObjectModified subscriber ignores objects with no uid.

Another problem is the Catalog rebuild indexes feature finds it's objects using the (known) uid's in the IntId utility - so it never sees the pre-existing content.

Consequently, the pre-existing objects never appear in the catalog.

Revision history for this message
Dan Korostelev (nadako) wrote :

Well. I also met this problem a while ago. I just created a view for IIntIds that traverses the whole site tree and reindex all objects in the utility.

Revision history for this message
Tom Dossis (td-yoma) wrote :

Should such a view be part of zope.app.intid?
It has a populate view, but that doesn't traverse the site tree.
In my case, I encountered the problem indirectly when adding another package so it took some time to track down what was happening because I initially suspected the the new package was at fault.
Anyhow, this problem can be subtle - which is why I raised this issue - too save others tripping up on it.

Tres Seaver (tseaver)
Changed in zope3:
status: New → Won't Fix
Revision history for this message
Michael Howitz (mh-gocept) wrote :

It is not possible to create a general view which creates UIDs for all objects in a site which should get a UID, as this is application policy. Even worse there might be objects hidden on attributes or even in annotations which might need a UID, so it could be hard to find all of these objects.

There should be a how-to for people facing this problem.

Changed in zope.catalog:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.