Last modified: 2008-10-28 15:42:08 UTC
It is currently possible to register links to negative namespaces. A link to a non-existing Special: page like [[Special:Foobarbaz]] will show <pl ns="-1" title="Special:Foobarbaz" />, and an image link= like [[Image:Foo|link=Special:UserLogin]] to either an existing or non-existing Special page will show <pl ns="-1" title="Special:UserLogin" />. This last one is rather more buggy than the other. This can also be done with Media: (-2) namespace links in image link=. These are perhaps not ideal situations, but as there are multiple methods of accidentally doing it, perhaps the API should do a sanity check and ignore -1 namespaces for generator? See also: http://test.wikipedia.org/w/api.php?action=query&prop=links&titles=Flibble http://test.wikipedia.org/w/api.php?action=query&generator=links&titles=Flibble (test cases are fragile, subject to later repair)
Bug as filed fixed in r42732. The 'unsupportednamespace' error has become a warning so at least it's not broken any more. This is a temporary solution until we figure out what to do with negative namespace titles; see also bug 16162.