Last modified: 2011-03-13 18:04:56 UTC
Using Special:PrefixIndex, you can specify Namespace:Page and that gets translated into Page with Namespace filter. The API should do the same. http://meta.wikimedia.org/w/api.php?action=query&list=allpages&apprefix=User:Mike.lifeguard and http://meta.wikimedia.org/w/api.php?action=query&list=allpages&apprefix=Mike.lifeguard&apnamespace=2 should return the same results
Closing as WONTFIX. &apnamespace=0&apprefix=User:Foo means something different than &apnamespace=2&apprefix=Foo as the latter lists otherwise inaccessible pages, so this is a feature: both queries are valid and have different semantics. It's the client's responsibility to say what they mean by sending the right query.