I have the usual spam problems and if anyone searches for an item that contains words in the unpublished spam node then it is returned in the search. I could delete all the spam items but surely the search shouldn't return unpublished items, especially if they are searching as an anonymous user.
Am I missing something?

Comments

jhodgdon’s picture

Status: Active » Postponed (maintainer needs more info)

Can you check again these two things:

a) If you search as an anonymous user, do you see the unpublished spam nodes in the results? Yes or no.

b) If you are an anonymous user, and you go to the URL of one of the unpublished spam nodes you saw in the search results, do you get a 403 (not authorized) result, or do you see the node?

If the answer to (a) is Yes and (b) is a 403, then this is a bug in Drupal or a problem with a contributed module, and we should investigate further.

If the answer to (a) is Yes but (b) is that you see the node, then your site permissions are not set up correctly, and it is not a bug in Drupal.

If the answer to (a) is No, and only admin users can see the unpublished nodes in a search, than this is also not a bug -- the way Search is designed is that each user should see search results that contain nodes that they have permission to see.

jhodgdon’s picture

Category: Bug report » Support request
Issue summary: View changes
Status: Postponed (maintainer needs more info) » Fixed

I am assuming that the answer provided above fixed the user's support question and that this is not a bug.

Status: Fixed » Closed (fixed)

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