Search result contain link to pages with access denied

rrondeau - September 16, 2008 - 20:26
Project:xapian
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Jeremy@kerneltrap.org
Status:closed
Description

If you search in the drupal.or using the search form in the right collums you occasionaly get result linking to page with "Access Denied"

Ie: The seartcg inputed was security (http://drupal.org/search/node/security) and the third result (Drupal security) is leading to http://drupal.org/node/445. We do see both the title and the teaser, but we cannot access the page.

#1

Gerhard Killesreiter - September 16, 2008 - 20:53
Project:Drupal.org infrastructure» xapian
Version:» 5.x-1.x-dev
Component:Other» Code

I think this is a xapian bug.

#2

Jeremy@kerneltr... - September 16, 2008 - 21:15

Yes, looking at the code the only way a node that's already been indexed will be removed from the index is if it's deleted. If it's unpublished, such as node/445, it does not get removed.

This comment is to confirm that the bug is with the Xapian module. I hope to have time in the next couple of days to fix this, unless someone else happily beats me to it.

#3

Jeremy@kerneltr... - September 17, 2008 - 13:46
Assigned to:Anonymous» Jeremy@kerneltrap.org
Status:active» fixed

I checked in a fix for this bug. If a node is unpublished during an update, it will be removed from the index. Be sure to also run update.php, which will remove any nodes that were previously unpublished before this fix was committed, such as node 445.

#4

Anonymous (not verified) - October 1, 2008 - 13:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.