db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r421448 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/xmlBinding.policy
Date Wed, 12 Jul 2006 22:39:02 GMT
Author: fuzzylogic
Date: Wed Jul 12 15:39:02 2006
New Revision: 421448

URL: http://svn.apache.org/viewvc?rev=421448&view=rev
Log:
DERBY-1507: Add test-specific policy file for lang/xmlBinding.java

Committed for Army Brown <qozinx@sbcglobal.net>

Added:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/xmlBinding.policy
  (with props)

Added: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/xmlBinding.policy
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/xmlBinding.policy?rev=421448&view=auto
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/xmlBinding.policy
(added)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/xmlBinding.policy
Wed Jul 12 15:39:02 2006
@@ -0,0 +1,26 @@
+//
+// Test specific permissions for test:
+// lang/xmlBinding.java
+//
+// This test inserts an XML document into an XML column,
+// which means that Derby will use Xerces to parse the
+// XML document string.  Since the XML document includes
+// a pointer to a schema document (personal.dtd), Xerces
+// will try to read that document--but in order for that
+// to work the Xerces classes need to have read permission
+// on user.dir.   We can't, however, add that permission
+// to the derby_tests.policy file because the Xerces classes
+// could be in a Xerces jar anywhere on the system, or they
+// could be included in the JVM's own jar (ex. IBM 1.4).  And
+// further, when DERBY-567 is fixed the parser that is used
+// could vary from JVM to JVM, so it might not be Xerces but
+// some other parser that needs read permission. So therefore
+// we simply grant read FilePermission on {user.dir} to "all"
+// for this specific test, which covers Xerces and any other
+// potential parsers that might need read permission after
+// DERBY-567 is fixed.
+//
+
+grant {
+  permission java.io.FilePermission "${user.dir}/personal.dtd", "read";
+};

Propchange: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/xmlBinding.policy
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message