Last modified: 2008-12-03 19:34:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18548, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16548 - list=search&srnamespaces causes odd error messages
list=search&srnamespaces causes odd error messages
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.14.x
All All
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-03 17:10 UTC by Russell Blau
Modified: 2008-12-03 19:34 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Russell Blau 2008-12-03 17:10:51 UTC
http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=wikipedia&srnamespace=0 works
http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=wikipedia&srnamespace=1 (or any other non-zero value) causes an error:

<api>
  <error code="srsearch--disabled" info=" search is disabled">
...

Note that the error code itself is invalid.

Further, these errors are not always replicable: I had one query which gave me an error code=gsrsearch-text-disabled, and when I repeated the identical query a few minutes later I got a non-error response.
Comment 1 Roan Kattouw 2008-12-03 18:33:43 UTC
I guess this is what happens when people change backend behavior without updating (all the) callers...
Comment 2 Roan Kattouw 2008-12-03 19:34:15 UTC
(In reply to comment #0)
> http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=wikipedia&srnamespace=0
> works
> http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=wikipedia&srnamespace=1
> (or any other non-zero value) causes an error:
> 
> <api>
>   <error code="srsearch--disabled" info=" search is disabled">
> ...
> 
> Note that the error code itself is invalid.
> 
The invalid error code was fixed in r44186. Now you'll always get either srsearch-text-disabled or srsearch-title-disabled.

> Further, these errors are not always replicable: I had one query which gave me
> an error code=gsrsearch-text-disabled, and when I repeated the identical query
> a few minutes later I got a non-error response.
> 
You mean that you intermittently get the weird error message or a normal result for the same query? I'm pretty sure that has to be a bug in the search backend.

Marking as FIXED for now, since the invalid error code was fixed and I'm pretty sure the intermittent weirdness is not a bug in the API, but in the search backend. If it persists, open a separate bug for it with Search or Lucene as component.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links