Bug #11241
closedIncorrect ETAG calculated for POST uploads
0%
Description
When uploading file via POST method, with multipart/form-data encoding, incorrect ETag is calculated for any file that is not aligned to 512KB.
Test results:
FILE UPLOADED/SIZE => CALCULATED ETAG => EXPECTED ETAG => comparsion value
--------------------------------------------------------------------------
testupload/1k => d41d8cd98f00b204e9800998ecf8427e = 0f343b0931126a20f133d67c2b018a3b => false
testupload/2k => d41d8cd98f00b204e9800998ecf8427e = c99a74c555371a433d121f551d6c6398 => false
testupload/128k => d41d8cd98f00b204e9800998ecf8427e = 0dfbe8aa4c20b52e1b8bf3cb6cbdf193 => false
testupload/511k => d41d8cd98f00b204e9800998ecf8427e = eb779e3f74b7b686b3d256004414eab2 => false
testupload/512k => 59071590099d21dd439896592338bf95 = 59071590099d21dd439896592338bf95 => true
testupload/513k => 59071590099d21dd439896592338bf95 = 0df2a0d3ec7e4dc1b64babdb3ec50a2b => false
testupload/1000k => 59071590099d21dd439896592338bf95 = 80ec129d645c70cf0de45b1a5a682235 => false
testupload/1023k => 59071590099d21dd439896592338bf95 = c96b9b9ca1a5f231115d7dc6d2490331 => false
testupload/1024k => b6d81b360a5672d80c27430f39153e2c = b6d81b360a5672d80c27430f39153e2c => true
testupload/1025k => b6d81b360a5672d80c27430f39153e2c = 3d283316360c56857e7c212cfecbbd83 => false
The problem does not exist when using PUT method. Test script attached. Tested with latest firefly and giant releases.
Files