User "Wikinaut" posted a comment on MediaWiki.r89900. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89900#c17962 Commit summary:
expressly set opensearch limit. Found a reproducible problem that on a large wiki a few case-insensitive matches were not shown when limit was not set to a meaningful value. But api.php has been found working by testing that via manual call from url. Perhaps a jQuery problem. Set limit to an value solved that problem immediately. Comment: updates: * javascript did not alone causes this problem * appear to be an API problem, analysis will follow * PHP version does not matter, same problem under PHP 5.3.6 w/o Suhosin patch * Wiki size does not matter * bugzilla will follow soon * observed the apache log and detected that suggestions are asked for empty searches (...&search=&...). In other words, the api interface is called for val()=="" . This is a useless request and should be avoided in the javascript by checking empty inputs. * How empty input are induced? Type "a" (triggers -> ajax). type backspace to clear your "a" (-> triggers ajax with empty input value) ---> see follow up 89950 _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
