Description

With the autoadmin security policy acls are not always honored when sending mail notifications.

Steps to reproduce

  1. Have a wiki at http://wiki/ with autoadmin security policy.

         from MoinMoin.security.autoadmin import SecurityPolicy
  2. Common acl settings should be configured.
        acl_rights_before = u"root:read,write,delete,revert,admin"
        acl_rights_default = u"Known:read,write,delete,revert"
  3. eMail notifications should be working.
  4. Have two users at hand: UserOne, UserTwo .

  5. UserOne should be part of the AutoAdminGroup to use this feature.

  6. Log in as user UserTwo and subscribe to all kind of events on all pages ".*".

  7. Logout.
  8. Log in as UserOne, and create a new page below or at your "HomePage" (e.g. http://wiki/UserOne/NewPage)

  9. Insert a #acl like
    #acl UserOne:read,write,revert,delete,admin -All:read
     * Test
  10. Save the page.
  11. There will be a message in the window about UserTwo getting a notification.

  12. UserTwo gets a mail notification.

This happens, although one would expect that the acl prevents UserTwo from having access to the page. Actually UserTwo can not access the page normally via wiki.

This only happens when the autoadmin security policy is needed at all for UserOne to create the page. If e.g. "root" creates http://wiki/Test with the same acl, this will not happen.

<!> The same problem occurs, when an old page is edited and a new acl is inserted (where autoadmin is needed).

Example

Component selection

Details

MoinMoin Version

1.9.3

OS and Version

Python Version

2.6.5

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

de

Workaround

Change the acl line without any other edit. Save it. Do other changes of the content.

Discussion

The new acl rules are only active in 1.x after saving. And in between saving notification is done. It is valid regarding to the old acls that the user gets the diff send. If you do a second edit the rules are changed and he won't get any further notification.

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/ACLNotWorkingAutoAdminNewPageMailNotification (last edited 2011-04-08 10:40:32 by p5B1078DE)