tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1067797 - /tomcat/trunk/java/org/apache/catalina/valves/CrawlerSessionManagerValve.java
Date Sun, 06 Feb 2011 22:56:22 GMT
Author: markt
Date: Sun Feb  6 22:56:22 2011
New Revision: 1067797

URL: http://svn.apache.org/viewvc?rev=1067797&view=rev
Log:
Test a quick hack to get this working with Jira

Modified:
    tomcat/trunk/java/org/apache/catalina/valves/CrawlerSessionManagerValve.java

Modified: tomcat/trunk/java/org/apache/catalina/valves/CrawlerSessionManagerValve.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/CrawlerSessionManagerValve.java?rev=1067797&r1=1067796&r2=1067797&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/valves/CrawlerSessionManagerValve.java (original)
+++ tomcat/trunk/java/org/apache/catalina/valves/CrawlerSessionManagerValve.java Sun Feb 
6 22:56:22 2011
@@ -25,6 +25,7 @@ import java.util.concurrent.ConcurrentHa
 import java.util.regex.Pattern;
 
 import javax.servlet.ServletException;
+import javax.servlet.http.Cookie;
 import javax.servlet.http.HttpSession;
 
 import org.apache.catalina.LifecycleException;
@@ -150,7 +151,9 @@ public class CrawlerSessionManagerValve 
                 sessionInfo = uaIpSessionInfo.get(clientIp);
                 if (sessionInfo != null) {
                     request.setRequestedSessionId(sessionInfo.getSessionId());
-
+                    // Hack for testing with Jira
+                    request.addCookie(new Cookie("JSESSIONID",
+                            sessionInfo.getSessionId()));
                     if (log.isDebugEnabled()) {
                         log.debug(request.hashCode() +
                                 ": SessionID=" + sessionInfo.getSessionId());



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message