Ticket #1482 (new defect)

Opened 3 years ago

Last modified 3 years ago

field_ignored is ignored in MetaDirectory._searchEntries

Reported by: gracinet Assigned to: fguillaume
Priority: P3 Milestone: CPS 3.5.0
Component: CPSDirectory Version: TRUNK
Severity: minor Keywords: Metadirectory backing
Cc:

Description

I have a metadirectory which has field_ignore = 'dn' for its (unique) backing and nevertheless, a search (from ZMI) returns entries with the dn field coming from the backing (and correct btw)

Change History

03/01/06 16:44:57 changed by fguillaume

  • milestone changed from CPS 3.4.0 to CPS 3.4.1.

05/19/06 17:24:35 changed by sfermigier

  • milestone changed from CPS 3.4.1 to CPS 3.4.3.

06/13/06 16:46:36 changed by gracinet

Moreover, a search with a return_field belonging to one of the backings returns all fields from this backing:

(Pdb) cpsdir.searchEntries(return_fields=['unavailableTill'])[0][1]
{'dn': 'uid=smanager,ou=people,dc=mysite,dc=net', 'uid': 'smanager', 'friendlyCountryName': 'France', 'skills': [], 'mailboxes': (), 'homeless': False, 'unavailableTill': None, 'last_login_time': None}
(Pdb) cpsdir.searchEntries(return_fields=['unavailableTill'])[0][1].keys()
['dn', 'uid', 'friendlyCountryName', 'skills', 'mailboxes', 'homeless', 'unavailableTill', 'last_login_time']

Meta comes from CPSLDAPSetup, one sees all the fields from the ZODB Backing.