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

           Summary: Incomplete site info request gives improperly
                    formatted return
           Product: MediaWiki
           Version: 1.3.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: API
        AssignedTo: roan.katt...@gmail.com
        ReportedBy: m8r-udf...@mailinator.com
                CC: bryan.tongm...@gmail.com, s...@reedyboy.net,
                    vasi...@gmail.com, soxre...@gmail.com


When looking at 

http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop

It returns:

You are looking at the HTML representation of the XML format.
HTML is good for debugging, but probably is not suitable for your application.
See complete documentation, or API help for more information.

<?xml version="1.0"?>
<api />

This is not valid xml. 

What it should return is: (as when you look at
http://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&sipro)

You are looking at the HTML representation of the XML format.
HTML is good for debugging, but probably is not suitable for your application.
See complete documentation, or API help for more information.

<?xml version="1.0"?>
<api>
  <query>
    <general mainpage="Main Page" base="http://en.wikipedia.org/wiki/Main_Page";
sitename="Wikipedia" generator="MediaWiki 1.16alpha-wmf"
phpversion="5.2.4-2ubuntu5.7wm1" phpsapi="apache2handler" dbtype="mysql"
dbversion="5.1.43-wm3193-log" rev="59858" case="first-letter" rights="Creative
Commons Attribution-Share Alike 3.0 Unported" lang="en"
fallback8bitEncoding="windows-1252" writeapi="" timezone="UTC" timeoffset="0"
articlepath="/wiki/$1" scriptpath="/w" script="/w/index.php"
variantarticlepath="" server="http://en.wikipedia.org"; wikiid="enwiki" />
  </query>
</api>

There is a related thread at WP:VPT 
(http://en.wikipedia.org/wiki/Wikipedia:Vpt#API_version)

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to