[jboss-cvs] JBossAS SVN: r64250 - branches/Branch_4_2/testsuite/src/main/org/jboss/test/web/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jul 24 11:38:39 EDT 2007


Author: dimitris at jboss.org
Date: 2007-07-24 11:38:39 -0400 (Tue, 24 Jul 2007)
New Revision: 64250

Modified:
   branches/Branch_4_2/testsuite/src/main/org/jboss/test/web/test/RemoteClassloadingServiceUnitTestCase.java
Log:
JBAS-4540, don't leak installation directory info through the classloading service. Also use status code 404 instead of 400.

Modified: branches/Branch_4_2/testsuite/src/main/org/jboss/test/web/test/RemoteClassloadingServiceUnitTestCase.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/web/test/RemoteClassloadingServiceUnitTestCase.java	2007-07-24 15:37:59 UTC (rev 64249)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/web/test/RemoteClassloadingServiceUnitTestCase.java	2007-07-24 15:38:39 UTC (rev 64250)
@@ -54,7 +54,7 @@
       HttpMethodBase request = HttpUtils.accessURL(url, null, HttpURLConnection.HTTP_NOT_FOUND);
       String statusText = request.getStatusText();
       
-      if (statusText.indexOf("jboss.jar") > 0)
+      if (statusText.indexOf(".jar") > 0)
          fail("Status text reveals installation directory information: " + statusText);
    }
 }
\ No newline at end of file




More information about the jboss-cvs-commits mailing list