Last modified: 2008-04-04 17:24:55 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".
This was caused by a stray entry in the database. Purging [[Winnipeg, Manitoba]] fixed it.
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?
(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.
weird or not, the condition is sufficiently possible that today i found it occurring for three more Canadian place names:
+ Orleans, Ontario
Fixed in r32722, the API now uses the redirect table so these weirdnesses can't happen any more.
thank you roan!