Ticket #2569 (new defect)

Opened 7 years ago

Last modified 7 years ago

Navigation portlet unfolding skips node in some inconsistent tree cache permissions

Reported by: gracinet Owned by: gracinet
Priority: P2 Milestone: CPS 3.5.6
Component: CPSPortlets Version: unspecified
Severity: normal Keywords:
Cc:

Description (last modified by gracinet) (diff)

If the current user has no right on the current node *as seen from the treecache*, then the logic to show only descendents of the node is mistaken, because it takes for granted that the inclusive forest should have just one root (the current node), whereas the current node is already missing. It will go straight to return children of the first son, while it should return the forest as it is at this point.

In the case where the displayed forest is empty, diagnosis is almost impossible without debugging tools.

Such discrepancies can especially impact Manager roles, that can have effective roles greater than recorded in some place.

In any case, it's easy to implement a robuster logic than the current one.

Change History

comment:1 Changed 7 years ago by gracinet

  • Description modified (diff)

comment:2 Changed 7 years ago by gracinet

Fixed in CPS-3.5, to be merged in trunk

Note: See TracTickets for help on using tickets.