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

REG:Passing destination to attrib set makes orientation disabled on CUPS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • client-libs
    • 2d
    • x86
    • linux_sun

      I am using a INPUT_STREAM.JPEG flavor alongwith Orientation and Destination attributes on CUPS. I am adding the destination, orientation attributes to the attribute set and passing it to the ServiceUI.printDialog() method. On CUPS, destination is not supported for the above doc falvor. So I expect Destination to remain disabled on the print dialog. But when I run it, the Orientation attribute values are getting disabled in the print dialog and not the 'PrintToFile' checkbox. Orientation is in fact supported by the print service for the above doc flavor. It occurs only when I pass the attributes upfront. It does not happen when I choose 'PrintToFile' in the print dialog after it is shown.

      This is reproducible from Tiger-b46 to current mustang build on Solaris and Linux, with CUPS. Not reproducible on Non-CUPS and win32. Not reproducible on Tiger-beta-b32d. So I think this is introduced somewhere in between Tiger-b32d and b46.

      I have attached a sample test. Execute it as follows.
      java MerlinPrintDialogTest [dest]
      passing 'dest' string will add 'destination' attribute to the attribute set. If nothing is passed, destination attrib will not be added. So pass 'dest' and run the test. A print dialog would come up. Check the values of Orientation. If it remains disabled the bug is reproduced.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: