Last modified: 2012-07-11 19:12:02 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 T40133, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38133 - Uploading Illegal file names breaks app
Uploading Illegal file names breaks app
Status: RESOLVED FIXED
Product: WikiLoves Monuments Mobile
Classification: Unclassified
Upload (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-03 01:10 UTC by Jon
Modified: 2012-07-11 19:12 UTC (History)
0 users

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


Attachments

Description Jon 2012-07-03 01:10:49 UTC
Click on Denmark and choose the second monument. Try and upload an image. This fails and freezes the screen:

From the log file:

D/CordovaLog(22469): Filename is Frihedsstøtten, København 1341277274569
D/CordovaLog(22469): file:///android_asset/www/js/app.js: Line 157 : Filename is Frihedsstøtten, København 1341277274569
D/CordovaLog(22469): Code = 200
D/CordovaLog(22469): file:///android_asset/www/js/api.js: Line 102 : Code = 200
D/CordovaLog(22469): Response = {"servedby":"srv193","error":{"code":"illegal-filename","info":"The filename is not allowed","filename":"Frihedsst\ufffdtten, K\ufffdbenhavn 1341277274569","filekey":"10oob7ji1brc.ep3f88.19016.jpg","sessionkey":"10oob7ji1brc.ep3f88.19016.jpg","invalidparameter":"filename"}}
D/CordovaLog(22469): file:///android_asset/www/js/api.js: Line 103 : Response = {"servedby":"srv193","error":{"code":"illegal-filename","info":"The filename is not allowed","filename":"Frihedsst\ufffdtten, K\ufffdbenhavn 1341277274569","filekey":"10oob7ji1brc.ep3f88.19016.jpg","sessionkey":"10oob7ji1brc.ep3f88.19016.jpg","invalidparameter":"filename"}}
D/CordovaLog(22469): Sent = 199720
D/CordovaLog(22469): file:///android_asset/www/js/api.js: Line 104 : Sent = 199720
D/CordovaLog(22469): Error in success callback: FileTransfer3 = TypeError: Cannot read property 'result' of undefined
D/CordovaLog(22469): file:///android_asset/www/android/cordova-1.8.1.js: Line 254 : Error in success callback: FileTransfer3 = TypeError: Cannot read property 'result' of undefined
Comment 1 Brion Vibber 2012-07-03 17:49:52 UTC
  Filename is Frihedsstøtten, København 1341277274569
  ->
  "Frihedsst\ufffdtten, K\ufffdbenhavn 1341277274569"

Looks like we're losing UTF-8 encoding somewhere along the way in Cordova's FileTransfer widget. :(
Comment 2 Brion Vibber 2012-07-03 18:07:46 UTC
https://issues.apache.org/jira/browse/CB-920 sounds related. There's a fix in Cordova 1.9; if necessary I can steal this for our modified class with progress. ;)

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


Navigation
Links