https://bugzilla.wikimedia.org/show_bug.cgi?id=73200
Bug ID: 73200
Summary: http-bad-status - 403 Forbidden when trying to upload
file from tools.wikimedia.pl by URL to Commons
Product: MediaWiki
Version: 1.25-git
Hardware: All
URL: https://commons.wikimedia.org/w/api.php?action=upload&
format=json
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Uploading
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected]
Blocks: 72897
Web browser: ---
Mobile Platform: ---
I just tried to upload
http://tools.wikimedia.pl/~odder/whitehouse/41d5129de542285b6c62.webm
using https://commons.wikimedia.org/wiki/Special:Upload as well as via API
(I have "upload_by_url" userright enabled).
Request URL:
https://commons.wikimedia.org/w/api.php?action=upload&format=json
POST data from API sandbox:
filename=Test%20test.webm&comment=Test%20bug%2072897&url=http%3A%2F%2Ftools.wikimedia.pl%2F~odder%2Fwhitehouse%2F41d5129de542285b6c62.webm&token=d27ea41fb633146835d1a2d1e962f37e545f9bd9%2B%5C
Result:
{
"servedby": "mw1139",
"error": {
"code": "http-bad-status",
"info": "Error fetching file from remote source",
"0": "403",
"1": "Forbidden",
"*": "See https://commons.wikimedia.org/w/api.php for API usage"
}
}
Log entry on the tools.wikimedia.pl server:
tools.wikimedia.pl 208.80.xxx.yyy - - [09/Nov/2014:18:03:30 +0100] "GET
/~odder/whitehouse/41d5129de542285b6c62.webm HTTP/1.1" 200 932365538 "-"
"MediaWiki/1.25wmf6"
so MediaWiki gets 200 from the origin server
--
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