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

       Web browser: ---
             Bug #: 30369
           Summary: No way of knowing how many '|'-separated values some
                    parameters can take
           Product: MediaWiki
           Version: 1.17
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
    Classification: Unclassified


Some API Modules like action=query offer parameters that take multiple values
separated by '|'. But for a bot class, there is no way of knowing how many
values are allowed and when sending more than the limit, there might be no way
of knowing how many have been rejected in some cases.
For example, you want to export revisions, you would call something like
"api.php?action=query&revids=1|2|3|4|...|1000|1001&export", trying to request
1001 revisions to be exported, you would end up with only 50 or 500 (depending
on whether you are a bot/sysop or whatever) without even knowing it.
The only clue, the API will give you is a warning tag within the result. The
information given there doesn't really provied machine friendly semantics
though. Its just:
  <warnings>
    <query xml:space="preserve">Too many values supplied for parameter
'revids': the limit is 50</query>
  </warnings>
There should be some more machine friendly information provided to check
whether the request must be sent in little portions or not. Pretty much like
the query-continue tag when running into result limitations.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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