Ticket #1593 (closed defect: fixed)

Opened 14 years ago

Last modified 13 years ago

getEntry() guard doesn't interpret entry local roles

Reported by: gracinet Owned by: 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

comment:1 Changed 14 years ago by sfermigier

  • Milestone changed from CPS 3.4.1 to CPS 3.4.2

comment:2 Changed 13 years ago by ogrisel

  • Status changed from new to closed
  • Resolution set to fixed

comment:3 Changed 13 years ago by ogrisel

in [48857]

Note: See TracTickets for help on using tickets.