Description

Performing a full text search, will show portions of pages which the ACL rules do not allow the user to read. Such pages are correctly filtered out when a title search is performed.

Steps to reproduce

  1. Create a page with a suitably-restrictive ACL rule (e.g. #acl All:), bearing in mind the acl_rights_before setting in wikiconfig.py.

  2. Log out of MoinMoin and close the browser.

  3. Open the wiki in the browser and perform a title search on the title of the new page, while being either not logged into the wiki, or logged in as a user who does not have the rights to read the new page. Notice that the new page is correctly filtered out of the title search results.
  4. Perform a full text search on the same search term. Notice that the new page is shown, in violation of the ACL rules.
  5. Log in as a user who has rights to read the new page. Perform the same title search again, and notice that the new page now appears in the title search results. This shows that the title search respects the ACL rules, but the full text search does not.

Details

MoinMoin Version

1.3.2

Workaround

Apply this patch: search.patch

Discussion

Plan


CategoryMoinMoinBugFixed CategoryMoinRelease1.3.3

MoinMoin: MoinMoinBugs/FullTextSearchIgnoresAcl (last edited 2007-10-29 19:08:29 by localhost)