https://bugzilla.wikimedia.org/show_bug.cgi?id=41190
--- Comment #10 from Jesús Martínez Novo <[email protected]> 2012-10-19 18:06:04 UTC --- Created attachment 11208 --> https://bugzilla.wikimedia.org/attachment.cgi?id=11208 Simple HTML form to upload a file through the api (targets Wikimedia Commons) to demonstrate the bug I've successfully created a simple form that targets the API of WikiMedia commons and provides all the required fields to upload a file for testing this bug. STEPS TO REPRODUCE: Each parameter is an input, you need to fill the token (a handy link on the html is included to get one) and the file you want to upload. I've prefilled the target title with the same title provided by Smallman but with a PNG extension, so choose a random PNG filename for upload (It's easier to create a PNG file rather than a PDF one). I've included the "stash" parameter to prevent the file from actually being uploaded to Commons. It's sufficient to see the results, so please leave this parameter checked ;) ACTUAL RESULTS This is the response with ignorewarnings unchecked: <upload result="Warning" filekey="10xx8haqtku8.von8i.46251.png" sessionkey="10xx8haqtku8.von8i.46251.png"> <warnings badfilename="74(Gerald_Ford_Library)(1554461).png" /> </upload> This is the response with ignorewarnings checked: <upload result="Success" filekey="10xx8s87hzog.f41ttt.46251.png" sessionkey="10xx8s87hzog.f41ttt.46251.png"> <warnings badfilename="74(Gerald_Ford_Library)(1554461).png" /> <imageinfo timestamp="2012-10-19T18:01:14Z" user="" userid="" anon="" size="80" width="11" height="11" parsedcomment="" comment="" url="http://commons.wikimedia.org/wiki/Special:UploadStash/file/10xx8s87hzog.f41ttt.46251.png" descriptionurl="http://commons.wikimedia.org/wiki/Special:UploadStash/file/10xx8s87hzog.f41ttt.46251.png" sha1="23d8e32905b6d3f4a2b89124c60db0c4bf64ac4d" mime="image/png" mediatype="UNKNOWN" bitdepth="0"> <metadata> <metadata name="frameCount" value="0" /> <metadata name="loopCount" value="1" /> <metadata name="duration" value="0" /> <metadata name="bitDepth" value="8" /> <metadata name="colorType" value="truecolour" /> <metadata name="metadata"> <value> <metadata name="_MW_PNG_VERSION" value="1" /> </value> </metadata> </metadata> </imageinfo> </upload> As you can see, <warnings badfilename="74(Gerald_Ford_Library)(1554461).png" /> doesn't match the original filename, which should be "Gerald Ford Papers- Final Issues for Decision, Army Corps of Engineers- 12/4/74(Gerald Ford Library)(1554461).png" and maybe the slashes converted to underscores or whatever, but the filename gets truncated instead. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
