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

REG:Cancelling the file dlg does not cancel the print operation when sec manager is installed, win32

XMLWordPrintable

    • 2d
    • b15
    • x86
    • windows_xp
    • Verified

      I have set the dialog type in Job Attributes to Native Dialog and calling Toolkit.getPrintJob() when security manager is installed. I have the following permissions:

      RuntimePermission - QueuePrintJob
      FilePermission - ALL FILES - read,write, execute, delete
      RuntimePermission - SetSecurityManager

      I am running the attached app which would print the frame shown through a native dialog. When the native dialog comes up, I am selecting PrintToFile option and clicking OK. A file dialog appears. I am cancelling the file dialog. But I am surprised to see a valid PrintJob being returned and in fact, the printing operation is carried out successfully. This is incorrect. Cancelling the file dialog must cancel the print operation and a Null PrintJob must be returned.

      This is reproducible only since Tiger and not reproducible on 1.4.2. This is reproducible only on Win32. Reproducible on the current Mustang PIT build (2004-11-15).

      I have attached a sample test. Execute the sample test on WinXP. A Frame would appear. Click on 'Toggle Sec Manager' to install a sec manager. Click on 'Native Dlg' button. A native dialog will appear. Choose PrintToFile option and click OK. When FileDialog appears, cancel the dialog. If you see a Valid PJOB and PrinterGraphics object being printed on the console and if you see a 'DONE' message, the bug is reproduced.
      ###@###.### 2004-11-16 15:09:06 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: