From: Anil S. <ani...@jb...> - 2006-06-10 16:00:12
|
User: asaldhana Date: 06/06/10 12:00:04 Modified: src/main/org/jboss/test/web/test Tag: Branch_4_0 WebIntegrationUnitTestCase.java Log: JBAS-3279: Test case that tests bypassing of security constraints while using ja cc, with multiple slashes. Revision Changes Path No revision No revision 1.22.2.13 +10 -1 jbosstest/src/main/org/jboss/test/web/test/WebIntegrationUnitTestCase.java (In the diff below, changes in quantity of whitespace are not shown.) Index: WebIntegrationUnitTestCase.java =================================================================== RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/web/test/WebIntegrationUnitTestCase.java,v retrieving revision 1.22.2.12 retrieving revision 1.22.2.13 diff -u -b -r1.22.2.12 -r1.22.2.13 --- WebIntegrationUnitTestCase.java 23 Mar 2006 18:57:59 -0000 1.22.2.12 +++ WebIntegrationUnitTestCase.java 10 Jun 2006 16:00:04 -0000 1.22.2.13 @@ -45,7 +45,7 @@ with a role of 'AuthorizedUser' in the servlet container. @author Sco...@jb... - @version $Revision: 1.22.2.12 $ + @version $Revision: 1.22.2.13 $ */ public class WebIntegrationUnitTestCase extends JBossTestCase { @@ -436,6 +436,15 @@ } /** + * JBAS-3279: Authenticated user can bypass declarative role checks for servlets + */ + public void testUnauthorizedAccess() throws Exception + { + URL url = new URL(baseURL+"jbosstest//restricted3//SecureServlet"); + HttpUtils.accessURL(url,REALM, HttpURLConnection.HTTP_FORBIDDEN); + } + + /** * Setup the test suite. */ public static Test suite() throws Exception |