Last modified: 2012-07-01 18:59:27 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 T33777, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31777 - Upload unknown error ``fileexists-forbidden''"
Upload unknown error ``fileexists-forbidden''"
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-10-17 13:40 UTC by Smallman
Modified: 2012-07-01 18:59 UTC (History)
10 users (show)

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


Attachments
the upload request (1.67 KB, text/plain)
2011-10-17 13:40 UTC, Smallman
Details

Description Smallman 2011-10-17 13:40:15 UTC
Created attachment 9246 [details]
the upload request

When uploading a copy of an image to its filename on the commons, I got the following response:

?xml version="1.0"?><api servedby="mw69"><error code="unknownerror" info="Unknown error: ``fileexists-forbidden&#039;&#039;" filekey="102lku9iniz8.mnvurj.1695519.gif" sessionkey="102lku9iniz8.mnvurj.1695519.gif" invalidparameter="filename" /></api>

Why is this an unkown error..and why does it give invalidparameter="filename"?
Comment 1 db [inactive,noenotif] 2012-01-14 22:52:16 UTC
UploadBase::checkOverwrite gives this as error and the gui is than showing the message with the key 'fileexists-forbidden' and the parameter, but the api does not know this key in the ApiBase::$messageMap and than the key error is unknown.
Comment 2 db [inactive,noenotif] 2012-01-14 22:57:46 UTC
Also: fileexists-shared-forbidden with $1
Comment 3 Neil Kandalgaonkar 2012-01-24 02:01:46 UTC
I'm assuming that you were using UploadWizard?

How were you able to upload an image to the same filename? It should have thrown an error on the filename alone before you were able to upload it.

In any case, the use case of "uploading over existing filename" is a common practice on Commons, but it's very weird and unintuitive to others, the vast majority of cases are people mistakenly uploading over an existing filename. 

So if you need to reupload, go to the image page in question, and do it from there.
Comment 4 Bawolff (Brian Wolff) 2012-01-24 02:07:55 UTC
I don't think we should necessarily assume all uses of uploading via API is upload wizard related - There could be third party people using the API to upload stuff, potentially using it to upload over same file name.
Comment 5 Neil Kandalgaonkar 2012-01-24 02:15:34 UTC
(In reply to comment #4)
> I don't think we should necessarily assume all uses of uploading via API is
> upload wizard related - There could be third party people using the API to
> upload stuff, potentially using it to upload over same file name.

You're right, I misread it. Sorry.
Comment 6 Umherirrender 2012-06-17 20:34:16 UTC
a patch commited with Gerrit change #11800
Comment 7 Umherirrender 2012-07-01 18:59:27 UTC
successfully merged

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


Navigation
Links