Issue Details (XML | Word | Printable)

Key: DERBY-1273
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Kathey Marsden
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

Sysinfo should print a better message when it gets Security Exceptions accessing classpath info when run under security manager

Created: 02/May/06 10:39 AM   Updated: 25/Jan/07 08:36 PM
Return to search
Component/s: Tools
Affects Version/s: 10.2.1.6
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works derby-1273-v2.diff 2006-05-05 02:35 PM Andrew McIntyre 4 kB
File Licensed for inclusion in ASF works DERBY-1273.diff 2006-05-05 07:51 AM Andrew McIntyre 1 kB
Issue Links:
Reference
 

Urgency: Low


 Description  « Hide
If sysinfo does not have getProtectionDomain privileges it cannot get some information during classpath handling.
When this occurs it prints Java Security Exceptions in the output e.g.

JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
[C:\bryan\src\derby\main\trunk\jars\sane\derby.jar] 10.2.0.0 alpha - (398049M)
[C:\bryan\src\derby\main\trunk\jars\sane\derbytools.jar] 10.2.0.0 alpha - (398049M)
[C:\bryan\src\derby\main\trunk\jars\sane\derbynet.jar] 10.2.0.0 alpha - (398049M)
[C:\bryan\src\derby\main\trunk\jars\sane\derbyclient.jar] 10.2.0.0 alpha - (398049M)
[Unable to access Protection Domain or Code Source for class class com.ibm.db2.jcc.DB2Driver: access denied (java.lang.RuntimePermission getProtectionDomain)] 2.4 - (17)
[C:\bryan\src\derby\main\trunk\jars\sane\db2jcc_license_c.jar] 2.4 - (17)
[Java Security Exception: access denied (java.io.FilePermission c:\bryan\src\derby\main\trunk\tools\java\jakarta-oro-2.0.8.jar read)]
[Java Security Exception: access denied (java.io.FilePermission c:\bryan\src\derby\main\trunk\tools\java\junit.jar read)]

See DERBY-1229 notes.html for a complete explanation of the output.

I am actually not sure what information is actually missing from sysinfo in this case but I think it would be better if sysinfo just printed the classpath and then printed a generic warning with the information that it was not able to report rather than printing the Security exceptions explicitly.

This would be especially helpful for NetworkServerControl sysinfo because users are always encouraged to run network server in security manager.







 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Andrew McIntyre made changes - 05/May/06 07:51 AM
Field Original Value New Value
Attachment DERBY-1273.diff [ 12326282 ]
Andrew McIntyre made changes - 05/May/06 02:35 PM
Attachment derby-1273-v2.diff [ 12326295 ]
Andrew McIntyre made changes - 01/Jul/06 11:04 AM
Assignee Andrew McIntyre [ fuzzylogic ]
Andrew McIntyre made changes - 01/Jul/06 11:04 AM
Fix Version/s 10.2.0.0 [ 11187 ]
Rick Hillegas made changes - 28/Jul/06 10:26 PM
Urgency Low
Andrew McIntyre made changes - 09/Aug/06 06:41 AM
Link This issue relates to DERBY-668 [ DERBY-668 ]
Andrew McIntyre made changes - 09/Aug/06 06:49 AM
Assignee Andrew McIntyre [ fuzzylogic ]
Rick Hillegas made changes - 19/Sep/06 03:25 PM
Fix Version/s 10.2.2.0 [ 12312027 ]
Fix Version/s 10.2.1.0 [ 11187 ]
Rick Hillegas made changes - 06/Dec/06 02:53 PM
Fix Version/s 10.2.2.0 [ 12312027 ]
Fix Version/s 10.2.3.0 [ 12312215 ]
Andrew McIntyre made changes - 25/Jan/07 08:36 PM
Fix Version/s 10.2.3.0 [ 12312215 ]