Last modified: 2014-09-22 20:23:39 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 T48054, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46054 - Uploading many short file names fails
Uploading many short file names fails
Status: RESOLVED WONTFIX
Product: Commons App
Classification: Unclassified
Android (Other open bugs)
unspecified
All All
: Low normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-13 03:24 UTC by Sage Ross
Modified: 2014-09-22 20:23 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: Android 4.2.x
Assignee Huggle Beta Tester: ---


Attachments

Description Sage Ross 2013-03-13 03:24:54 UTC
With a current nightly build, I tried uploading files with these names, and they all failed (after reaching 100% uploaded):

wat
huh?
wat¿
b...
b....
....b
b....b

The following filenames did not fail:
B.bbb
.scream
Wat?.m.m.m.m.
Beer
Nooo!
Huh huh huh?
Wat wat wat
watwatwat

(Perhaps the pattern is, it needs more than three non-punctuation characters in the title?)

That was all earlier today. As of right now, every upload I start from the app fails immediately (before uploading), and sending an file to the app via intents causes a crash immediately upload pressing Upload.
Comment 1 MZMcBride 2013-03-13 03:42:58 UTC
Perhaps related to <https://commons.wikimedia.org/wiki/MediaWiki:Titleblacklist>?
Comment 2 Sam Reed (reedy) 2013-03-13 04:55:26 UTC
(In reply to comment #1)
> Perhaps related to
> <https://commons.wikimedia.org/wiki/MediaWiki:Titleblacklist>?

Seems very likely
Comment 3 Yuvi Panda 2013-03-13 08:50:56 UTC
Unsure how to fix the titleblacklist issue. But the crash issue should be fixed with 10b7a97f6699841027eb60cc7609bff2fea2a720
Comment 4 Sage Ross 2013-03-13 13:28:24 UTC
Yes, probably the blacklist. The app itself should do a very basic check (is the title long enough?) and then blacklist failures should return a more specific message than "Failed" (and should not permit retry with the same name).
Comment 5 Brion Vibber 2013-03-13 17:41:57 UTC
You should get back different error codes for the upload system saying your name is too short and for TitleBlacklist rejecting the title...

UploadBase::getTitle() does the check on the extension, and returns a specific error which should come back as 'filename-tooshort'.
Comment 6 Brion Vibber 2013-04-02 21:48:25 UTC
Did this get resolved after appending explicit file extensions or is it still happening?
Comment 7 Yuvi Panda 2013-04-03 14:36:56 UTC
It's mostly title blacklist / other blacklists, rather than extensions
Comment 8 Dan Garry 2014-09-22 20:23:39 UTC
As the Mobile Apps Team is focussing on the new, native Wikipedia app, the Commons app is no longer being maintained by the Wikimedia Foundation. I am WONTFIXing all open Commons app bugs to reflect that we will not be spending time fixing them.

For the full story, see this thread on mobile-l: https://lists.wikimedia.org/pipermail/mobile-l/2014-September/thread.html#7974

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


Navigation
Links