Mantis - Resin
Viewing Issue Advanced Details
6355 minor always 06-16-20 13:11 06-16-20 15:47
stbu  
ferg  
normal  
closed 4.0.64  
fixed  
none    
none 4.0.65  
0006355: access.log pattern "%b" (result content length) is incorrect for larger files
I have created several very large files (around Integer.MAX_VALUE in Bytes) and downloaded them with a Resin-Pro-4.0.64 default configuration and checked the entries in access.log and there are differences which can be obtained from the following list of four files:

Filename: 2147483647.txt
Size in Bytes: 2147483647
Size access.log: 002147483647

Filename: 2147483648.txt
Size in Bytes: 2147483648
Size access.log: -002147483648

Filename: 2147483657.txt
Size in Bytes: 2147483657
Size access.log: -002147483639

Filename: SUPER_DUPER_HUGE.txt
Size in Bytes: 4294967296
Size access.log: 0

Access Log configuration from conf/cluster-default.xml:

    <host-default>
      <access-log path="log/access.log"
                 format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
                 rollover-period="1W"/>

access.log entries:

0:0:0:0:0:0:0:1 - - [16/Jun/2020:21:45:10 +0200] "GET /test/upload-content/2147483647.txt HTTP/1.1" 200 002147483647 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
0:0:0:0:0:0:0:1 - - [16/Jun/2020:21:46:21 +0200] "GET /test/upload-content/2147483648.txt HTTP/1.1" 200 -002147483648 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
0:0:0:0:0:0:0:1 - - [16/Jun/2020:21:49:41 +0200] "GET /test/upload-content/SUPER_DUPER_HUGE.txt HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
0:0:0:0:0:0:0:1 - - [16/Jun/2020:21:56:37 +0200] "GET /test/upload-content/2147483657.txt HTTP/1.1" 200 -002147483639 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
0:0:0:0:0:0:0:1 - - [16/Jun/2020:22:00:07 +0200] "GET /test/upload-content/SUPER_DUPER_HUGE.txt HTTP/1.1" 200 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"

There are no notes attached to this issue.