-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
5.0
-
x86
-
windows_xp
I am using AWT PrintJob to print a frame. I have set the following parameters in the JobAttributes.
DialogType.NATIVE
DestinationType.FILE
FileName="xx.ps"
I have installed a security manager and I have given the following permissions through the PolicyTool:
RuntimePermission - QueuePrintJob
FilePermission - ALL FILES - ALL PERMISSIONS
RuntimePermission - SetSecurityManager
RuntimePermission - CreateSecurityManager
I am running this application on WinXP - Tiger / Mustang. When the native print dialog comes up, it does not show 'PrintToFile' as selected even though the destination is set to FILE. The PrintToFile option must be selected automatically when destination is set to FILE. This works fine when security Manager is removed.
This is reproducible only on WinXP since Tiger. Not reproducible on 1.4.2. Reproducible only when security manager is installed.
Run the attached application. Security Manager is installed by default. Click the Native Dialog button. If you don't see PrintToFile option being selected, the bug is reproduced.
###@###.### 2004-11-16 15:33:52 GMT
DialogType.NATIVE
DestinationType.FILE
FileName="xx.ps"
I have installed a security manager and I have given the following permissions through the PolicyTool:
RuntimePermission - QueuePrintJob
FilePermission - ALL FILES - ALL PERMISSIONS
RuntimePermission - SetSecurityManager
RuntimePermission - CreateSecurityManager
I am running this application on WinXP - Tiger / Mustang. When the native print dialog comes up, it does not show 'PrintToFile' as selected even though the destination is set to FILE. The PrintToFile option must be selected automatically when destination is set to FILE. This works fine when security Manager is removed.
This is reproducible only on WinXP since Tiger. Not reproducible on 1.4.2. Reproducible only when security manager is installed.
Run the attached application. Security Manager is installed by default. Click the Native Dialog button. If you don't see PrintToFile option being selected, the bug is reproduced.
###@###.### 2004-11-16 15:33:52 GMT
- duplicates
-
JDK-6195901 Printing to File throws SecurityException when user.dir permission is not given
-
- Closed
-
- relates to
-
JDK-4919712 (spec) File.toURI throws undocumented SecurityException
-
- Resolved
-