Last modified: 2014-02-12 17:58:40 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 T32924, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30924 - Error uploading file [via API] with underscore in name
Error uploading file [via API] with underscore in name
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
unspecified
PC Windows 7
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
aklapper-moreinfo
: testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-16 02:25 UTC by marklarcher
Modified: 2014-02-12 17:58 UTC (History)
8 users (show)

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


Attachments

Description marklarcher 2011-09-16 02:25:23 UTC
When I tried to upload the file

Subtended_ Angle subtended by line curve and arc.svg

I got the error..
“Unknown error: "unknown-warning"”
The reason turned out to be the underscore in the name, but I would have easily thought the problem was with the file and ended up giving up.

I suspect that it wouldn't be to difficult to identify that the problem is with the name and point that out to the user.

Also, the software use to accept underscores.

Thanks for your time and good work.

Dave
Comment 1 p858snake 2011-09-16 02:26:32 UTC
Where did you try to upload this? your own wiki or on commons (using the upload wizard)?
Comment 2 Mark A. Hershberger 2011-09-16 17:15:37 UTC
Adding testme keyword to try and get more info
Comment 3 Derk-Jan Hartman 2012-08-14 08:38:14 UTC
Possibly related to bug 39303
Comment 4 Valerie Juarez 2012-11-27 06:24:04 UTC
Using Firefox 12.0 on http://test2.wikipedia.org/wiki/Special:UploadWizard I was able to upload a file with an underscore in the file name. The published file's name replaces the underscore with a space. I was not able to upload a file using IE, but I don't think it has to do with this issue.

Below are the steps I took:
I created an image file in paint and named it "waving_person.png".
At http://test2.wikipedia.org/wiki/Special:UploadWizard
-I passed through the tutorial
-Selected 'Select a media file to donate'
-Navigated to the image "waving_person.png"
-Selected the image in the window and pressed 'Open'
-The image successfully uploaded.
-I selected 'Continue'
-Selected the 'This file is my own work' copyright and pressed 'Next'
-I added a description and published the file
-The filename changed to "Waving person.png"

I attempted to upload another file with an underscore in the file name on IE 9.0, but the upload got stuck at the "Getting file information and previews" part of the upload. I tried uploading a file without an underscore in the file name, but it still got stuck, so I do not think the problem is related to this issue. I will investigate this problem.
Comment 5 Andre Klapper 2012-11-27 19:52:33 UTC
Valerie: Interesting findings with UploadWizard, thanks.

This report is about the "traditional" upload interface which will be replaced by UploadWizard in the long run, so it's interesting to see that the problem likely won't exist anymore once we've completely switched to UploadWizard.

For the IE issues that you face with UploadWizard you could file a bug report against product "MediaWiki extensions" and component "UploadWizard" once you've tracked them down a bit and after checking if a report already exists. 
Could be also interesting to mention whether you use IE's "compatibility mode".
Comment 6 Bawolff (Brian Wolff) 2012-11-28 18:11:01 UTC
(In reply to comment #5)
> Valerie: Interesting findings with UploadWizard, thanks.
> 
> This report is about the "traditional" upload interface which will be replaced
> by UploadWizard in the long run, so it's interesting to see that the problem
> likely won't exist anymore once we've completely switched to UploadWizard.

I doubt its about the traditional upload form. “Unknown error: "unknown-warning"” Is an API error, which the traditional upload form does not use.
Comment 7 Brad Jorsch 2012-11-28 18:29:57 UTC
I note that the filename in the original report has both an underscore and a space, which might be important in reproducing the error.

At first glance, I don't know where "unknown-warning" might be coming from. I only see that in the UploadWizard code, but I don't think the UploadWizard extension affects API uploads at all. Or is this UploadWizard-related and not API-related?
Comment 8 Andre Klapper 2013-04-25 09:58:58 UTC
marklarcher: Could you please answer the open questions in this report, and clarify how exactly you tried to upload?
Comment 9 Andre Klapper 2014-02-12 17:58:40 UTC
Unfortunately closing this report as no further information has been provided.

marklarcher: Please feel free to reopen this report if you can provide the information asked for and if this still happens. Thanks!

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


Navigation
Links