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=40208>.
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=40208

           Summary: Request-Dump when ErrorDocument in httpd.conf is a jsp
           Product: Tomcat 5
           Version: 5.0.28
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Native:JK
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


Sometimes requests to an error.jsp, configured as an ErrorDocument in 
httpd.conf, result in request dumps in catalina.out.

Details: 

We use an environment with apache 1.3.27, mod_jk 1.2.6 and tomcat 5.0.28 on 
Linux.

In our httpd.conf an error.jsp page is configured to report violations of 
access restrictions (Response code 403) or 'URL not found' (404) to the user. 
Most of the time this works fine.

In some cases we find a request dump in our catalina.out file, when apache 
directs such an error.jsp request to mod_jk. Unfortunately I can't see the 
original request, which produced the fault. 

Since we use the apache module ModSecurity (version 1.9.3) we have the problem, 
that a deny of a request with status 403 results reproducible in such a request 
dump. Then no Response is sent back to the user. There is also no entry in the 
access logfile of apache. This error case is reproducable with apache 1.3.37, 
mod_jk 1.2.18 and tomcat 5.0.28.

mod_jk 1.2.18 reports the following log infos in debug mode:

[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (520): Attempting to map context 
URI '/error/*.jsp'
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (534): Found a wildchar match ajp13 -
> /error/*.jsp
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
wc_get_worker_for_name::jk_worker.c (111): found a worker ajp13
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] wc_maintain::jk_worker.c (301): 
Maintaining worker ajp13
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_get_endpoint::jk_ajp_common.c (2164): acquired connection pool slot=0
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_marshal_into_msgb::jk_ajp_common.c (566): ajp marshaling done
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] ajp_service::jk_ajp_common.c 
(1698): processing ajp13 with 2 retries
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] jk_open_socket::jk_connect.c 
(329): socket TCP_NODELAY set to On
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] jk_open_socket::jk_connect.c 
(427): trying to connect socket 6 to 127.0.0.1:8009
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] jk_open_socket::jk_connect.c 
(453): socket 6 connected to 127.0.0.1:8009
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connect_to_endpoint::jk_ajp_common.c (864): Connected socket 6 to 
(127.0.0.1:8009)
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): sending to ajp13 pos=4 
len=966 max=8192
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0000    12 34 03 C2 02 
02 00 08 48 54 54 50 2F 31 2E 31  - .4......HTTP/1.1
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0010    00 00 13 2F 65 
72 72 6F 72 2F 65 72 72 6F 72 34  - .../error/error4
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0020    30 33 2E 6A 73 
70 00 00 0B 31 30 2E 31 30 30 2E  - 03.jsp...10.100.
...(following the dump of the request)...
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0330    5F 73 65 63 75 
72 69 74 79 2D 61 63 74 69 6F 6E  - _security-action
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0340    00 00 03 34 30 
33 00 00 14 6D 6F 64 5F 73 65 63  - ...403...mod_sec
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0350    75 72 69 74 79 
2D 6D 65 73 73 61 67 65 00 00 64  - urity-message..d
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0360    41 63 63 65 73 
73 20 64 65 6E 69 65 64 20 77 69  - Access.denied.wi
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0370    74 68 20 63 6F 
64 65 20 34 30 33 2E 20 50 61 74  - th.code.403..Pat
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0380    74 65 72 6E 20 
6D 61 74 63 68 20 22 6A 73 65 73  - tern.match."jses
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 0390    73 69 6F 6E 69 
64 22 20 61 74 20 41 52 47 53 5F  - sionid".at.ARGS_
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 03a0    56 41 4C 55 45 
53 28 22 78 79 7A 22 29 20 5B 73  - VALUES("xyz").[s
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 03b0    65 76 65 72 69 
74 79 20 22 45 4D 45 52 47 45 4E  - everity."EMERGEN
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_connection_tcp_send_message::jk_ajp_common.c (909): 03c0    43 59 22 5D 00 
FF 00 00 00 00 00 00 00 00 00 00  - CY"]............
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] 
ajp_send_request::jk_ajp_common.c (1264): request body to send 24 - request 
body to resend 0
[Tue Aug 08 14:43:38 2006] [30177:0000] [info]  
ajp_read_into_msg_buff::jk_ajp_common.c (1118): Receiving data from client 
failed. Connection aborted or network problems
[Tue Aug 08 14:43:38 2006] [30177:0000] [info]  ajp_service::jk_ajp_common.c 
(1775): Sending request to tomcat failed, because of client error without 
recovery in send loop 0
[Tue Aug 08 14:43:38 2006] [30177:0000] [debug] ajp_done::jk_ajp_common.c 
(2107): recycling connection pool slot=0 for worker ajp13

The same output is reported by tomcat in catalina.out. 

Do you have any idea, what might be the problem? Should I post this error to 
the apache bug database?

-- 
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]

Reply via email to