updating portal_catalog leaves catalog empty

Bug #143506 reported by Sam Brauer
4
Affects Status Importance Assigned to Milestone
Zope 2
Won't Fix
Medium
Unassigned

Bug Description

I'm not sure whether this is a ZCatalog issue or a CMF issue. I originally reported it as a CMF issue at http://www.zope.org/Collectors/CMF/379 .
Since then I have learned some new info. Here's what I have found:

I am currently using CMF 1.5.3 and Zope 2.7.7 in production.
I want to move to Zope 2.8.1-final.
As the 2.8.1 FAQ instructs, I ran manage_convertIndexes on all of my catalogs.
The catalogs seems to work fine (I have several portal_catalogs and a couple of plain ZCatalogs), except for one thing: attempting to Update them (from the Advanced tab in the ZMI) raises an AttributeError on _length.
After some searching I found some people having problems clearing catalogs or importing catalogs:
http://www.gossamer-threads.com/lists/zope/users/187497
And evidence of a fix:
http://aspn.activestate.com/ASPN/Mail/Message/zope-Checkins/2783274

However I have seen no other reports of the Update problem.

Since the Catalog.clear() checkin was made after Zope 2.8.1-final, I tried grabbing the latest versions of Catalog.py and ZCatalog.py from the trunk and using them in my 2.8.1 instance.

I am now able to run an Update without exceptions.
My plain ZCatalogs appear to have been correctly updated.
My CMF portal_catalogs, however, are empty after the update completes. In other words, their Catalog tab in the ZMI shows no objects, and their Indexes tab shows zero distinct values for all indexes.

Sorry to create two collector entries for one problem, but I'm not sure where the appropriate place for the problem report is.

Tags: bug catalog
Revision history for this message
Hanno Schlichting (hannosch) wrote :

Sounds like the CMF catalogs lost their values during the upgrade problems. An "update" will only consider cataloged objects, without any doing a rebuild is required.

Changed in zope2:
status: New → Incomplete
Revision history for this message
Hanno Schlichting (hannosch) wrote :

Looks like this was an upgrade problem and fixed by rebuilding the catalog.

Changed in zope2:
status: Incomplete → Won't Fix
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.