Last modified: 2011-07-19 03:18:45 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 T25338, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23338 - Request allowance of "AndroidDownloadManager" UserAgent
Request allowance of "AndroidDownloadManager" UserAgent
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-27 22:25 UTC by Jon Davis
Modified: 2011-07-19 03:18 UTC (History)
2 users (show)

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


Attachments

Description Jon Davis 2010-04-27 22:25:31 UTC
If you visit visit any Wikimedia site on an Android phone, it works fine as it sends along a proper useragent ( " Mozilla/5.0 (Linux; U; Android 2.1-update1; en-us; Nexus One Build/EPE54B) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17" for example). 

Unfortunately, if you try to save an image (for instance from Commons to use as a wallpaper"), the Android browser switches to it's "Download Manager" which presents the user agent simply as "AndroidDownloadManager".  Currently, this is not allowed (I presume because it isn't the standard "Mozilla/X (ABC)") by the proxies and receives a summary 403.

It would be really nice if this were enabled please.

===== Packet Capture Log =======
HEAD /wikipedia/commons/5/50/KyotoAutumn.jpg HTTP/1.1
Host: upload.wikimedia.org:80
Connection: Keep-Alive

HTTP/1.0 200 OK
Content-Type: image/jpeg
Last-Modified: Sat, 08 Oct 2005 06:13:04 GMT
Content-Length: 801002
Accept-Ranges: bytes
Server: Sun-Java-System-Web-Server/7.0
Date: Mon, 26 Apr 2010 08:15:46 GMT
ETag: "c38ea-43476370"
Age: 136611
X-Cache: HIT from sq84.wikimedia.org
X-Cache-Lookup: HIT from sq84.wikimedia.org:3128
X-Cache: MISS from sq53.wikimedia.org
X-Cache-Lookup: MISS from sq53.wikimedia.org:80
Connection: keep-alive

GET /wikipedia/commons/5/50/KyotoAutumn.jpg HTTP/1.1
Host: upload.wikimedia.org:80
Connection: Keep-Alive
User-Agent: AndroidDownloadManager

HTTP/1.0 403 Forbidden
Server: squid/2.7.STABLE7
Date: Tue, 27 Apr 2010 22:12:38 GMT
Content-Type: text/html
Content-Length: 1144
X-Squid-Error: ERR_ACCESS_DENIED 0
X-Cache: MISS from sq44.wikimedia.org
X-Cache-Lookup: NONE from sq44.wikimedia.org:80
Connection: close
Comment 1 Jon Davis 2010-04-27 22:37:00 UTC
I've also filled a bug with Android in the hopes of getting them to follow the defacto standard (if that is indeed the issue here).  But I don't hold out any hopes that this will get fixed any time remotely soon on their side.

http://code.google.com/p/android/issues/detail?id=8005
Comment 2 Jon Davis 2010-04-27 22:45:44 UTC
I stand corrected.  The formatting isn't the issue.  It is "AndroidDownloadManager" that is specifically blocked.  I can use "Android Hi" or "ThisIsATest" and those work.  

So... Can this please be unblocked?
Comment 3 Tim Starling 2010-04-27 22:47:43 UTC
Should work now.
Comment 4 Jon Davis 2010-04-28 17:23:24 UTC
It continues to give access denied.
Comment 5 Brion Vibber 2011-07-18 23:58:52 UTC
Working for me now; the rejected requests may have still been in cache or some such.

Jon, do test to confirm and reopen if problems continue.
Comment 6 Jon Davis 2011-07-19 03:18:45 UTC
Works for me now.

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


Navigation
Links