httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Nutter <charles.nut...@stratyc.com>
Subject [users@httpd] jk/ajp13 not handling a cookie correctly?...it disappears
Date Mon, 14 Oct 2002 18:29:36 GMT
I am connecting Apache 1.3 to Tomcat via ajp13, mod_jk 1.2. Tomcat's
JSESSIONID cookie seems to be coming back through correctly, but another
cookie sent by a piece of software, TIBCO's PortalBuilder, is not being
propagated back. The cookie TIBCOSessionID is supposed to be set in the
user's browser when they log in. For whatever reason, this cookie is not
making it back through mod_jk and Apache to the browser. I can think of a
couple theories as to why this might be happening:

1. mod_jk or Apache does not like the format of the cookie. It contains
URL-encoded values. However, I assumed cookie values are passed back without
modification.
2. during its hit to Tomcat, perhaps mod_jk hits the Tomcat instance
twice...the first time returns a response with the cookie set, but the
subsequent hit does not pass that cookie across as if it were coming from
the browser. Perhaps during this second hit to Tomcat, PortalBuilder kills
the cookie since the user doesn't appear to be logged in correctly.
3. ????

We are using Tomcat to serve static as well as dynamic content, but need
Apache to handle more complex URL rewriting/redirecting, security/isolation,
and load balancing issues. For the most part, requests coming into Apache
should be sent straight through to Tomcat, and responses should be returned
straight back.

Below is the mod_jk.log with log level set to "DEBUG". Notice that the
cookie TIBCOSessionID is set initially, but then cleared shortly after.
Why??

- Charlie

[Mon Oct 14 12:03:19 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Oct 14 12:03:19 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/lap/LAPHome'
[Mon Oct 14 12:03:19 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -> /
[Mon Oct 14 12:03:19 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Mon Oct 14 12:03:19 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (1391)]: Into
jk_worker_t::get_endpoint
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (1435)]: In
jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 3 seconds
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (1107)]: Into
jk_endpoint_t::service
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #549
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (882)]: ajp_send_request 2:
request body to send 169 - request body to resend 0
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #175
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (727)]: received from ajp13 #3
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #4
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (727)]: received from ajp13 #3
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #4
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (727)]: received from ajp13 #3
[Mon Oct 14 12:03:19 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #4
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#140
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (483)]: ajp_unmarshal_response:
status = 200
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (488)]: ajp_unmarshal_response:
Number of headers is = 3
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[0] [Content-Type] = [text/html]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[1] [Content-Length] = [141]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[2] [Set-Cookie] =
[TIBCOSessionID=%22Pzd1KpWGANFhZwo8TBtNKLFIShk%3D%26MTAx%22;Expires=Mon,
14-Oct-2002 19:03:20 GMT;Path=/]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#145
[Mon Oct 14 12:03:20 2002]  [jk_uri_worker_map.c (460)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Oct 14 12:03:20 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
URI '/lap/LAPHome'
[Mon Oct 14 12:03:20 2002]  [jk_uri_worker_map.c (502)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 -> /
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13 #2
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (1369)]: Into
jk_endpoint_t::done, recycling connection
[Mon Oct 14 12:03:20 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name
ajp13
[Mon Oct 14 12:03:20 2002]  [jk_worker.c (136)]: wc_get_worker_for_name,
done  found a worker
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (1391)]: Into
jk_worker_t::get_endpoint
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (1435)]: In
jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 1 seconds
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (1107)]: Into
jk_endpoint_t::service
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (295)]: Into
ajp_marshal_into_msgb
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (432)]: ajp_marshal_into_msgb -
Done
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (640)]: sending to ajp13 #569
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (882)]: ajp_send_request 2:
request body to send 0 - request body to resend 0
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#192
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (483)]: ajp_unmarshal_response:
status = 200
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (488)]: ajp_unmarshal_response:
Number of headers is = 5
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[0] [Content-Type] = [text/html; charset=UTF-8]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[1] [Pragma] = [no-cache]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[2] [Set-Cookie] = [TIBCOSessionID=;Expires=Thu, 01-Jan-1970 00:00:10
GMT;Path=/]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[3] [Cache-Control] = [private]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (532)]: ajp_unmarshal_response:
Header[4] [Expires] = [Thu, 05 Jan 1995 22:00:00 GMT]
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#2033
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#1917
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#446
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#2052
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#903
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#1357
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#1946
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13
#1774
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (727)]: received from ajp13 #2
[Mon Oct 14 12:03:20 2002]  [jk_ajp_common.c (1369)]: Into
jk_endpoint_t::done, recycling connection

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message