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

UnixPrintServiceLookup should not require file permission

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.1, 1.4.2_04, 5.0
    • Fix Version/s: 5.0
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
      2d
    • Resolved In Build:
      b26
    • CPU:
      generic, sparc
    • OS:
      solaris_9

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: