Ticket #1593 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

getEntry() guard doesn't interpret entry local roles

Reported by: gracinet Assigned to: fguillaume
Priority: P2 Milestone: CPS 3.4.3
Component: CPSDirectory Version: TRUNK
Severity: normal Keywords: getEntry roles guard
Cc:

Description

One can never access an entry with getEntry() because the guard always fail:

        try:
            self.checkViewEntryAllowed()
            return self._getEntryKW(id)
        except (KeyError, ValueError, Unauthorized):

checkViewEntryAllowed has no args; this will end up in isEntryAclAllowed, which needs either an id or an entry and otherwise uses {} as default entry.

Would be nice to avoid fetching the entry twice, too.

Change History

05/19/06 17:20:07 changed by sfermigier

  • milestone changed from CPS 3.4.1 to CPS 3.4.2.

09/10/06 12:38:31 changed by ogrisel

  • status changed from new to closed.
  • resolution set to fixed.

09/10/06 12:38:49 changed by ogrisel

in [48857]