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

       Web browser: ---
             Bug #: 32300
           Summary: LocalFile::getFileKey() undefined method while
                    uploading
           Product: MediaWiki
           Version: 1.18
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Uploading
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


Some combination of parameters causes this error in production:

    Call to undefined method LocalFile::getFileKey() in
/usr/local/apache/common-local/php-1.18/includes/api/ApiUpload.php on line 155

Aaron Schulz investigated the backtrace in production, and it goes something
like this:

PHP Notice:  Upload stash bug:
    * UploadFromStash.php line 105 calls wfBacktrace()
    * ApiUpload.php line 150 calls UploadFromStash->stashFile()
    * ApiUpload.php line 174 calls ApiUpload->performStash()
    * ApiUpload.php line 97 calls ApiUpload->dieRecoverableError()
    * ApiMain.php line 692 calls ApiUpload->execute()
    * ApiMain.php line 358 calls ApiMain->executeAction()
    * ApiMain.php line 342 calls ApiMain->executeActionWithErrorHandling()

Not sure exactly what the params are but it's as if we have parameters
corresponding to a regular upload (like 'file') *and* an UploadFromStash
('filekey'). But that's supposed to be impossible, given the API restrictions.

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