Mantis - Resin
Viewing Issue Advanced Details
5393 minor always 03-12-13 10:43 08-05-13 09:56
cowan  
ferg  
normal  
closed 4.0.35  
fixed  
none    
none 4.0.37  
0005393: Long headers truncated in access-log when <access-log> is a child of <host-default>
Individual long headers are truncated when printed in access-log using "%{Cookie}i".

Analysis:

When <access-log> is configured as a child of <host-default>, ServletService.setAccessLog is never called. AbstractHttpResponse's logBuffer size is initialized during it's constructor from the buffer size of request.getServer().getAccessLog. This always returns null, so AbstractHttpResponse's logBuffer size is always 1024.

Setting <access-log> as a child of <cluster-default> works around the issue.
Rep by A. Foong

Notes
(0006216)
afoong   
03-12-13 10:53   
Please note, this also affects %{Set-Cookie}
(0006217)
cowan   
03-12-13 11:01   
server/02ev
(0006300)
ferg   
08-05-13 09:56   
Added <access-log-buffer-size> in <cluster>.