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

selected printertray is ignored under linux

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • Resolved In Build:
      b135
    • CPU:
      x86
    • OS:
      linux

      Description

      FULL PRODUCT VERSION :
      java version "1.5.0_04"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
      Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)


      ADDITIONAL OS VERSION INFORMATION :
      Linux XXXXX 2.6.11.4-21.7-default #1 Thu Jun 2 14:23:14 UTC 2005 i686 i686 i386 GNU/Linux


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      SuSE 9.3 with CUPS

      A DESCRIPTION OF THE PROBLEM :
      If you select a printer tray to print to, it is ignored under Linux. It seems to always print to the standard tray.

      This is working well under win32.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Select a tray e.g. "Manual Feeder" by picking the right object from printService.getSupportedAttributeValues(Media.class, null, null).
      Now add it to a PrintRequestAttributeSet attributes.

      Then do something like:

      HashDocAttributeSet docAttrs = new HashDocAttributeSet();
      DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PAGEABLE;
      Doc simpleDoc=new SimpleDoc((Object)pageable,flavor,docAttrs);

      DocPrintJob docPrintJob=printService.createPrintJob();
      docPrintJob.print(simpleDoc, attributes);


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Print to the selected tray.
      ACTUAL -
      Java prints to the standard tray.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      none found

        Issue Links

          Activity

          Hide
          jgodinez Jennifer Godinez (Inactive) added a comment -
          BT2:EVALUATION

          Sent e-mail to submitter requesting the following information:
          1. What printer was used? Where did you get the driver from? (example, came with CUPS, used ESP Print Pro, etc)

          2. Output of attached program which lists all supported attributes.
          Show
          jgodinez Jennifer Godinez (Inactive) added a comment - BT2:EVALUATION Sent e-mail to submitter requesting the following information: 1. What printer was used? Where did you get the driver from? (example, came with CUPS, used ESP Print Pro, etc) 2. Output of attached program which lists all supported attributes.
          Hide
          jgodinez Jennifer Godinez (Inactive) added a comment -
          BT2:EVALUATION

          Reproduced in Linux system. Removing incomplete status.
          Show
          jgodinez Jennifer Godinez (Inactive) added a comment - BT2:EVALUATION Reproduced in Linux system. Removing incomplete status.
          Hide
          psadhukhan Prasanta Sadhukhan added a comment -
          lpr command needs "-o InputSlot=<trayname>" to select the printertray which was not being passed to lpr command.
          Proposed fix added InputSlot option to lpr command to select the printertray.
          Show
          psadhukhan Prasanta Sadhukhan added a comment - lpr command needs "-o InputSlot=<trayname>" to select the printertray which was not being passed to lpr command. Proposed fix added InputSlot option to lpr command to select the printertray.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/145d979bb1fb
          User: psadhukhan
          Date: 2016-08-30 05:38:15 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/145d979bb1fb User: psadhukhan Date: 2016-08-30 05:38:15 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/145d979bb1fb
          User: lana
          Date: 2016-09-07 20:26:15 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/145d979bb1fb User: lana Date: 2016-09-07 20:26:15 +0000

            People

            • Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              prr Philip Race
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: