db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kathey Marsden <kmarsdende...@sbcglobal.net>
Subject Server tracing not allowed with default security manager policy file
Date Tue, 25 Sep 2007 16:07:00 GMT
I noticed that server side tracing, setting
derby.drda.traceAll=true
is not allowed with the default network server policy file.  Was this an 
intentional change in behaviour or is it a bug?

Thanks

Kathey


[C:/kmarsden/repro/DERBY-3085] java TestBlob
Access denied (java.io.FilePermission Server1.trace write)
java.security.AccessControlException: Access denied 
(java.io.FilePermission Server1.trace write)
        at 
java.security.AccessController.checkPermission(AccessController.java:104)
        at 
java.lang.SecurityManager.checkPermission(SecurityManager.java:547)
        at java.lang.SecurityManager.checkWrite(SecurityManager.java:977)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:195)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:96)
        at java.io.FileWriter.<init>(FileWriter.java:69)
        at 
org.apache.derby.impl.drda.DssTrace.startComBufferTrace(DssTrace.java:170)
        at org.apache.derby.impl.drda.Session.initTrace(Session.java:137)
        at org.apache.derby.impl.drda.Session.initialize(Session.java:257)
        at org.apache.derby.impl.drda.Session.<init>(Session.java:94)
        at 
org.apache.derby.impl.drda.NetworkServerControlImpl.addSession(NetworkServerControlImpl.java:3673)
        at org.apache.derby.impl.drda.ClientThread.run(ClientThread.java:80)



Mime
View raw message