Page MenuHomePhabricator

illegally named upload files not handled consistently.
Closed, InvalidPublic

Description

Author: mfeldman

Description:
A co-worker uploaded a file (from a Windows PC to a Linux Server) with a "+" in its name. Now when you try to access that file it says

"no file by this name ["plus sign replaced with a space"] exists, but you can upload it".

However, when you try to upload it again, it says "already present"!

I would suggest that mediawiki either prevent the upload of files with illegal names, or treat them consistently after they have been uploaded.


Version: 1.16.x
Severity: minor
OS: Linux

Details

Reference
bz27980

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:28 PM
bzimport set Reference to bz27980.
bzimport added a subscriber: Unknown Object (MLST).

I think this might be an issue with your webserver/rewrite rules or something like that. + is allowed in titles (although should be encoded as %2B ).

If you change the url to replace + sign with %2B (or replace the underscore with %2B if it got converted to an underscore) does it work. If you include an image in a page with [[image:NameWith+Sign.png]] (use a literal + there), does it work?

Lowering priority till we can get this confirmed as a MW problem and not a config problem.

(In reply to comment #2)

Lowering priority till we can get this confirmed as a MW problem and not a
config problem.

Note, can't be that much of a mediawiki problem given that things like [[commons:File:U+2160.gif]] works fine.

WFM per comment 3. Please re-open if the problem still exists, and it doesnt appear to be a config issue.

mfeldman wrote:

I understand (3-1/2 years and several version later) that this is a somewhat obscure issue, and low priority. However:

UX perspective - If a user of Mediawiki enters a file name through one part of the Mediawiki UI, and gets "file does not exist", then enters the same file name through a different part of the Mediawiki UI, and gets "file already present"

...how can this possibly *not* be considered a Mediawiki issue?

No reply to question in T29980#323727; closing as incomplete for the time being. Feel free to reopen if this still happens in a supported version.