Opened 15 years ago

Closed 15 years ago

#280 closed defect (invalid)

Shared item doesn't appear in the list, though the item is shared to the user.

Reported by: Martin Svensson Owned by: Martin Svensson
Priority: major Milestone: BASE 2.0
Component: web Version:
Keywords: Cc:

Description

Logged in as Root(Administrator)

eg. An item is shared to 'Everyone' and to one other group, both with Read and Use permission. When the permissions for Everyone stays unchanged and the other group gets write permissions the shared item disappear from the list even if 'Share to me' is selected.

Similar problem seems to be eg. when an item is shared to the logged in user.

Change History (2)

comment:1 Changed 15 years ago by Martin Svensson

Owner: changed from Johan Enell to Martin Svensson

comment:2 Changed 15 years ago by Nicklas Nordborg

Resolution: invalid
Status: newclosed

Short answer: Use the menu: File -> Reload permissions

Long answer: For performance reasons the permissions for a user are loaded when the user logs in. Changes to the permissions for an item doesn't show up until the permissions are reloaded. This can be done manyally by the File -> Reload permissions menu. It will also happen automatically about every ten minutes.

Internally the permissions for an item are stored in an access control list (ACL). The ACL is simply a list of users, groups and projects together with their permissions for the item. Each ACL has a unique ID. When a user logs in the ID:s of all ACL:s where the user appers are loaded into memory. This makes it easy to list items that are shared to a user since we just have to say: give my all items which have an ACL with an ID in this list of ID:s.

Now, when the permissions for an item is changed the core may have to create a new ACL for that item. Obviously the new ACL gets a new ID which of course isn't in the list preloaded into memory. Therefor the item disappears from the list until the permissions are reloaded.

Note: See TracTickets for help on using tickets.