Page MenuHomePhabricator

clarify upload by URL failure message for HTTP error codes 401, 403 and 404
Open, LowPublicFeature

Description

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


Version: unspecified
Severity: enhancement

Details

Reference
bz22015

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:52 PM
bzimport set Reference to bz22015.
bzimport added a subscriber: Unknown Object (MLST).

Bryan.TongMinh wrote:

Needs wfMsgExt( 'some-upload-error-message', 'parse', $status->getWikiText() ) in SpecialUpload line 376

Bryan.TongMinh wrote:

Fixed in r65043.

Bryan.TongMinh wrote:

I seem to have confused two bugs within similar scope. I think that revision actually fixes bug 18234, not this one.

Bryan.TongMinh wrote:

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.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.