Last modified: 2008-01-24 21:22:41 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 T14783, the corresponding Phabricator task for complete and up-to-date bug report information.
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