~ubuntu-branches/ubuntu/precise/jetty/precise-updates

« back to all changes in this revision

Viewing changes to contrib/terracotta/src/test/java/org/mortbay/terracotta/servlet/LocalSessionScavengingTest.java

  • Committer: Bazaar Package Importer
  • Author(s): Niels Thykier
  • Date: 2009-10-23 20:45:43 UTC
  • mfrom: (1.1.6 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20091023204543-3c4pyw0dhqq4qloh
Tags: 6.1.21-1
* New upstream release.
* Stopped using /tmp/jetty-temp in /etc/init.d/jetty for security
  reasons.
  - JVM_TMP is now /var/cache/jetty/tmp
  - JETTY_TMP is now /var/cache/jetty/data
* The postrm script no longer deletes files in /tmp/jetty-temp.
* Removed Philipp Meier from Uploaders (last upload was 2006-06-07).
  Thanks for your work on this package.
* Corrected javadoc symlink in binary package jetty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import java.io.IOException;
18
18
import java.util.Random;
19
 
 
20
19
import javax.servlet.ServletException;
21
20
import javax.servlet.http.HttpServlet;
22
21
import javax.servlet.http.HttpServletRequest;
30
29
import org.testng.annotations.Test;
31
30
 
32
31
/**
33
 
 * @version $Revision: 1319 $ $Date: 2008-11-14 00:55:54 +0100 (Fr, 14. Nov 2008) $
 
32
 * @version $Revision: 1645 $ $Date: 2009-09-15 12:31:07 +0200 (Tue, 15 Sep 2009) $
34
33
 */
35
34
public class LocalSessionScavengingTest
36
35
{
72
71
                    assert exchange1.getResponseStatus() == HttpServletResponse.SC_OK;
73
72
                    String sessionCookie = exchange1.getResponseFields().getStringField("Set-Cookie");
74
73
                    assert sessionCookie != null;
 
74
                    // Mangle the cookie, replacing Path with $Path, etc.
 
75
                    sessionCookie = sessionCookie.replaceFirst("(\\W)(P|p)ath=", "$1\\$Path=");
75
76
 
76
77
                    // Be sure the session is also present in node2
77
78
                    ContentExchange exchange2 = new ContentExchange(true);