Last modified: 2013-09-04 11:47:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34194, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32194 - stacktrace during api upload
stacktrace during api upload
Status: RESOLVED DUPLICATE of bug 32204
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.17.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-03 23:34 UTC by Mark A. Hershberger
Modified: 2013-09-04 11:47 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mark A. Hershberger 2011-11-03 23:34:43 UTC

    
Comment 1 Bryan Tong Minh 2011-11-04 08:33:09 UTC
?
Comment 2 Mark A. Hershberger 2011-11-05 02:42:30 UTC
With the basic config changed to include:

    $wgEnableUploads = true;
    $wgGroupPermissions['*']['upload'] = true;
    $wgGroupPermissions['*']['reupload'] = true;
    $wgGroupPermissions['*']['reupload-shared'] = true;
    $wgGroupPermissions['*']['upload_by_url'] = true;
    $wgAllowCopyUploads = true;

    $wgShowExceptionDetails = true;

Both 1.17 and 1.18 give the following backtrace:

    <?xml version="1.0"?><p>Internal error in ApiFormatXml::recXmlPrint: (allowed, ...) has integer keys without _element value. Use ApiResult::setIndexedTagName().</p><p>Backtrace:</p><p>#0 /home/mah/work/code/mediawiki/1.18/phase3/includes/api/ApiBase.php(1241): wfDebugDieBacktrace('Internal error ...')<br />
    #1 /home/mah/work/code/mediawiki/1.18/phase3/includes/api/ApiFormatXml.php(156): ApiBase::dieDebug('ApiFormatXml::r...', '(allowed, ...) ...')<br />
    #2 /home/mah/work/code/mediawiki/1.18/phase3/includes/api/ApiFormatXml.php(171): ApiFormatXml::recXmlPrint('allowed', Array, NULL)<br />
    #3 /home/mah/work/code/mediawiki/1.18/phase3/includes/api/ApiFormatXml.php(171): ApiFormatXml::recXmlPrint('error', Array, NULL)<br />
    #4 /home/mah/work/code/mediawiki/1.18/phase3/includes/api/ApiFormatXml.php(81): ApiFormatXml::recXmlPrint('api', Array, NULL, false)<br />
    #5 /home/mah/work/code/mediawiki/1.18/phase3/includes/api/ApiMain.php(722): ApiFormatXml-&gt;execute()<br />
    #6 /home/mah/work/code/mediawiki/1.18/phase3/includes/api/ApiMain.php(387): ApiMain-&gt;printResult(true)<br />
    #7 /home/mah/work/code/mediawiki/1.18/phase3/includes/api/ApiMain.php(342): ApiMain-&gt;executeActionWithErrorHandling()<br />
    #8 /home/mah/work/code/mediawiki/1.18/phase3/api.php(115): ApiMain-&gt;execute()<br />
    #9 {main}</p>

for the following api request:

 "filename" = robots.txt
 "url"      = http://en.wikipedia.org/robots.txt
Comment 3 Mark A. Hershberger 2011-11-05 02:45:42 UTC

*** This bug has been marked as a duplicate of bug 32204 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links