Re: Problem with apj13/jk_mod and multiple cookies!

2001-01-18 Thread Jason Pell

THANKYOU, THANKYOU, THANKYOU one and all.

Oh what a beautiful day it is, to see Tomcat 3.2.1 with patch to 
Ajp13ConnectorResponse.java
working as it should.

I am extremely grateful.

Thanks
Jason


Dan Milstein wrote:

 Jason,

 This has been fixed in the cvs tree for TC 3.2 -- the relevant file is:

 src/share/org/apache/tomcat/service/connector/Ajp13ConnectorResponse.java

 You can get a patch from that, or just grab that file.  Check the jakarta website 
for details on getting the file from cvs.

 -Dan

 Jason Pell wrote:
 
  Hi,
 
  I have been having heaps of problems with multiple cookies not being set
  with tomcat.
 
  I have managed to track the problem down, but do not have enough
  understanding of
  the APJ13/mod_jk C source to fix.
 
  First of all multiple cookies work when I access tomcat directly
  (bypassing apache), but then
  as I have stated previously they all fail to be set, bar the first one.
 
  This fragment of  jakarta-tomcat-3.2-src/src/native/jk/jk_apj13.c
 
  } else {
  d-header_names[i] = (char *)jk_b_get_string(msg);
  if(!d-header_names[i]) {
  jk_log(l, JK_LOG_ERROR,
 "Error ajp13_unmarshal_response - Null
  header name\n");
 
  return JK_FALSE;
  }
  }
 
  d-header_values[i] = (char *)jk_b_get_string(msg);
  if(!d-header_values[i]) {
  jk_log(l, JK_LOG_ERROR,
 "Error ajp13_unmarshal_response - Null header
  value\n");
 
  is where the headers are processed, and jk_b_get_string(msg); is
  returning "ERROR" for
  all but my first cookie, as demonstrated by the log I obtained.
  Log fragment from mod_jk.log
  

 
  [jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[1] [Set-Cookie] =
  [cookie1=hello;Domain=kuru.its.deakin.edu.au;Path=/connect/se
  rvlet]
  [jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[2] [ERROR] =[ERROR]
 
  [jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[3] [ERROR] =[ERROR]
 
  [jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[4] [ERROR] =[ERROR]
 
  [jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[5] [ERROR] =[ERROR]
 
  [jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[6] [ERROR] =[ERROR]
 
  

 
  Please, Please, Please help me I do not know what to do.  I am desperate
  now!!!
 
  Thankyou
  Jason Pell
 
  --
  Jason Pell
  Senior Analyst/Programmer - Web Developer
  Callista Software Services Pty Ltd
  12 Gheringhap St, Geelong Victoria 3220 Australia
  Phone: 03 5227 8858 International: +61 3 5227 8858
  Fax: 03 5227 8907 International: +61 3 5227 8907
  E-mail [EMAIL PROTECTED]
  http://www.dssonline.com.au
  Customer Support Hotline: 1800 620 497
 
  "Callista - the brightest solution in university management"
 
  ---
  Important Notice: The contents of this email transmission,
  including attachments, may be privileged and confidential.
  Any unauthorised use of the contents is expressly prohibited.
  If you have received this transmission in error, please advise
  the sender by return email or telephone immediately and
  destroy all versions.
  ---
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]

 --

 Dan Milstein // [EMAIL PROTECTED]

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

--
Jason Pell
Senior Analyst/Programmer - Web Developer
Callista Software Services Pty Ltd
12 Gheringhap St, Geelong Victoria 3220 Australia
Phone: 03 5227 8858 International: +61 3 5227 8858
Fax: 03 5227 8907 International: +61 3 5227 8907
E-mail [EMAIL PROTECTED]
http://www.dssonline.com.au
Customer Support Hotline: 1800 620 497

"Callista - the brightest solution in university management"

---
Important Notice: The contents of this email transmission,
including attachments, may be privileged and confidential.
Any unauthorised use of the contents is expressly prohibited.
If you have received this transmission in error, please advise
the sender by return email or telephone immediately and
destroy all versions.
---



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




Problem with apj13/jk_mod and multiple cookies!

2001-01-17 Thread Jason Pell

Hi,

I have been having heaps of problems with multiple cookies not being set
with tomcat.

I have managed to track the problem down, but do not have enough
understanding of
the APJ13/mod_jk C source to fix.

First of all multiple cookies work when I access tomcat directly
(bypassing apache), but then
as I have stated previously they all fail to be set, bar the first one.

This fragment of  jakarta-tomcat-3.2-src/src/native/jk/jk_apj13.c

} else {
d-header_names[i] = (char *)jk_b_get_string(msg);
if(!d-header_names[i]) {
jk_log(l, JK_LOG_ERROR,
   "Error ajp13_unmarshal_response - Null
header name\n");

return JK_FALSE;
}
}

d-header_values[i] = (char *)jk_b_get_string(msg);
if(!d-header_values[i]) {
jk_log(l, JK_LOG_ERROR,
   "Error ajp13_unmarshal_response - Null header
value\n");

is where the headers are processed, and jk_b_get_string(msg); is
returning "ERROR" for
all but my first cookie, as demonstrated by the log I obtained.
Log fragment from mod_jk.log


[jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[1] [Set-Cookie] =
[cookie1=hello;Domain=kuru.its.deakin.edu.au;Path=/connect/se
rvlet]
[jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[2] [ERROR] =[ERROR]

[jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[3] [ERROR] =[ERROR]

[jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[4] [ERROR] =[ERROR]

[jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[5] [ERROR] =[ERROR]

[jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[6] [ERROR] =[ERROR]



Please, Please, Please help me I do not know what to do.  I am desperate
now!!!

Thankyou
Jason Pell

--
Jason Pell
Senior Analyst/Programmer - Web Developer
Callista Software Services Pty Ltd
12 Gheringhap St, Geelong Victoria 3220 Australia
Phone: 03 5227 8858 International: +61 3 5227 8858
Fax: 03 5227 8907 International: +61 3 5227 8907
E-mail [EMAIL PROTECTED]
http://www.dssonline.com.au
Customer Support Hotline: 1800 620 497

"Callista - the brightest solution in university management"

---
Important Notice: The contents of this email transmission,
including attachments, may be privileged and confidential.
Any unauthorised use of the contents is expressly prohibited.
If you have received this transmission in error, please advise
the sender by return email or telephone immediately and
destroy all versions.
---



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