Activity report on

  *[JIRA] Improvement SKER5022 - Garbled requests / log statements*

  Scarab Link: http://sesat.no/scarab/issues/id/SKER5022
  Module: Sesat> Kernel


  Activity generated by Mick Semb Wever ([EMAIL PROTECTED]) at 12/03/2008 11:35

  *Reasons for the changes*


  *Personnel changes*
  - Assignee: ssmiweve ()

-------------------------------------------------------------------------------
  *Attribute changes*
  - "Description" set to:
    "On November 24 we received a request at 12:24:34 that was logged in a 
garbled manner: Instead of the expected <url method="GET" .. we got a <url 
method="lenke=" in the tomcat access log. This made the log file invalid as an 
XML document and caused SESTAT to crash with a fatal SAXParseException.

The request was probably garbled from the user-agent, since the apache access 
log shows the same garbledness as the tomcat access log, so this issue is not a 
bug in our log code (I expected a synchronization issue at first) but an 
improvement request.

Is it possible to remove or avoid logging requests that are just plain garbled? 
Such as those not having a proper HTTP request method (POST,GET)?

## From the apache access log
79.143.79.250 - - [24/Nov/2008:12:24:34 +0100] 
"lenke=http%3A%2F%2Fwww%2Esesam%2Eno%2Fsearch%2F%3Fq%3DSkien%26ss%5Flt%3Dgame%26ss%5Fss%3Dsesam%2Eno%26ss%5Fpid%3Dsesam%26ss%5Fprod%3Dagens&tb%5Fside=1&ub%5Fside=1&db%5Fside=1&handling=lenke&identifikator=724585GET
 /search/?q=Skien&ss_lt=game&ss_ss=sesam.no&ss_pid=sesam&ss_prod=agens 
HTTP/1.1" 501 1083 "http://vasi.net/2008/08/19/super_katapulta.html"; 
"Opera/9.27 (Windows NT 5.1; U; ru)" sesam.no 443178 jakarta-servlet 5737 
"79.143.79.250.1227525874186152"

## For the tomcat access log
<log timestamp="12:24:34,187" skin="sesam.no/" 
request="o673TwoLQWEAABZpI6IAAAAG"><request><url 
method="lenke=http%3A%2F%2Fwww%2Esesam%2Eno%2Fsearch%2F%3Fq%3DSkien%26ss%5Flt%3Dgame%26ss%5Fss%3Dsesam%2Eno%26ss%5Fpid%3Dsesam%26ss%5Fprod%3Dagens&tb%5Fside=1&ub%5Fside=1&db%5Fside=1&handling=lenke&identifikator=724585GET">/search/?q=Skien&amp;ss_lt=game&amp;ss_ss=sesam.no&amp;ss_pid=sesam&amp;ss_prod=agens</url><referer>http://vasi.net/2008/08/19/super_katapulta.html&lt;/referer&gt;&lt;browser
 ipaddress="79.143.79.250">Opera/9.27 (Windows NT 5.1; U; ru)</browser><user 
id=""></user></request></log> "

-------------------------------------------------------------------------------
_______________________________________________
Kernel-issues mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-issues

Svar til