Iterating over ZCatalog produces different no. of results than indicated by len() of result set

Bug #143819 reported by ChrisW
2
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Medium
Unassigned

Bug Description

This ain't right:

zopectl debug:
>>> len(app.some_catalog.unrestrictedSearchResults())
2937144
>>> i = 0
>>> for b in app.some_catalog.unrestrictedSearchResults():
... i+=1
...
>>> i
821165

Also:

>>> len(tuple(app.some_catalog.unrestrictedSearchResults())
821165

Why is the lazy list of brains getting its length wrong?

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

Without a set of test data exposing this behavior, there's little we can do.

Changed in zope2:
status: New → Incomplete
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope2 project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope2.

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