You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by rh...@apache.org on 2007/11/28 19:35:17 UTC
svn commit: r599085 -
/db/derby/code/branches/10.3/java/drda/org/apache/derby/drda/NetworkServerControl.java
Author: rhillegas
Date: Wed Nov 28 10:35:09 2007
New Revision: 599085
URL: http://svn.apache.org/viewvc?rev=599085&view=rev
Log:
DERBY-3083: Revert 597131.
Modified:
db/derby/code/branches/10.3/java/drda/org/apache/derby/drda/NetworkServerControl.java
Modified: db/derby/code/branches/10.3/java/drda/org/apache/derby/drda/NetworkServerControl.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.3/java/drda/org/apache/derby/drda/NetworkServerControl.java?rev=599085&r1=599084&r2=599085&view=diff
==============================================================================
--- db/derby/code/branches/10.3/java/drda/org/apache/derby/drda/NetworkServerControl.java (original)
+++ db/derby/code/branches/10.3/java/drda/org/apache/derby/drda/NetworkServerControl.java Wed Nov 28 10:35:09 2007
@@ -545,7 +545,6 @@
* <li>The command must be "start".</li>
* <li>The customer didn't specify the -noSecurityManager flag on the startup command
* line.</li>
- * <li>Classes live in the jar files which we expect..</li>
* </ul>
*/
private static boolean needsSecurityManager( NetworkServerControlImpl server, int command )
@@ -555,28 +554,10 @@
(
(System.getSecurityManager() == null) &&
(command == NetworkServerControlImpl.COMMAND_START) &&
- (!server.runningUnsecure()) &&
- (packagingLooksGood())
+ (!server.runningUnsecure())
);
}
- /**
- * Return true if the server lives in the expected jar file. This
- * is meant to address DERBY-3083. We expect that the URL of
- * the jar which contains NetworkServerControl will end with the
- * string "derbynet.jar". If this is true, then getCodeSourcePrefix()
- * will return a prefix which can be substituted into the default
- * server policy file and so end up granting permissions to the server jar file.
- */
- private static boolean packagingLooksGood()
- throws Exception
- {
- String derbyNetURL = NetworkServerControl.class.getProtectionDomain().getCodeSource().getLocation().toExternalForm();
-
- return derbyNetURL.endsWith( DERBYNET_JAR );
- }
-
-
/**
* Verify that all prerequisites are met before bringing up a security
* manager. See DERBY-2196. If prerequisites aren't met, raise an