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

different behavior among 1.3.1, 1.4.2 and tiger-b63 in Java plug-in for PrintJob

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 1.3.1_16
    • Component/s: deploy
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b02
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      We found the different behavior among 1.3.1, 1.4.2 and tiger-b63
      in Java plug-in for PrintJob class.

      A security exception appears both in 1.4.2_05 and tiger-b63,
      but not in 1.3.1_13.

      java.lang.SecurityException: checkPrintJobAccess
          at sun.plugin.security.ActivatorSecurityManager.showPrintDialogImpl(Unknown Source)
          at sun.plugin.security.ActivatorSecurityManager.access$000(Unknown Source)
          at sun.plugin.security.ActivatorSecurityManager$1.execute(Unknown Source)
          at sun.plugin.util.PluginSysUtil$SysExecutionThread.run(Unknown Source)


      REPRODUCE :
        1) Compile the attached java program.
            ( I did in 1.3.1_11)
        2) Open the attached html by IE
               The applet like the attached jpg file will shows up..
        3) Click the "print" button.
                Warning dialogue shows up.
        4) Click the "cancel " button in the dialogue.

      Both in 1.4.2_05 and tiger-b63, a security exception occurs.
      However, in 1.3.1_13, security exception does not occur and
      the page setting dialogue shows up next.

      CONFIGURATION :
        OS : Windows XP ( SP1, Japanese )
        MPU : Pentium IV 1.4[GHz]
        IE : IE 6.0 (SP1)
        JRE : 1.3.1_13/1.4.2_05/tiger-b63

      REQUEST:
        To clarify which behaviors of versions is correct, in 1.4.2 or in 1.3.1 ?

      ===============================================================================================

        Attachments

          Activity

            People

            • Assignee:
              coffeys Sean Coffey
              Reporter:
              tbaba Tadayuki Baba (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: