Last modified: 2008-04-04 17:24:55 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 T15596, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13596 - API query returns two <page> elements
API query returns two <page> elements
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/api.php?red...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-02 19:36 UTC by aaron brick
Modified: 2008-04-04 17:24 UTC (History)
2 users (show)

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


Attachments

Description aaron brick 2008-04-02 19:36:37 UTC
every query i have ever tried up until this one returned zero or one <page> elements. in this case "Winnipeg, Manitoba" redirects unambiguously to "Winnipeg" but the query result includes an additional <page> element for "Canada".
Comment 1 Roan Kattouw 2008-04-02 20:41:45 UTC
This was caused by a stray entry in the database. Purging [[Winnipeg, Manitoba]] fixed it.
Comment 2 aaron brick 2008-04-02 21:18:57 UTC
thanks for the resolution, but shouldn't mediawiki itself detect this condition instead of leaving it to client apps to fail and have their authors file bugs?
Comment 3 Roan Kattouw 2008-04-03 13:06:29 UTC
(In reply to comment #2)
> thanks for the resolution, but shouldn't mediawiki itself detect this condition
> instead of leaving it to client apps to fail and have their authors file bugs?
> 

Well 'this condition' is one that is pretty much impossible. Some very weird database corruption happened there.
Comment 4 aaron brick 2008-04-03 22:49:28 UTC
weird or not, the condition is sufficiently possible that today i found it occurring for three more Canadian place names:

Trois-Rivières, Quebec
Gatineau, Quebec
Lethbridge, Alberta

Comment 5 aaron brick 2008-04-04 00:42:45 UTC
+ Orleans, Ontario
Comment 6 Roan Kattouw 2008-04-04 11:24:02 UTC
Fixed in r32722, the API now uses the redirect table so these weirdnesses can't happen any more.
Comment 7 aaron brick 2008-04-04 17:24:55 UTC
thank you roan!

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


Navigation
Links