Last modified: 2014-10-28 08:52:44 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 T73704, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71704 - trim trailing dots/whitespace in filename
trim trailing dots/whitespace in filename
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Tony Thomas
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-06 14:29 UTC by herzi.pinki
Modified: 2014-10-28 08:52 UTC (History)
8 users (show)

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


Attachments

Description herzi.pinki 2014-10-06 14:29:39 UTC
It happens that users enter a filename ending with a dot (e.g. https://commons.wikimedia.org/wiki/File:Der_Extra-Fuss_bei_Rubens..jpg) and the Upload Wizard adds the extension (e.g. .jpg) with jet another dot. This will end up in file names containing two consecutive dots (e.g. Der_Extra-Fuss_bei_Rubens..jpg). As this does not make much sense, and is not intended (as I assume), the UW should trim trailing dots before appending the extension.

Same for trailing whitespaces in filenames. I do not find an example right now, but it is in my mind that I have seen filenames differing only in a space before the extension, like 'x.jpg' and 'x .jpg'. Which is quite ugly. Can you please check if that is still the case.
Comment 1 Gerrit Notification Bot 2014-10-28 08:52:41 UTC
Change 169326 had a related patch set uploaded by 01tonythomas:
Trim trailing dots in UploadWizard filename

https://gerrit.wikimedia.org/r/169326

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


Navigation
Links