JDK-4930594 : UnixPrintServiceLookup should not require file permission
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.1,1.4.2_04,5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_9
  • CPU: generic,sparc
  • Submitted: 2003-09-30
  • Updated: 2003-10-27
  • Resolved: 2003-10-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2_08Fixed
Related Reports
Duplicate :  
Duplicate :  
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.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger tiger-beta FIXED IN: tiger tiger-beta INTEGRATED IN: tiger-b26 tiger-beta
14-06-2004

EVALUATION Need to put doPrivileged block in execCmd that creates the temporary file. ###@###.### 2003-09-30
30-09-2003