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

REG: PrintToFile is not selected automatically in the print dlg when sec mgr is installed, win32

XMLWordPrintable

    • 2d
    • x86
    • windows_xp

      I am using AWT PrintJob to print a frame. I have set the following parameters in the JobAttributes.
      DialogType.NATIVE
      DestinationType.FILE
      FileName="xx.ps"

      I have installed a security manager and I have given the following permissions through the PolicyTool:

      RuntimePermission - QueuePrintJob
      FilePermission - ALL FILES - ALL PERMISSIONS
      RuntimePermission - SetSecurityManager
      RuntimePermission - CreateSecurityManager

      I am running this application on WinXP - Tiger / Mustang. When the native print dialog comes up, it does not show 'PrintToFile' as selected even though the destination is set to FILE. The PrintToFile option must be selected automatically when destination is set to FILE. This works fine when security Manager is removed.

      This is reproducible only on WinXP since Tiger. Not reproducible on 1.4.2. Reproducible only when security manager is installed.

      Run the attached application. Security Manager is installed by default. Click the Native Dialog button. If you don't see PrintToFile option being selected, the bug is reproduced.
      ###@###.### 2004-11-16 15:33:52 GMT

            jgodinez Jennifer Godinez (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: