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

PrintToFile option is not disabled for flavors that do not support destination

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 5.0
    • client-libs
    • 2d
    • b130
    • sparc
    • solaris_9

      Destination attribute is supported only for Pageable and Printable flavors and not supported for other doc flavors on Solaris / Linux with CUPS enabled. This must be validated inside the print dialog code and PrintToFile checkbox must be disabled for all the doc flavors that do not support destination. Typically it must be shown as enabled only when printing using pageable or printable doc flavors.

      Currently in the PrintDialog code, I think the validation is done against isAttributeCategorySupported() which still returns true because Pageable and Printable supports it. But print dialog is shown specific to a doc flavor and a print service (selected one) and hence must validate the attribute against the chosen doc flavor. Please see the evaluation of 4994334 for more information.

      This is reproducible on Tiger-beta2-b51 on Solaris / Linux platforms with CUPS enabled and not reproducible on Win32.

      I have attached a sample test which would print a JPEG image through the doc flavor INPUT_STREAM.JPEG. Execute the test. You would see a print dialog. If the 'PrintToFile' option is enabled, the bug is reproduced.
      --------------------------------------------------------------------------------
      This is reproducible with INPUT_STREAM.POSTSCRIPT on Solaris with CUPS. When CUPS is enabled on solaris, destination attribute is not supported for POSTSCRIPT flavor but still print dialog shows 'PrintToFile' option as enabled.
      On Win32 / Solaris9 (without CUPS), Destination is supported for POSTSCRIPT flavor.

      ###@###.### 2004-05-25

            psadhukhan Prasanta Sadhukhan
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: