Re: mod_jk 1.2.6 release ? - session tracking cookie

2004-07-20 Thread Bill Barker

- Original Message - 
From: Sandy McArthur [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Sent: Monday, July 19, 2004 9:15 PM
Subject: Re: mod_jk 1.2.6 release ? - session tracking cookie


 On Jul 19, 2004, at 8:43 AM, Henri Gomez wrote:
  And since I couldn't delay the release to long, we need a quick reply,
  so thanks to take a look at it.

 We've setup a current CVS checkout of mod_jk at
 http://sp27en1.nerdc.ufl.edu/login.do which is load balancing to our
 webmail cluster. If you constantly reload the page you'll see it's
 setting a new JSESSIONID cookie on every request.


Yup.  Sending the cookie almost always fails to stick.  Sending the
jsessionid via URL-rewriting always sticks.  So it does look like there is a
bug with the lb cookie parsing.  I can't see by looking at the code what it
is however :(.  I can probably find a machine that I can hook up with the
HEAD code and lb to see what is going wrong, but I can't promise when.  If
you feel like putting more work into this, adding 'fprintf(stderr,...)'
statements should go to the Apache error_log.

 For comparison https://webmail.ufl.edu/login.do is using mod_jk 1.2.5
 load balancing to the same webmail cluster.


Yup.  This one will always stick with the cookie.

 Sandy McArthur


This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

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

Re: mod_jk 1.2.6 release ? - session tracking cookie

2004-07-20 Thread Henri Gomez
Bill Barker wrote:
- Original Message - 
From: Sandy McArthur [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Sent: Monday, July 19, 2004 9:15 PM
Subject: Re: mod_jk 1.2.6 release ? - session tracking cookie


On Jul 19, 2004, at 8:43 AM, Henri Gomez wrote:
And since I couldn't delay the release to long, we need a quick reply,
so thanks to take a look at it.
We've setup a current CVS checkout of mod_jk at
http://sp27en1.nerdc.ufl.edu/login.do which is load balancing to our
webmail cluster. If you constantly reload the page you'll see it's
setting a new JSESSIONID cookie on every request.
Could you send us you workers.properties ?
Yup.  Sending the cookie almost always fails to stick.  Sending the
jsessionid via URL-rewriting always sticks.  So it does look like there is a
bug with the lb cookie parsing.  I can't see by looking at the code what it
is however :(.  I can probably find a machine that I can hook up with the
HEAD code and lb to see what is going wrong, but I can't promise when.  If
you feel like putting more work into this, adding 'fprintf(stderr,...)'
statements should go to the Apache error_log.
I've got such settings here, with 2 TC 3.3.2.
Where did you want me put fprint ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: mod_jk 1.2.6 release ? - session tracking cookie

2004-07-20 Thread Sandy McArthur
On Jul 20, 2004, at 5:27 AM, Henri Gomez wrote:
Could you send us you workers.properties ?
attached.


workers.properties
Description: Binary data

If
you feel like putting more work into this, adding 
'fprintf(stderr,...)'
statements should go to the Apache error_log.
Where did you want me put fprint ?
Let us know where you want them and we'll test that code too.
Sandy McArthur

smime.p7s
Description: S/MIME cryptographic signature


Re: mod_jk 1.2.6 release ? - session tracking cookie

2004-07-20 Thread Bill Barker
I was thinking something like attached.

- Original Message -
From: Sandy McArthur [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 7:04 AM
Subject: Re: mod_jk 1.2.6 release ? - session tracking cookie



 On Jul 20, 2004, at 5:27 AM, Henri Gomez wrote:

  Could you send us you workers.properties ?

 attached.









  If
  you feel like putting more work into this, adding
  'fprintf(stderr,...)'
  statements should go to the Apache error_log.
 
  Where did you want me put fprint ?

 Let us know where you want them and we'll test that code too.

 Sandy McArthur

This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

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

Re: mod_jk 1.2.6 release ? - session tracking cookie

2004-07-20 Thread Bill Barker
I see that attachments are still getting stripped from the list :).

The problem is yet-another-typo.  The check for a comma cookie-delimiter
ends up re-setting the returned cookie value to NULL, so the lb thinks that
no cookie was sent.  If this attachment comes through, it's the patch for
it.  I'll commit it later (PST), if nobody else wants it.

- Original Message -
From: Bill Barker [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Sent: Tuesday, July 20, 2004 11:35 AM
Subject: Re: mod_jk 1.2.6 release ? - session tracking cookie


 I was thinking something like attached.

 - Original Message -
 From: Sandy McArthur [EMAIL PROTECTED]
 To: Tomcat Developers List [EMAIL PROTECTED]
 Sent: Tuesday, July 20, 2004 7:04 AM
 Subject: Re: mod_jk 1.2.6 release ? - session tracking cookie


 
  On Jul 20, 2004, at 5:27 AM, Henri Gomez wrote:
 
   Could you send us you workers.properties ?
 
  attached.
 


 --
--
 


 
 
   If
   you feel like putting more work into this, adding
   'fprintf(stderr,...)'
   statements should go to the Apache error_log.
  
   Where did you want me put fprint ?
 
  Let us know where you want them and we'll test that code too.
 
  Sandy McArthur








 This message is intended only for the use of the person(s) listed above as
the intended recipient(s), and may contain information that is PRIVILEGED
and CONFIDENTIAL.  If you are not an intended recipient, you may not read,
copy, or distribute this message or any attachment. If you received this
communication in error, please notify us immediately by e-mail and then
delete all copies of this message and any attachments.

 In addition you should be aware that ordinary (unencrypted) e-mail sent
through the Internet is not secure. Do not send confidential or sensitive
information, such as social security numbers, account numbers, personal
identification numbers and passwords, to us via ordinary (unencrypted)
e-mail.








 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
*** jk_lb_worker.cvsTue Jul 20 11:02:38 2004
--- jk_lb_worker.c  Tue Jul 20 12:09:57 2004
***
*** 139,145 
  if((id_end = strchr(id_start, ';')) != NULL) {
  *id_end = '\0';
  }
! if((id_start = strchr(id_start, ',')) != NULL) {
  *id_end = '\0';
  }
  return id_start;
--- 139,145 
  if((id_end = strchr(id_start, ';')) != NULL) {
  *id_end = '\0';
  }
! if((id_end = strchr(id_start, ',')) != NULL) {
  *id_end = '\0';
  }
  return id_start;

This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

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

Re: mod_jk 1.2.6 release ? - session tracking cookie

2004-07-20 Thread Sandy McArthur
Bill,
Much thanks!
We've tested the fixed get_cookie back-ported to mod_jk 1.2.5 and it 
works well.

We'll deploy that version into production tonight but I don't expect 
any problems. I'll let y'all know if there is.

Sandy
On Jul 20, 2004, at 3:17 PM, Bill Barker wrote:
I see that attachments are still getting stripped from the list :).
The problem is yet-another-typo.  The check for a comma 
cookie-delimiter
ends up re-setting the returned cookie value to NULL, so the lb thinks 
that
no cookie was sent.  If this attachment comes through, it's the patch 
for
it.  I'll commit it later (PST), if nobody else wants it.


smime.p7s
Description: S/MIME cryptographic signature


Re: mod_jk 1.2.6 release ? - session tracking cookie

2004-07-19 Thread Henri Gomez
Sandy McArthur wrote:
Thinking on it more, I think I'm full of it and I was confusing the 
symptoms of two problems that were happening at the same time. Disregard 
my comments below until I can double check myself.

Sandy
On Jul 15, 2004, at 6:01 PM, Sandy McArthur wrote:
On Jul 15, 2004, at 3:05 AM, Henri Gomez wrote:
Could you take the latest code in CVS and check to see if it solve your
problem ?

We took the new get_cookie() implementation from CVS and replaced the 
one in our mod_jk 1.2.5 package and all hell broke loose. The jvmroute 
of the JSESSIONID cookie weren't being respected and users coudn't do 
anything in our load balanced setup because they were getting new 
JSESSIONID cookies on each request.

We reverted very quickly so I didn't get a good chance to debug it. 
Tomorrow we'll test mod_jk from CVS to make sure it wasn't a problem 
with the new get_cookie() in the 1.2.5 version.

I've manually followed the new get_cookie() code and it looks right to 
me but I'm nervous about it for now.

I'd like to know if anyone else has had success with the new 
get_cookie() in a load balanced setup.
I'm waiting for your reply to tag and make jk 1.2.6 release.
Regards
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: mod_jk 1.2.6 release ? - session tracking cookie

2004-07-19 Thread Sandy McArthur
On Jul 19, 2004, at 4:06 AM, Henri Gomez wrote:
Sandy McArthur wrote:
Thinking on it more, I think I'm full of it and I was confusing the 
symptoms of two problems that were happening at the same time. 
Disregard my comments below until I can double check myself.
Sandy
On Jul 15, 2004, at 6:01 PM, Sandy McArthur wrote:
On Jul 15, 2004, at 3:05 AM, Henri Gomez wrote:
Could you take the latest code in CVS and check to see if it solve 
your
problem ?
We took the new get_cookie() implementation from CVS and replaced 
the one in our mod_jk 1.2.5 package and all hell broke loose. The 
jvmroute of the JSESSIONID cookie weren't being respected and users 
coudn't do anything in our load balanced setup because they were 
getting new JSESSIONID cookies on each request.

We reverted very quickly so I didn't get a good chance to debug it. 
Tomorrow we'll test mod_jk from CVS to make sure it wasn't a problem 
with the new get_cookie() in the 1.2.5 version.

I've manually followed the new get_cookie() code and it looks right 
to me but I'm nervous about it for now.

I'd like to know if anyone else has had success with the new 
get_cookie() in a load balanced setup.
I'm waiting for your reply to tag and make jk 1.2.6 release.
I double checked our setup and our attempt to patch mod_jk 1.2.5 with 
the new get_cookie implementation and found that request were *not* 
being forward to the right clone based on the jvmroute part of the 
JSESSIONID cookie.

I have not had time to test a current CVS checkout of mod_jk in a load 
balanced setup.

Sandy McArthur

smime.p7s
Description: S/MIME cryptographic signature


Re: mod_jk 1.2.6 release ? - session tracking cookie

2004-07-19 Thread Henri Gomez
Sandy McArthur wrote:
On Jul 19, 2004, at 4:06 AM, Henri Gomez wrote:
Sandy McArthur wrote:
Thinking on it more, I think I'm full of it and I was confusing the 
symptoms of two problems that were happening at the same time. 
Disregard my comments below until I can double check myself.
Sandy
On Jul 15, 2004, at 6:01 PM, Sandy McArthur wrote:

On Jul 15, 2004, at 3:05 AM, Henri Gomez wrote:
Could you take the latest code in CVS and check to see if it solve 
your
problem ?

We took the new get_cookie() implementation from CVS and replaced 
the one in our mod_jk 1.2.5 package and all hell broke loose. The 
jvmroute of the JSESSIONID cookie weren't being respected and users 
coudn't do anything in our load balanced setup because they were 
getting new JSESSIONID cookies on each request.

We reverted very quickly so I didn't get a good chance to debug it. 
Tomorrow we'll test mod_jk from CVS to make sure it wasn't a problem 
with the new get_cookie() in the 1.2.5 version.

I've manually followed the new get_cookie() code and it looks right 
to me but I'm nervous about it for now.

I'd like to know if anyone else has had success with the new 
get_cookie() in a load balanced setup.

I'm waiting for your reply to tag and make jk 1.2.6 release.

I double checked our setup and our attempt to patch mod_jk 1.2.5 with 
the new get_cookie implementation and found that request were *not* 
being forward to the right clone based on the jvmroute part of the 
JSESSIONID cookie.

I have not had time to test a current CVS checkout of mod_jk in a load 
balanced setup.
Well the patch was release to fix your problem and correct what could be
a serious problem in jk 1.2.x and I'd like to know if it's fixed before
making the 1.2.6 release.
And since I couldn't delay the release to long, we need a quick reply,
so thanks to take a look at it.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: mod_jk 1.2.6 release ? - session tracking cookie

2004-07-19 Thread Bill Barker

- Original Message -
From: Sandy McArthur [EMAIL PROTECTED]
To: Tomcat Developers List [EMAIL PROTECTED]
Sent: Monday, July 19, 2004 1:21 AM
Subject: Re: mod_jk 1.2.6 release ? - session tracking cookie



 On Jul 19, 2004, at 4:06 AM, Henri Gomez wrote:

  Sandy McArthur wrote:
 
  Thinking on it more, I think I'm full of it and I was confusing the
  symptoms of two problems that were happening at the same time.
  Disregard my comments below until I can double check myself.
  Sandy
  On Jul 15, 2004, at 6:01 PM, Sandy McArthur wrote:
  On Jul 15, 2004, at 3:05 AM, Henri Gomez wrote:
 
  Could you take the latest code in CVS and check to see if it solve
  your
  problem ?
 
  We took the new get_cookie() implementation from CVS and replaced
  the one in our mod_jk 1.2.5 package and all hell broke loose. The
  jvmroute of the JSESSIONID cookie weren't being respected and users
  coudn't do anything in our load balanced setup because they were
  getting new JSESSIONID cookies on each request.
 
  We reverted very quickly so I didn't get a good chance to debug it.
  Tomorrow we'll test mod_jk from CVS to make sure it wasn't a problem
  with the new get_cookie() in the 1.2.5 version.
 
  I've manually followed the new get_cookie() code and it looks right
  to me but I'm nervous about it for now.
 
  I'd like to know if anyone else has had success with the new
  get_cookie() in a load balanced setup.
 
  I'm waiting for your reply to tag and make jk 1.2.6 release.

 I double checked our setup and our attempt to patch mod_jk 1.2.5 with
 the new get_cookie implementation and found that request were *not*
 being forward to the right clone based on the jvmroute part of the
 JSESSIONID cookie.


If the UA is sending trailing white-space between the Cookie value and the
';', then the current patch will fail.  I don't know of any UAs that do,
which is why I didn't bother with stripping it (at least this close to a
release date).

 I have not had time to test a current CVS checkout of mod_jk in a load
 balanced setup.

 Sandy McArthur


smime.p7s
Description: S/MIME cryptographic signature

This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

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

Re: mod_jk 1.2.6 release ? - session tracking cookie

2004-07-19 Thread Sandy McArthur
On Jul 19, 2004, at 8:43 AM, Henri Gomez wrote:
And since I couldn't delay the release to long, we need a quick reply,
so thanks to take a look at it.
We've setup a current CVS checkout of mod_jk at 
http://sp27en1.nerdc.ufl.edu/login.do which is load balancing to our 
webmail cluster. If you constantly reload the page you'll see it's 
setting a new JSESSIONID cookie on every request.

For comparison https://webmail.ufl.edu/login.do is using mod_jk 1.2.5 
load balancing to the same webmail cluster.

Sandy McArthur

smime.p7s
Description: S/MIME cryptographic signature


Re: mod_jk 1.2.6 release ? - session tracking cookie

2004-07-15 Thread Sandy McArthur
On Jul 15, 2004, at 3:05 AM, Henri Gomez wrote:
Could you take the latest code in CVS and check to see if it solve your
problem ?
We took the new get_cookie() implementation from CVS and replaced the 
one in our mod_jk 1.2.5 package and all hell broke loose. The jvmroute 
of the JSESSIONID cookie weren't being respected and users coudn't do 
anything in our load balanced setup because they were getting new 
JSESSIONID cookies on each request.

We reverted very quickly so I didn't get a good chance to debug it. 
Tomorrow we'll test mod_jk from CVS to make sure it wasn't a problem 
with the new get_cookie() in the 1.2.5 version.

I've manually followed the new get_cookie() code and it looks right to 
me but I'm nervous about it for now.

I'd like to know if anyone else has had success with the new 
get_cookie() in a load balanced setup.

Sandy

smime.p7s
Description: S/MIME cryptographic signature


Re: mod_jk 1.2.6 release ? - session tracking cookie

2004-07-15 Thread Sandy McArthur
Thinking on it more, I think I'm full of it and I was confusing the 
symptoms of two problems that were happening at the same time. 
Disregard my comments below until I can double check myself.

Sandy
On Jul 15, 2004, at 6:01 PM, Sandy McArthur wrote:
On Jul 15, 2004, at 3:05 AM, Henri Gomez wrote:
Could you take the latest code in CVS and check to see if it solve 
your
problem ?
We took the new get_cookie() implementation from CVS and replaced the 
one in our mod_jk 1.2.5 package and all hell broke loose. The jvmroute 
of the JSESSIONID cookie weren't being respected and users coudn't do 
anything in our load balanced setup because they were getting new 
JSESSIONID cookies on each request.

We reverted very quickly so I didn't get a good chance to debug it. 
Tomorrow we'll test mod_jk from CVS to make sure it wasn't a problem 
with the new get_cookie() in the 1.2.5 version.

I've manually followed the new get_cookie() code and it looks right to 
me but I'm nervous about it for now.

I'd like to know if anyone else has had success with the new 
get_cookie() in a load balanced setup.

Sandy

smime.p7s
Description: S/MIME cryptographic signature