Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7023095

deployJava.getJREs returns 1.5.0 for iOS devices (iPad, iPhone)

XMLWordPrintable

    • b134
    • x86
    • generic
    • Not verified

      FULL PRODUCT VERSION :
      Using current version of Java deployment toolkit at http://java.com/js/deployJava.txt as of 28 feb 2011

      ADDITIONAL OS VERSION INFORMATION :
      iPad running iOS 4.2.1

      A DESCRIPTION OF THE PROBLEM :
      The Java Deployment Toolkit returns "1.5.0" as installed Java version on iOS devices like an iPad or iPhone. It would be nice if this is the case but until then reporting Java erroneously as installed throws off our own JavaScript which relies on a correct outcome of deployJava

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      with iPad 4.2.1 or iPhone 4.2.1 visit
      <!DOCTYPE html>
      <html>
        <script src="http://java.com/js/deployJava.js"/>
        <script>alert(deployJava.getJREs()); alert(deployJava.versionCheck('1.5.0'));</script>
      </html>

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      deployJava.getJREs should return an empty array and versionCheck('1.5.0') should return false
      ACTUAL -
      getJREs returns a single-item array "1.5.0"
      versionCheck("1.5.0") returns true

      REPRODUCIBILITY :
      This bug can be reproduced often.

      CUSTOMER SUBMITTED WORKAROUND :
      Manually check for iOS in the user agent and if found, not use the Sun/Oracle supplied deployment toolkit

            herrick Andy Herrick (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: