-
Bug
-
Resolution: Fixed
-
P4
-
1.3.0
-
b117
-
generic
-
generic
PrinterJob.getUserName() is supposed to return the current user name of the system. This method does not document any exception. But when SecurityManager is installed, this method throws a security exception when PropertyPermission - user.name is not given in the policy file. But this is not documented anywhere and hence the user will not know until he gets the exception. This must be documented.
This is reproducible on all platforms since 1.3.
Make sure you have a policy file with a 'QueuePrintJob' permission. Run the attached test. If you see an AccessControlException on the console asking for user.name permission, the bug is reproduced.
###@###.### 2004-11-18 11:52:09 GMT
This is reproducible on all platforms since 1.3.
Make sure you have a policy file with a 'QueuePrintJob' permission. Run the attached test. If you see an AccessControlException on the console asking for user.name permission, the bug is reproduced.
###@###.### 2004-11-18 11:52:09 GMT