Last modified: 2014-10-17 15:15:03 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 T47131, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45131 - wbgetentities should apply basic normalization to titles in parameters.
wbgetentities should apply basic normalization to titles in parameters.
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-18 20:36 UTC by Daniel Kinzler
Modified: 2014-10-17 15:15 UTC (History)
6 users (show)

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


Attachments

Description Daniel Kinzler 2013-02-18 20:36:50 UTC
The titles given in the "titles=" parameters of the wbgetclaims module are expecting spaces, not underscores, while elsewhere, we always use underscores in the canonical title form.

Basic normalization should be performed on the titles used to select items: strip leading/trailing whitespace, apply unicode normalization, replace " " with "_" (or vice versa, as needed). 

More advances normalization, especially involving namespaces, is not possible without calling the target wiki's API, which is too slow for this purpose. 

Converting the first character to upper case is a borderline case: it could be done, but we can't be sure that it's appropriate.
Comment 1 Gerrit Notification Bot 2013-05-15 21:29:53 UTC
Related URL: https://gerrit.wikimedia.org/r/63967 (Gerrit Change I86c72ac3a9da52dfd3ee1aca86b247c59d3098ce)
Comment 2 Daniel Kinzler 2013-10-29 15:43:07 UTC
Adam, is this still a problem?
Comment 3 Addshore 2013-10-30 13:14:38 UTC
yes
Comment 4 Marius Hoch 2014-10-17 15:15:03 UTC
Not sure when this was fixed, but it seems to be fixed now:

https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=The_Beatles
https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=The%20Beatles

both work for me (and give the same results).

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


Navigation
Links