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

strange results of lookupPrintService for ipps device

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8, 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None
    • Environment:

      unix

    • Subcomponent:
      2d

      Description

      I have a machine (incidentally with Ubuntu Linux) reporting 2 devices by lpstat -v:
      device for XEROX-WorkCentre-4250-_xxxx: ipps://stt-mac-13.local:631/printers/XEROX_WorkCentre_4250__xxxx_
      device for Xerox_by_3031: socket://xx.xx.xx.xx:9100

      Now, if I'm calling
      PrintServiceLookup.lookupPrintServices(DocFlavor.SERVICE_FORMATTED.PAGEABLE, null)
      I'm getting only one service (with the second printer). Apparently ipps: protocol is not supported in details so there's no attributes available.

      What is more interesting, if I call
      PrintServiceLookup.lookupPrintServices(null,null)
      there are 3 services reported, not 2: an extra one for that ipps printer.

      This is behavior of both jdk8 and 9: I cannot compile my test with 7 but expect perhaps the same after its adaptation.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psadhukhan Prasanta Sadhukhan
              Reporter:
              yan Yuri Nesterenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: