Ticket #1482 (new defect)

Opened 13 years ago

Last modified 13 years ago

field_ignored is ignored in MetaDirectory._searchEntries

Reported by: gracinet Owned by: fguillaume
Priority: P3 Milestone: CPS 3.5.7
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

comment:1 Changed 13 years ago by fguillaume

  • Milestone changed from CPS 3.4.0 to CPS 3.4.1

comment:2 Changed 13 years ago by sfermigier

  • Milestone changed from CPS 3.4.1 to CPS 3.4.3

comment:3 Changed 13 years ago 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.

Note: See TracTickets for help on using tickets.