ZCatalog is missing security declarations on methods

Bug #713820 reported by David Glick
258
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Undecided
Unassigned

Bug Description

The following methods of Products.ZCatalog.ZCatalog lack security declarations.

This first set also lacks docstrings, so should be protected from being publishable once issue #713253 is resolved:
Products.ZCatalog.ZCatalog.ZCatalog.addColumn
Products.ZCatalog.ZCatalog.ZCatalog.addIndex
Products.ZCatalog.ZCatalog.ZCatalog.clearIndex
Products.ZCatalog.ZCatalog.ZCatalog.delColumn
Products.ZCatalog.ZCatalog.ZCatalog.delIndex
Products.ZCatalog.ZCatalog.ZCatalog.reindexIndex

But this set has docstrings, and may provide access to data that should not be public:
Products.ZCatalog.ZCatalog.ZCatalog.getIndexDataForRID
Products.ZCatalog.ZCatalog.ZCatalog.getIndexDataForUID
Products.ZCatalog.ZCatalog.ZCatalog.getMetadataForRID
Products.ZCatalog.ZCatalog.ZCatalog.getMetadataForUID
Products.ZCatalog.ZCatalog.ZCatalog.getrid
Products.ZCatalog.ZCatalog.ZCatalog.resolve_path

In particular, getIndexDataForUID and getMetadataForUID make it possible to get all catalog data for an item if only its path is known.

Revision history for this message
Matthew Wilkes (matthew-matthewwilkes) wrote :

Thanks for reporting this David, I just remembered it from our chat and was about to do it myself. I'm going to build this into rc2 for the Plone hotfix due later today, ftr.

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

Fix committed in r120265 for Zope 2.12 and released in Products.ZCatalog 2.13.6 for Zope 2.13 / trunk.

Changed in zope2:
milestone: none → 2.12.16
status: New → Fix Committed
Changed in zope2:
status: Fix Committed → Fix Released
visibility: private → public
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

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