I'm spinning up on using Network Server with the default security manager and have found an inconsistency in policy file syntax in the Derby documents. The example policy files in the Developers Guide differ from the example in the Server and Admin guide.

From what I've read the syntax in the Server and Admin guide is correct for referring to a local files:
 SYNTAX:   grant codeBase "file:d:/derby/lib/-"
I've been using this syntax and know it works but see in the Spec this syntax:
    grant codeBase "file:/${java.home}/lib/ext/"

The Developers guide shows double slashes, almost like it were a URL or Windows network reference:
  SYNTAX:    grant codeBase "file://f:/derby/lib/derby.jar"

Does anyone which is correct or if there are valid reasons for the variations in a codeBase declaration?.

Here are the pages I am referring to:

http://db.apache.org/derby/docs/10.1/devguide/rdevcsecure871406.html
http://db.apache.org/derby/docs/10.1/devguide/rdevcsecure871422.html
http://db.apache.org/derby/docs/10.1/devguide/rdevcsecure871439.html

http://db.apache.org/derby/docs/10.1/adminguide/tadminnetservrun.html


Reply via email to