Issue 122875 - Test of mobile recognition: Android user-agent not recognized
Summary: Test of mobile recognition: Android user-agent not recognized
Status: CLOSED FIXED
Alias: None
Product: Infrastructure
Classification: Infrastructure
Component: Downloads (show other issues)
Version: current
Hardware: All All
: P3 Normal (vote)
Target Milestone: ---
Assignee: Marcus
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-28 14:53 UTC by Andrea Pescetti
Modified: 2013-07-28 20:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andrea Pescetti 2013-07-28 14:53:56 UTC
The mobile-test download page still offers Linux 32-bit for the following Android user-agent (it's the standard browser app):

http://ooo-site.staging.apache.org/download/test/index.html

Mozilla/5.0 (Linux; U; Android 2.3.3; it-it; GT-I9100 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

Analyze says:

http://ooo-site.staging.apache.org/download/test/analyze.html

Browser variables Values
navigator.appCodeName Mozilla
navigator.appName Netscape
navigator.app Version5.0 (Linux; U; Android 2.3.3; it-it; GT-I9100 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
navigator.platform Linux armv7l
navigator.oscpu undefined
navigator.product Gecko
navigator.productSub 20030107
navigator.vendor Google Inc.
navigator.vendorSub
navigator.language en
navigator.browserLanguage undefined
navigator.userLanguage undefined
navigator.systemLanguage undefined
navigator.userAgent Mozilla/5.0 (Linux; U; Android 2.3.3; it-it; GT-I9100 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1

JavaScript functions/variables Values
Language name English (US)
Language ISO code en-US
Language array data en-US,English (US),English (US),y,http://www.openoffice.org/download/other.html
UI Platform name Linux 32-Bit (RPM)
Mirror platform name Linux_x86_install-rpm
File name Apache_OpenOffice_4.0.0_Linux_x86_install-rpm_en-US.tar.gz
File extension .tar.gz
Checksum file (here for MD5) http://www.apache.org/dist/openoffice/4.0.0/binaries/en-US/Apache_OpenOffice_4.0.0_Linux_x86_install-rpm_en-US.tar.gz.md5
hasMirrorLink() true
getLink() http://sourceforge.net/projects/openofficeorg.mirror/files/4.0.0/binaries/en-US/Apache_OpenOffice_4.0.0_Linux_x86_install-rpm_en-US.tar.gz/download
Comment 1 SVN Robot 2013-07-28 18:13:35 UTC
"marcus" committed SVN revision 1507824 into ooo-site/trunk/content/download:
#122875# Android was recognized as support platform, reported by Andrea Pescetti
Comment 2 Marcus 2013-07-28 18:27:47 UTC
Ha, great find. :-)

The problem is that first Linux is recognized as *supported* platform. After that Android is recognized as *not support* platform. That caused the mixed shown string and URL.

I've changed the recognition logic. Now it should be stated that Android is no a supported platform and it should link to the "other.html".

Please test again and give me feedback.
Comment 3 Andrea Pescetti 2013-07-28 20:14:53 UTC
Yes, it's fixed now.