https://bugzilla.wikimedia.org/show_bug.cgi?id=71767

            Bug ID: 71767
           Summary: Result count < limit with
                    list=allusers&auprop=groups|rights
           Product: MediaWiki
           Version: 1.24rc
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: API
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

With either the groups or rights properties requested, the total number of
users returned can be less than the limit requested based somewhat indirectly
on the number of explicit groups returned in the result set.

Example:
http://en.wikipedia.org/w/api.php?action=query&list=allusers&aufrom=A&auprop=groups&aulimit=2

I believe the problem comes from the fact that $count is updated per row rather
than per user. Moving the count inside the first if block might be sufficient,
but a full re-write that issues a second query for groups/rights would probably
simplify the coding drastically. The former, I can do myself; the latter, my
PHP skills aren't up to, so I'm putting this out there in case a better
programmer than me wants to take it up. :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to