Hi,

I am having a bit of a problem with obtaining the "authtype" from within a servlet, 
using the RequestDumperValve I found that there
is a header field (authorization) being dumped that contains the information I am 
wanting to read but I am sure it isnt in older
versions of tomcat, I used to just access the authType attribute.  Whats the go?  It 
is only since I changed the tomcat version that
I have had this problem... is this a bug?
I notice a few other fields in there that I would have thought should not be null....


Setup/version details:
Apache Version: Apache/1.3.26 (Unix) mod_ssl/2.8.10 OpenSSL/0.9.6g PHP/4.2.3 
mod_jk2/2.0.3-dev
Tomcat Version: 4.1.18
The connector being used between apache and tomcat is AJP13 (MOD_JK2).

Example from RequestDumperValve:

2003-01-14 10:10:24 RequestDumperValve[Standalone]: 
===============================================================
2003-01-14 10:16:02 RequestDumperValve[Standalone]: REQUEST URI       
=/login/index.html
2003-01-14 10:16:02 RequestDumperValve[Standalone]:           authType=null
2003-01-14 10:16:02 RequestDumperValve[Standalone]:  characterEncoding=null
2003-01-14 10:16:02 RequestDumperValve[Standalone]:      contentLength=0
2003-01-14 10:16:02 RequestDumperValve[Standalone]:        contentType=null
2003-01-14 10:16:02 RequestDumperValve[Standalone]:        contextPath=
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             
cookie=test.com=10.0.0.8.11252104197512718
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             
cookie=JSESSIONID=68C4ADE16DA82115AC42E8799409A90A.test
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             header=accept=*/*
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             
header=accept-encoding=gzip, deflate
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             
header=accept-language=en-au
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             
header=authorization=Basic c2FmZTpsaW5nbw==
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             
header=Cache-Control=no-cache
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             
header=connection=Keep-Alive
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             
header=cookie=test.com=10.0.0.8.11252104197512718;
JSESSIONID=68C4ADE16DA82115AC42E8799409A90A.test
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             
header=host=www.test.com
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             
header=user-agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0)
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             header=content-length=0
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             locale=en_AU
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             method=GET
2003-01-14 10:16:02 RequestDumperValve[Standalone]:           pathInfo=null
2003-01-14 10:16:02 RequestDumperValve[Standalone]:           protocol=HTTP/1.1
2003-01-14 10:16:02 RequestDumperValve[Standalone]:        queryString=null
2003-01-14 10:16:02 RequestDumperValve[Standalone]:         remoteAddr=10.0.0.8
2003-01-14 10:16:02 RequestDumperValve[Standalone]:         remoteHost=10.0.0.8
2003-01-14 10:16:02 RequestDumperValve[Standalone]:         remoteUser=null
2003-01-14 10:16:02 RequestDumperValve[Standalone]: 
requestedSessionId=68C4ADE16DA82115AC42E8799409A90A.test
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             scheme=https
2003-01-14 10:16:02 RequestDumperValve[Standalone]:         serverName=www.test.com
2003-01-14 10:16:02 RequestDumperValve[Standalone]:         serverPort=443
2003-01-14 10:16:02 RequestDumperValve[Standalone]:        servletPath=null
2003-01-14 10:16:02 RequestDumperValve[Standalone]:           isSecure=true
2003-01-14 10:16:02 RequestDumperValve[Standalone]: 
---------------------------------------------------------------
2003-01-14 10:16:02 RequestDumperValve[Standalone]: 
---------------------------------------------------------------
2003-01-14 10:16:02 RequestDumperValve[Standalone]:           authType=null
2003-01-14 10:16:02 RequestDumperValve[Standalone]:      contentLength=8636
2003-01-14 10:16:02 RequestDumperValve[Standalone]:        contentType=text/html
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             
header=Content-Type=text/html
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             
header=Content-Length=8636
2003-01-14 10:16:02 RequestDumperValve[Standalone]:            message=null
2003-01-14 10:16:02 RequestDumperValve[Standalone]:         remoteUser=null
2003-01-14 10:16:02 RequestDumperValve[Standalone]:             status=200
2003-01-14 10:16:02 RequestDumperValve[Standalone]: 
===============================================================

Thanks
Tony


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

Reply via email to