tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Labanowski <...@osc.edu>
Subject mod_jk/ajp13 worker bad in 3.2b5 on solaris when passing header
Date Sat, 14 Oct 2000 00:32:40 GMT
Since BugRat hangs when you want to submit bugs, I will bug you directly...
Apache3.2 beta 5 patched for NETWARE. Solaris, ultra sparc, SunOS 5.7
egcs-2.91.66


When using mod_jk with ajp13 worker the:

	// Retrive Header Fields
	out.println("<BR><BR>");
	out.println("<H1>Header Fields and Values</H1><BR>");
	Enumeration headerFields = request.getHeaderNames();
	String headerField = null;

	// Iterate over names and print values from the FORM
	out.println("<H1>Name and Value from the request HEADER</H1><BR>");
	while (headerFields.hasMoreElements() ) {
            headerField = (String)headerFields.nextElement();
            out.println("<B>" + headerField + "</B> : " +
			request.getHeader(headerField) + "<BR>");
	}


====================
produces this:
====================
connection : Keep-Alive
accept-encoding : gzip
referer : https://heechee.osc.edu:5143/SciPortal/jkl-tests/TestForm.html
accept : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
content-length : 110
accept-charset : iso-8859-1,*,utf-8
accept-language : Basic amtsOjBTQ1BTRQ==
user-agent : Mozilla/4.72 [en] (X11; U; Linux 2.2.14-12 i586)
content-type : application/x-www-form-urlencoded
host : heechee.osc.edu:5143
=================


I.e., the accept-language is mixeded up with authorization field with ajp13
worker.

================
Changing mod_jk and worker.properties to ajp12 fixes the problem
and produces:

connection : Keep-Alive
accept-encoding : gzip
referer : https://heechee.osc.edu:5143/SciPortal/jkl-tests/TestForm.html
accept : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
content-length : 110
accept-charset : iso-8859-1,*,utf-8
accept-language : en
authorization : Basic amtsOjBTQ1BTRQ==
user-agent : Mozilla/4.72 [en] (X11; U; Linux 2.2.14-12 i586)
content-type : application/x-www-form-urlencoded
host : heechee.osc.edu:5143

====================

Yes, I patched the 3.2b5 with NETWARE patch and used:
      $APACHE_HOME/bin/apxs -o mod_jk.so -DSOLARIS \
           -I${JAVA_HOME}/include/solaris \
           -I../jk -I${JAVA_HOME}/include \
           -l posix4 -c *.c ../jk/*.c
      cp mod_jk.so ${APACHE_HOME}/libexec

To work around, I changed to ajp12 worker.


Jan K. Labanowski            |    phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center    |    Internet: jkl@osc.edu 
1224 Kinnear Rd,             |    http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163      |    http://www.osc.edu/


Mime
View raw message