Skip to content

Bug: file content error with https #1012

@tian-le

Description

@tian-le

Hi,
First of all, appreciate your great work. Aria2c is a great tool!
I noticed a bug with aria2 for years. When I try to download a large file (>500MB) with https protocol with http authentication, it is very likely (~50% cases) that there would be few bytes wrong in the downloaded file.
For example, I meet this issue again today. I used 64bit version of aria2c in Windows 7 SP1. The common I used is:
aria2c.exe -c -R --max-connection-per-server=5 --file-allocation=none --console-log-level=warn --check-certificate=false --http-user= --http-passwd= https://smpdl.sap-ag.de/~swdc/002007974700001465662017D/70SWPM10SP21_2-20009701.sar
The size of the file is 686,971,484 bytes. The file I got with aria2c is wrong starting from offset 0x26EC3EC8 to 0x26EC3F1C (85 bytes). The correct content should be:
0xF4693BB9539CDFB66AF87F2D4FE4D1B26A1CCDA6DAFD20D270CBDB7F99DD940A8EB0A4BC3AEE5E65FFC706C4754AC373223C008008DE7FAA3FD3FE43FD59C3D646D4C9C9DE49C2D0CEC4E63F8BCF2909FAD2D88228
The incorrect content is:
0x1503030050464BF8FCF81959BA757A26C24D673FD60100C7BD7A1E35DE76E8CCAA08571DB7DEAEEDBF24E2FB142B5C0EC91E50D6BF07D50CADDB0633B9D31A23381BCDFE277AD10D0D0D0D0D0D0D0D0D0D0D0D0D0D
I cannot reproduce this issue when downloading this file for the second time.
Similarly, there are also problems with these files:

file:
https://smpdl.sap-ag.de/~swdc/002007974700001466622017D/SWPM10SP21_2-20009701.SAR
filesize: 634,163,019 bytes
incorrect part: 0x24A4FEC8-0x24A4FF1C
incorrect content:
0x15030300501F6058FA231F0EEB05A3B501DD26FC050100AEB82790630DF0D56A2EC4AF5143184C581D4DB8E30136E8AC2D2CE1B9CE7F217031D2E98D96874EDAB97445D5378DB00D0D0D0D0D0D0D0D0D0D0D0D0D0D

file:
https://smpdl.sap-ag.de/~swdc/002007974700001465672017D/70SWPM10SP21_2-20009707.sar
filesize: 627,413,345 bytes
incorrect part: 0xE47BEC8-0xE47BF1C
incorrect content:
0x1503030050A5BF9613BFCFD82AF480CA5DCC35325B01008CF471ACDC911C0314206568C1F394E7D3235ADAE4009AE42F3BC004677A3C431FF5CFC10C04119B04DDDEAF37E4D1340D0D0D0D0D0D0D0D0D0D0D0D0D0D

file:
https://smpdl.sap-ag.de/~swdc/002007974700001466672017D/SWPM10SP21_2-20009707.SAR
filesize: 774,572,460 bytes
incorrect part: 0x26F63EC8-0x26F63F1C
incorrect content:
0x1503030050DC2A5B59691B3531DF13BB5247850EB50100E7F1BF9613A7B1C4C5958119F3353C54ADA32CE8C93D2B677B0F33A9B377F5C37CE6BB14E7F4BBA1F333D8F8C3EBFC8E0D0D0D0D0D0D0D0D0D0D0D0D0D0D

It can be seen the errors are always in offset xxxEC8 to xxxF1C (85 bytes), and the incorrect bytes are always 0x1503030050....0D0D0D0D0D0D0D0D0D0D0D0D0D0D. Could you please kindly check what cause this issue and kindly fix it?
Thanks!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions