Last modified: 2014-06-06 03:58:17 UTC
With the following config: $wgGroupPermissions['*']['upload'] = true; $wgGroupPermissions['*']['reupload'] = true; $wgGroupPermissions['*']['reupload-shared'] = true; $wgGroupPermissions['*']['upload_by_url'] = true; $wgAllowCopyUploads = true; $wgShowExceptionDetails = true; attempting a upload-by-url fails with the following params: filename=robots.txt url=http://en.wikipedia.org/robots.txt The backtrace is returned is: <?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 .../includes/api/ApiBase.php(1242): wfDebugDieBacktrace('Internal error ...')<br /> #1 .../includes/api/ApiFormatXml.php(160): ApiBase::dieDebug('ApiFormatXml::r...', '(allowed, ...) ...')<br /> #2 .../includes/api/ApiFormatXml.php(175): ApiFormatXml::recXmlPrint('allowed', Array, NULL)<br /> #3 .../includes/api/ApiFormatXml.php(175): ApiFormatXml::recXmlPrint('error', Array, NULL)<br /> #4 .../includes/api/ApiFormatXml.php(85): ApiFormatXml::recXmlPrint('api', Array, NULL, false)<br /> #5 .../includes/api/ApiMain.php(737): ApiFormatXml->execute()<br /> #6 .../includes/api/ApiMain.php(392): ApiMain->printResult(true)<br /> #7 .../includes/api/ApiMain.php(347): ApiMain->executeActionWithErrorHandling()<br /> #8 .../api.php(117): ApiMain->execute()<br /> #9 {main}</p>
Please include a minimal script or command-line to reproduce to the error.
*** Bug 32194 has been marked as a duplicate of this bug. ***
I think this has been fixed. I can't repro after after svn upping.
I am able to see this error on master.
(In reply to comment #4) > I am able to see this error on master. Can you include the the request params to reproduce? Or the stacktrace? Url upload for txt in the first description gives code=filetype-banned, info=Filetype not permitted: txt, filetype=txt Works for jpg from commons to localhost