From: <st...@us...> - 2008-02-22 14:41:15
|
Revision: 6035 http://smartfrog.svn.sourceforge.net/smartfrog/?rev=6035&view=rev Author: steve_l Date: 2008-02-22 06:41:14 -0800 (Fri, 22 Feb 2008) Log Message: ----------- SFOS-628 JettySecurityRealmImpl does not use the realm Modified Paths: -------------- trunk/core/components/jetty/src/org/smartfrog/services/jetty/JettySecurityRealmImpl.java trunk/core/components/jetty/test/org/smartfrog/services/www/jetty/test/system/testwar/JettyWarTest.java trunk/core/components/jetty/test/org/smartfrog/services/www/jetty/test/system/testwar/WarSecurityTest.java trunk/core/components/jetty/test/org/smartfrog/services/www/jetty/test/system/testwar/components.sf Modified: trunk/core/components/jetty/src/org/smartfrog/services/jetty/JettySecurityRealmImpl.java =================================================================== --- trunk/core/components/jetty/src/org/smartfrog/services/jetty/JettySecurityRealmImpl.java 2008-02-22 14:40:49 UTC (rev 6034) +++ trunk/core/components/jetty/src/org/smartfrog/services/jetty/JettySecurityRealmImpl.java 2008-02-22 14:41:14 UTC (rev 6035) @@ -105,7 +105,8 @@ mappings[entry] = mapping; } security = new SecurityHandler(); - security.setAuthenticator(new BasicAuthenticator()); + BasicAuthenticator authenticator = new BasicAuthenticator(); + security.setAuthenticator(authenticator); security.setConstraintMappings(mappings); jettyHelper.getServer().addLifeCycle(security); jettyHelper.getServer().addUserRealm(realm); Modified: trunk/core/components/jetty/test/org/smartfrog/services/www/jetty/test/system/testwar/JettyWarTest.java =================================================================== --- trunk/core/components/jetty/test/org/smartfrog/services/www/jetty/test/system/testwar/JettyWarTest.java 2008-02-22 14:40:49 UTC (rev 6034) +++ trunk/core/components/jetty/test/org/smartfrog/services/www/jetty/test/system/testwar/JettyWarTest.java 2008-02-22 14:41:14 UTC (rev 6035) @@ -1,3 +1,34 @@ +/* (C) Copyright 2008 Hewlett-Packard Development Company, LP + +Disclaimer of Warranty + +The Software is provided "AS IS," without a warranty of any kind. ALL +EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, +INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE HEREBY +EXCLUDED. SmartFrog is not a Hewlett-Packard Product. The Software has +not undergone complete testing and may contain errors and defects. It +may not function properly and is subject to change or withdrawal at +any time. The user must assume the entire risk of using the +Software. No support or maintenance is provided with the Software by +Hewlett-Packard. Do not install the Software if you are not accustomed +to using experimental software. + +Limitation of Liability + +TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL HEWLETT-PACKARD +OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR +FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, +HOWEVER CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF +OR RELATED TO THE FURNISHING, PERFORMANCE, OR USE OF THE SOFTWARE, OR +THE INABILITY TO USE THE SOFTWARE, EVEN IF HEWLETT-PACKARD HAS BEEN +ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. FURTHERMORE, SINCE THE +SOFTWARE IS PROVIDED WITHOUT CHARGE, YOU AGREE THAT THERE HAS BEEN NO +BARGAIN MADE FOR ANY ASSUMPTIONS OF LIABILITY OR DAMAGES BY +HEWLETT-PACKARD FOR ANY REASON WHATSOEVER, RELATING TO THE SOFTWARE OR +ITS MEDIA, AND YOU HEREBY WAIVE ANY CLAIM IN THIS REGARD. + +*/ package org.smartfrog.services.www.jetty.test.system.testwar; import org.smartfrog.services.www.jetty.test.system.JettyTestBase; Modified: trunk/core/components/jetty/test/org/smartfrog/services/www/jetty/test/system/testwar/WarSecurityTest.java =================================================================== --- trunk/core/components/jetty/test/org/smartfrog/services/www/jetty/test/system/testwar/WarSecurityTest.java 2008-02-22 14:40:49 UTC (rev 6034) +++ trunk/core/components/jetty/test/org/smartfrog/services/www/jetty/test/system/testwar/WarSecurityTest.java 2008-02-22 14:41:14 UTC (rev 6035) @@ -1,3 +1,34 @@ +/* (C) Copyright 2008 Hewlett-Packard Development Company, LP + +Disclaimer of Warranty + +The Software is provided "AS IS," without a warranty of any kind. ALL +EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, +INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE HEREBY +EXCLUDED. SmartFrog is not a Hewlett-Packard Product. The Software has +not undergone complete testing and may contain errors and defects. It +may not function properly and is subject to change or withdrawal at +any time. The user must assume the entire risk of using the +Software. No support or maintenance is provided with the Software by +Hewlett-Packard. Do not install the Software if you are not accustomed +to using experimental software. + +Limitation of Liability + +TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL HEWLETT-PACKARD +OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR +FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, +HOWEVER CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF +OR RELATED TO THE FURNISHING, PERFORMANCE, OR USE OF THE SOFTWARE, OR +THE INABILITY TO USE THE SOFTWARE, EVEN IF HEWLETT-PACKARD HAS BEEN +ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. FURTHERMORE, SINCE THE +SOFTWARE IS PROVIDED WITHOUT CHARGE, YOU AGREE THAT THERE HAS BEEN NO +BARGAIN MADE FOR ANY ASSUMPTIONS OF LIABILITY OR DAMAGES BY +HEWLETT-PACKARD FOR ANY REASON WHATSOEVER, RELATING TO THE SOFTWARE OR +ITS MEDIA, AND YOU HEREBY WAIVE ANY CLAIM IN THIS REGARD. + +*/ package org.smartfrog.services.www.jetty.test.system.testwar; import org.smartfrog.services.www.jetty.test.system.JettyTestBase; @@ -18,7 +49,7 @@ expectSuccessfulTestRun(FILES, "testSecurity"); } - public void NotestSecurityUnauth() throws Throwable { + public void testSecurityUnauth() throws Throwable { expectSuccessfulTestRun(FILES, "testSecurityUnauth"); } Modified: trunk/core/components/jetty/test/org/smartfrog/services/www/jetty/test/system/testwar/components.sf =================================================================== --- trunk/core/components/jetty/test/org/smartfrog/services/www/jetty/test/system/testwar/components.sf 2008-02-22 14:40:49 UTC (rev 6034) +++ trunk/core/components/jetty/test/org/smartfrog/services/www/jetty/test/system/testwar/components.sf 2008-02-22 14:41:14 UTC (rev 6035) @@ -91,7 +91,7 @@ server LAZY PARENT:server; adminPassword PARENT:ATTRIB password; name "testRealm"; - contextPath PARENT:ATTRIB contextPath; + contextPath PARENT:contextPath; } } @@ -149,6 +149,10 @@ tests extends Sequence { + sleep extends Delay { + time 10000; + } + wait extends waitForPage { //url ( "http://admin:"++password ++ "@localhost:" ++ test.jetty.port.1 ++ contextPath); host "localhost"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |