https://bugzilla.wikimedia.org/show_bug.cgi?id=16572
Roan Kattouw <[EMAIL PROTECTED]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[EMAIL PROTECTED]
--- Comment #1 from Roan Kattouw <[EMAIL PROTECTED]> 2008-12-05 21:05:58 UTC
---
(In reply to comment #0)
> I submitted the search query in the URL field of this report 3 times; the
> first
> two times I got an API error message, while the third time I got an
> (apparently) valid search result. The error message received was:
>
> "error": {
> "code": "srsearch--disabled",
> "info": " search is disabled",
> }
>
The error code the API returns here is invalid, but that was fixed recently
(see bug 16548).
> Evidently the API is receiving an incorrect error code, intermittently, from
> some backend module. I have no way of identifying what causes the search to
> succeed some times and fail others, but I can confirm that I used the
> identical
> URL each time.
>
What's happening here is that the SearchEngine::searchTitle() and
SearchEngine::searchText() functions return null. The API interprets this as
"this search type is disabled" (since r32349; is this assumption even correct?)
and throws the associated error. If srwhat isn't set (which is the case in your
request), both functions (first title, then text) will be tried, and if both
return null, you'd get the srsearch--disabled error before bug 16548 was fixed,
and srsearch-text-disabled after.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l