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

           Summary: Empty lists are shown as null
           Product: MediaWiki
           Version: 1.15-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: API
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Empty lists as output from many modules are shown as null rather than as an
empty tag.

Reported at
<http://lists.wikimedia.org/pipermail/wikitech-l/2009-February/041534.html>

Test case:
<http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&rcend=0>

Expected XML:

<api>
  <query>
    <recentchanges />
  </query>
</api>

Expected JSON:

{
        "query": {
                "recentchanges": [
                ]
        }
}

Actual XML:

<api>
  <query recentchanges="" />
</api>

Actual JSON:

{
        "query": {
                "recentchanges": null
        }
}


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
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