Author: markt Date: Wed Oct 29 20:05:34 2014 New Revision: 1635288 URL: http://svn.apache.org/r1635288 Log: Avoid using /tmp as a docBase where it is not necessary
Modified: tomcat/trunk/test/org/apache/tomcat/util/http/CookiesBaseTest.java tomcat/trunk/test/org/apache/tomcat/util/http/TestBug49158.java tomcat/trunk/test/org/apache/tomcat/util/http/TestCookieProcessorGenerationHttp.java Modified: tomcat/trunk/test/org/apache/tomcat/util/http/CookiesBaseTest.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/http/CookiesBaseTest.java?rev=1635288&r1=1635287&r2=1635288&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/tomcat/util/http/CookiesBaseTest.java (original) +++ tomcat/trunk/test/org/apache/tomcat/util/http/CookiesBaseTest.java Wed Oct 29 20:05:34 2014 @@ -68,9 +68,8 @@ public abstract class CookiesBaseTest ex public static void addServlets(Tomcat tomcat) { - // Must have a real docBase - just use temp - Context ctx = - tomcat.addContext("", System.getProperty("java.io.tmpdir")); + // No file system docBase required + Context ctx = tomcat.addContext("", null); Tomcat.addServlet(ctx, "invalid", new CookieServlet("na;me", "value")); ctx.addServletMapping("/invalid", "invalid"); Modified: tomcat/trunk/test/org/apache/tomcat/util/http/TestBug49158.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/http/TestBug49158.java?rev=1635288&r1=1635287&r2=1635288&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/tomcat/util/http/TestBug49158.java (original) +++ tomcat/trunk/test/org/apache/tomcat/util/http/TestBug49158.java Wed Oct 29 20:05:34 2014 @@ -60,9 +60,8 @@ public class TestBug49158 extends Cookie } public static void addServlets(Tomcat tomcat) { - // Must have a real docBase - just use temp - Context ctx = - tomcat.addContext("", System.getProperty("java.io.tmpdir")); + // No file system docBase required + Context ctx = tomcat.addContext("", null); Tomcat.addServlet(ctx, path, new TestBug49158Servlet()); ctx.addServletMapping("/"+path, path); Modified: tomcat/trunk/test/org/apache/tomcat/util/http/TestCookieProcessorGenerationHttp.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/http/TestCookieProcessorGenerationHttp.java?rev=1635288&r1=1635287&r2=1635288&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/tomcat/util/http/TestCookieProcessorGenerationHttp.java (original) +++ tomcat/trunk/test/org/apache/tomcat/util/http/TestCookieProcessorGenerationHttp.java Wed Oct 29 20:05:34 2014 @@ -41,8 +41,8 @@ public class TestCookieProcessorGenerati @Test public void testUtf8CookieValue() throws Exception { Tomcat tomcat = getTomcatInstance(); - // Must have a real docBase - just use temp - Context ctx = tomcat.addContext("", System.getProperty("java.io.tmpdir")); + // No file system docBase required + Context ctx = tomcat.addContext("", null); ctx.setCookieProcessor(new Rfc6265CookieProcessor()); Tomcat.addServlet(ctx, "test", new CookieServlet("\u0120")); ctx.addServletMapping("/test", "test"); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org