Last modified: 2008-01-24 21:22:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12783 - API most time doesn't return results when using query that contains spaces in title
API most time doesn't return results when using query that contains spaces in...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://fr.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-24 21:20 UTC by Mario Biron
Modified: 2008-01-24 21:22 UTC (History)
2 users (show)

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


Attachments

Description Mario Biron 2008-01-24 21:20:04 UTC
If you try to get a specific page title using the API, the query action method won't return any results if the title searched contains a space.  

If you try to get the following page: http://fr.wikipedia.org/wiki/Jacques_Villeneuve
Using:
http://fr.wikipedia.org/w/api.php?action=query&redirects&format=xml&prop=revisions&rvprop=content&titles=jacques_villeneuve
or
http://en.wikipedia.org/w/api.php?action=query&redirects&format=xml&prop=revisions&rvprop=content&titles=jacques_villeneuve
You get no results

Same for:
http://fr.wikipedia.org/wiki/Jacques_Villeneuve
Using
http://fr.wikipedia.org/w/api.php?action=query&redirects&format=xml&prop=revisions&rvprop=content&titles=gilles_villeneuve
or
http://en.wikipedia.org/w/api.php?action=query&redirects&format=xml&prop=revisions&rvprop=content&titles=gilles_villeneuve

But, if you try this one:
http://fr.wikipedia.org/wiki/Elvis_Presley
Again, you will not get any results using
http://fr.wikipedia.org/w/api.php?action=query&redirects&format=xml&prop=revisions&rvprop=content&titles=elvis_presley
but if you using this search query instead:
http://en.wikipedia.org/w/api.php?action=query&redirects&format=xml&prop=revisions&rvprop=content&titles=elvis_presley
then you get the following:
http://fr.wikipedia.org/wiki/Elvis_Presley

What's missing?

Note that I tried replacing the space character with a "_", a "+" or a "%20" to no avail.  Tried to enclose the searched title in quotes and it didn't work either.
Comment 1 Mario Biron 2008-01-24 21:21:25 UTC
Ps: in case this is known, I appologize.  I did search through Google to find any instance of this issue and couldn't find anything directly related.
Comment 2 Roan Kattouw 2008-01-24 21:22:41 UTC
You should use captials: Jacques_Villeneuve , not jacques_villeneuve (which is in fact a different page).

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


Navigation
Links