Bug 50544 - In Apache Common Log the HEAD requests cause problems.
In Apache Common Log the HEAD requests cause problems.
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: HTTP
2.4
PC Linux
: P2 major (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2011-01-05 11:31 UTC by Matthew Soffen
Modified: 2011-05-17 20:06 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Soffen 2011-01-05 11:31:02 UTC
When attempting to create a test case that imports an apache log (Using the Access Log Sampler), the log I was using contains HEAD commands (as does the logs I'll be using later).

Here are some lines from the my testing log file.


127.0.0.1 - - [26/Dec/2010:07:31:22 -0500] "GET /index.html HTTP/1.1" 200 652 "http://www.neopets.com/index.phtml" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.5.9-1.fc11 Firefox/3.5.9"

Its logged response from jmeter.
<httpSample t="70" lt="70" ts="1294244068011" s="false" lb="http://inky.soffen.com/index.html" rc="200" rm="Not Found" tn="Thread Group 1-1" dt="text" by="649"/>


192.168.195.194 - - [26/Dec/2010:03:27:24 -0500] "HEAD /mythweb/ HTTP/1.0" 200 - "-" "BigBrother/1.9i"

This HEAD line does not get parsed properly.

<httpSample t="1" lt="0" ts="1294244068164" s="false" lb="http://inky.soffen.com/192.168.195.194%20-%20-%20[26/Dec/2010:03:27:24%20-0500]%20&quot;HEAD%20/mythweb/%20HTTP/1.0&quot;%202
00%20-%20&quot;-&quot;%20&quot;BigBrother/1.9i&quot;" rc="Non HTTP response code: java.net.ProtocolException" rm="Non HTTP response message: Invalid HTTP method: null" tn="Thread Group 1-2" dt="text" by="796"/>
Comment 1 Sebb 2011-05-17 19:39:30 UTC
Closed in error
Comment 2 Sebb 2011-05-17 20:06:15 UTC
URL: http://svn.apache.org/viewvc?rev=1104502&view=rev
Log:
Bug 50544 - In Apache Common Log the HEAD requests cause problems.

Modified:
   jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/accesslog/TCLogParser.java
   jakarta/jmeter/trunk/test/src/org/apache/jmeter/protocol/http/util/accesslog/TestTCLogParser.java
   jakarta/jmeter/trunk/xdocs/changes.xml