There seems to be some simple logic errors in the code.

There is a variable search404_skip_auto_search which when you set to TRUE, you would expect would stop the automatic searching upon entering a 404. But you would be wrong. If you set search404_do_custom_search to TRUE, then an actual search is performed. This seems like a fairly severe bug. Having a search automatically execute on a highly trafficed site will bring it down.

What I expected to happen

When you set search404_skip_auto_search to TRUE, then this would apply globally.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wiifm created an issue. See original summary.

wiifm’s picture

Status: Active » Needs review
FileSize
669 bytes
wiifm’s picture

Issue summary: View changes
akhilavnair’s picture

I think your point is right and your patch needs to be reroll. So If you don't mind, I have rerolled and created a new patch.

deepa_lissa’s picture

Status: Needs review » Reviewed & tested by the community

Patch works fine. Thanks.

zyxware’s picture

Status: Reviewed & tested by the community » Fixed

Applied the patch.

Status: Fixed » Closed (fixed)

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