Mantis - Resin
Viewing Issue Advanced Details
6038 minor always 03-06-17 07:56 03-20-17 13:13
wileysaw  
ferg  
normal  
closed 4.0.51  
fixed  
none    
none 4.0.52  
0006038: Access log broken data
In the log line:
- - "HTTP/1.0r" [19/Jan/2017:18:07:33 +0300] "GET /tagserver.... HTTP/1.0" 200 0 "-" "Apache-HttpClient/4.5.2 (Java/1.8.0_102)"

instead of "null-user" we see "HTTP/1.0r"

or in the log line
- - "null-user" [19/Jan/2017:18:08:12 +0300] "GET /tagserver... nTTP/1.0" 200 0 "-" "Apache-HttpClient/4.5.2 (Java/1.8.0_102)"
protocol is "nTTP/1.0" instead of "HTTP/1.0"

or in the log line
- - "null-user" [19/Jan/2017:18:08:38 +0300] "HET /tagserver... HTTP/1.0" 200 0 "-" "Apache-HttpClient/4.5.2 (Java/1.8.0_102)"

we see "HET" value as method name instead of "GET".
com.caucho.server.log.AccessLog#print(byte[], int, java.lang.String) is used com.caucho.server.log.AccessLog#_cb field of com.caucho.server.log.AccessLog class. Access to com.caucho.server.log.AccessLog#_cb field can get several threads at the same time. This reusable _cb.getBuffer() array of chars is a reason of our issue.

There are no notes attached to this issue.