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

           Summary: API error when using both prop=pageprops and
                    prop=info&inprop=displaytitle
           Product: MediaWiki
           Version: 1.18-svn
          Platform: All
               URL: http://en.wikipedia.org/w/api.php?format=jsonfm&action
                    =query&prop=info|pageprops&titles=IPad&inprop=displayt
                    itle
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: normal
          Priority: Normal
         Component: API
        AssignedTo: roan.katt...@gmail.com
        ReportedBy: b-jor...@alum.northwestern.edu
                CC: bryan.tongm...@gmail.com, s...@reedyboy.net,
                    vasi...@gmail.com, soxre...@gmail.com


Created attachment 8155
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=8155
Mentioned patch

Quite simply, both prop=pageprops and prop=info&inprop=displaytitle try to set
"displaytitle" on the returned node: internal_api_error_MWException"
info="Exception Caught: Internal error in ApiResult::setElement: Attempting to
merge element 25970423

Pageprops should probably have been made to store its values in a subnode, like
prop=categoryinfo and basically everything else does to prevent this sort of
naming conflict. For example,
      <page pageid="25970423" ns="0" title="IPad">
        <pageprops defaultsort="Ipad" displaytitle="iPad" />
      </page>

It's a really easy (but breaking) change to do that. I don't know what a good
solution would be without introducing a breaking change, especially since it's
possible similar conflicts could arise with other page props.

-- 
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