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

UnixPrintServiceLookup should not require file permission

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 1.1, 1.4.2_04, 5.0
    • client-libs
    • None
    • 2d
    • b26
    • generic, sparc
    • solaris_9

        PrinterJob.getPrintService() will always return null in the sandbox
         (solaris only)

        This is because in UnixPrintServiceLookup.java, method execCmd, it tries
        to execute lpstat to find out the available print service on the system,
        and redirects the lpstat output to a temp file created with
        File.createTempFile.

        But File.createTempFile will fail in the sandbox because we don't have
        permissions to create file on the local system. So all the lookup on
        print service will return null.

              jgodinez Jennifer Godinez (Inactive)
              ngthomas Thomas Ng (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: