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

strange results of lookupPrintService for ipps device

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 8, 9
    • client-libs
    • None
    • unix

    • 2d

      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.

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

              Created:
              Updated:
              Resolved: