DO NOT REPLY [Bug 36983] New: - session problems with cross context webapps

2005-10-10 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36983.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36983

   Summary: session problems with cross context webapps
   Product: Tomcat 5
   Version: 5.5.12
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


I encountered a problem with sessions and cross context calls. Here is a 
scenario:

We have to webapps (webapp1 and webapp2). 
webapp1 is configured with cross contex set to true so it is able to dispatch to
webapp2. 
Now user access webapp1 and webapp2. Two sessions are created for both webapps. 

request.getSession in webapp1 returns session1 
request.getSession in webapp2 returns session2

Problem is during dispatching request from webapp1 to webapp2, because 
request.getSession in webapp2 does not return session2, but only for request
which is dispatched from webapp1. all the following request which are not cross
context again return session2, so session is not lost. 

Tomcat 5.0.x works fine when dispatching cross context requests (two separate
sessions are maintained for each webapp).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r312627 - /tomcat/build/tc5.5.x/build.xml

2005-10-10 Thread funkman
Author: funkman
Date: Mon Oct 10 04:53:41 2005
New Revision: 312627

URL: http://svn.apache.org/viewcvs?rev=312627view=rev
Log:
Remove all cvs dependencies/


Modified:
tomcat/build/tc5.5.x/build.xml

Modified: tomcat/build/tc5.5.x/build.xml
URL: 
http://svn.apache.org/viewcvs/tomcat/build/tc5.5.x/build.xml?rev=312627r1=312626r2=312627view=diff
==
--- tomcat/build/tc5.5.x/build.xml (original)
+++ tomcat/build/tc5.5.x/build.xml Mon Oct 10 04:53:41 2005
@@ -7,7 +7,7 @@
   !-- property values you must customize for successful building!!!--
   property file=${user.home}/build.properties/
   property file=build.properties/
-  
+
   property file=build.properties.default/
 
   !-- Project Properties --
@@ -16,7 +16,7 @@
   property name=version.major value=5 /
   property name=version.minor value=5 /
   property name=version.build value=0 /
-  property name=version.patch value=0 /  
+  property name=version.patch value=0 /
   property name=version   value=5.5.0-dev /
   property name=version.number
value=${version.major}.${version.minor}.${version.build}.${version.patch} /
 
@@ -32,14 +32,11 @@
   property name=jasper.projectvalue=jasper /
   property name=ant.jar   value=${ant.home}/lib/ant.jar/
   property name=ant-launcher.jar  
value=${ant.home}/lib/ant-launcher.jar/
-  property name=cvstagvalue= /
-  property name=cvs.base
-   value=${basedir}/../
 
   !-- Source dependencies --
   property name=api.home
value=${basedir}/../${api.project}/
-  property name=catalina.home 
+  property name=catalina.home
value=${basedir}/../${catalina.project}/
   property name=jasper.home
value=${basedir}/../${jasper.project}/jasper2/
@@ -62,13 +59,13 @@
   property name=webapps.buildvalue=${catalina.home}/webapps/build/
   property name=webapps.dist value=${catalina.home}/webapps/dist/
   property name=tomcat-dbcp.home value=${base.path}/tomcat-deps /
-  property name=tomcat-dbcp.jar 
+  property name=tomcat-dbcp.jar
value=${tomcat-dbcp.home}/naming-factory-dbcp.jar/
   property name=jasper-compiler-jdt.home value=${base.path}/tomcat-deps /
-  property name=jasper-compiler-jdt.jar 
+  property name=jasper-compiler-jdt.jar
value=${jasper-compiler-jdt.home}/jasper-compiler-jdt.jar/
-  
-  !-- Some compilers will disable debugging if true. And it doesn't do 
anything 
+
+  !-- Some compilers will disable debugging if true. And it doesn't do 
anything
in most cases --
   property name=compile.optimize value=false/
   property name=compile.debugvalue=true /
@@ -127,17 +124,11 @@
   srcfiles dir=${jtc.home}/http11/src includes=** /
 /uptodate
 
-uptodate property=admin.build.notrequired 
+uptodate property=admin.build.notrequired
   
targetfile=${tomcat.build}/server/webapps/admin/WEB-INF/web.xml
   srcfiles dir=${catalina.home}/webapps/admin includes=** /
 /uptodate
 
-!--
-uptodate property=commons-daemon.build.notrequired
-  targetfile=${commons-daemon.jar}
-  srcfiles dir=${cvs.base}/jakarta-commons/daemon includes=** /
-/uptodate
---
   /target
 
 
@@ -146,24 +137,24 @@
 copy file=${jsp-api.jar}  todir=${tomcat.build}/common/lib/
 copy file=${servlet-api.jar} todir=${tomcat.build}/common/lib/
 
-copy file=${commons-el.jar} 
+copy file=${commons-el.jar}
   todir=${tomcat.build}/common/lib/
 
-copy todir=${tomcat.build}/bin 
+copy todir=${tomcat.build}/bin
file=${commons-logging-api.jar} /
 
 copy todir=${tomcat.build}/server/lib file=${commons-modeler.jar} /
 
 copy todir=${tomcat.build}/bin file=${commons-daemon.jar} /
-copy todir=${tomcat.build}/bin file=${commons-daemon.jsvc.tar.gz} 
+copy todir=${tomcat.build}/bin file=${commons-daemon.jsvc.tar.gz}
 failonerror=false /
 
 copy tofile=${tomcat.build}/bin/tomcat-native.tar.gz
-   file=${tomcat-native.tar.gz} /
-   
+file=${tomcat-native.tar.gz} /
+
 !-- copy todir=${tomcat.build}/common/lib file=${ant.jar}/
 copy todir=${tomcat.build}/common/lib file=${ant-launcher.jar}/ --
-   copy todir=${tomcat.build}/common/lib 
file=${jasper-compiler-jdt.jar}/
+copy todir=${tomcat.build}/common/lib 
file=${jasper-compiler-jdt.jar}/
   /target
 
   !-- == Build all components === --
@@ -195,7 +186,7 @@
 
   /target
 
-  target name=build-tomcatjk unless=tomcatjk.build.notrequired 
+  target name=build-tomcatjk unless=tomcatjk.build.notrequired
   description=build j-t-c/jk 
 echo== Building: tomcat-jk ${catalina.build} /echo
 
@@ -220,13 +211,13 @@
 
 /ant
 
-   !--
-copy file=${jtc.home}/jk/conf/jk2.properties 
+!--
+copy 

DO NOT REPLY [Bug 36994] New: - httpsession.getId() throws ISE after invalidation

2005-10-10 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36994.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36994

   Summary: httpsession.getId() throws ISE after invalidation
   Product: Tomcat 5
   Version: 5.0.12
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


After a http session is invalidated a call to getId() throws an
IllegalStateException(already invalidated).

I think this doesn't conform to the servlet spec that doesn't say anything about
an ISE in the api doc. All ISEs that can be thrown by the session-methods are
explicit listed.

Beside this it is very essential to have the sessionId at least during
HttpSessionBindingListener.valueUnbound() if this method is called during the
invalidation.
The api doc of valueUnbound() says:
Notifies the object that it is being unbound from a session and identifies the
session.
The session is identified by its Id, but if the Id is not accessible anymore...

The ISE was inserted in Version 5.5.10: excerpt from the changelog:
Re-add patch causing Session.getId to throw an ISE, and make all internal
components use a safe getIdInternal


Thanks
Lars

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 36995] - duplicate session ids

2005-10-10 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=36995.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36995


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2005-10-10 19:58 ---
I hava look inside also inside 5.5.x code (ManagerBase.generateSessionId()) and
think the duplication risk is there. But the risk is small, as random generator
works really good. I have test with Linux Suse 9.3 and have no chance to
reproduce your test result. Can you please send your testscripts and os 
information?

Thanks
Peter 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 35853] - Make JkMount compatible with servlet-mapping/url-pattern in web.xml

2005-10-10 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=35853.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35853


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Component|Connector:JK/AJP|Native:JK
Product|Tomcat 4|Tomcat 5




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat Snapshots

2005-10-10 Thread Henri Yandell
Currently the following CVS modules are snapshotted to
http://cvs.apache.org/snapshots/

jakarta-tomcat jakarta-tomcat-4.0 jakarta-tomcat-5
jakarta-tomcat-catalina jakarta-tomcat-jasper
jakarta-tomcat-connectors jakarta-tools jakarta-watchdog
jakarta-servletapi jakarta-servletapi-4 jakarta-servletapi-5
jakarta-watchdog-4.0

I need to identify the svn match to each one of those to continue the
snapshots going. ie)

jakarta-tomcat-tools  =  tomcat/archive/tools/trunk/

Though I imagine something in archive/ isn't a candidate for snapshotting.

Could you let me know which parts of the tomcat svn directory you'd
like me to set snapshotting up for?

(knowing about the snapshots is a pretty recent thing for me, so it's
still somewhat of an afterthought to a migration)

Hen

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]