Last modified: 2014-10-11 14:48: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 T24015, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22015 - clarify upload by URL failure message for HTTP error codes 401, 403 and 404
clarify upload by URL failure message for HTTP error codes 401, 403 and 404
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: design
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-04 21:45 UTC by Derk-Jan Hartman
Modified: 2014-10-11 14:48 UTC (History)
4 users (show)

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


Attachments

Description Derk-Jan Hartman 2010-01-04 21:45:47 UTC
When a URL is not accessible for upload-by-url, you get:

Upload warning
An HTTP error occured: HTTP/1.0 403 Forbidden

The latter in big red letters. That error is not particularly userfriendly. First it does not state WHERE the HTTP error occurred. Nor does it explain very well the consequence of the error.

Something like

Upload warning:
File could not be retrieved from url 'theurl', because (server does not allow it|missing file|unreachable server|whatever)
Please try to download the file yourself and then upload the file from your own computer, instead of using the url to upload.

anything more momproof than "HTTP/1.0 403 Forbidden" will do however :D
Comment 1 Chad H. 2010-01-04 22:24:52 UTC
Cf bug 18202.
Comment 2 Bryan Tong Minh 2010-01-04 22:30:36 UTC
Needs wfMsgExt( 'some-upload-error-message', 'parse', $status->getWikiText() ) in SpecialUpload line 376
Comment 3 Bryan Tong Minh 2010-04-15 08:45:16 UTC
Fixed in r65043.
Comment 4 Bryan Tong Minh 2010-04-15 10:27:47 UTC
I seem to have confused two bugs within similar scope. I think that revision actually fixes bug 18234, not this one.
Comment 5 Bryan Tong Minh 2011-05-15 13:06:03 UTC
We probably only need to handle the common ones, 401, 403 and 404. 404 is easy: "The file at $url could not be found". Can't think of something appropriate for the other ones though.

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


Navigation
Links