Basic Infos
Platform
- Hardware: [ESP8266]
- Core Version: [a543262]
- Development Env: [CLion]
- Operating System: [Ubuntu|]
Settings in IDE
- Module: [Nodemcu]
- Flash Mode: [qio|dio|other]
- Flash Size: [4MB]
- lwip Variant: [?]
- Reset Method: [nodemcu]
- Flash Frequency: [40Mhz]
- CPU Frequency: [80Mhz]
- Upload Using: [OTA]
- Upload Speed: [9600]
Problem Description
MD5 Verification fails on HTTP Update (with no x-MD5 header response) after unsuccessful OTA Update because the _target_md5 string in Updater class is not restored to default value.
No need for a sketch, This is a reproducible issue by following two basic steps:
- Fail an
OTAUpdate by cancelling the update in the middle of the process
- Trigger an
HTTPUpdate with a server that has no x-MD5 header set on the response.
=> The update will fail with MD5 Check fail
Debug Messages
MD5 Failed: expected:<_target_md5>, calculated:<md5>
Basic Infos
Platform
Settings in IDE
Problem Description
MD5 Verification fails on HTTP Update (with no
x-MD5header response) after unsuccessful OTA Update because the_target_md5string inUpdaterclass is not restored to default value.MCVE Sketch
No need for a sketch, This is a reproducible issue by following two basic steps:
OTAUpdateby cancelling the update in the middle of the processHTTPUpdatewith a server that has nox-MD5header set on the response.=> The update will fail with MD5 Check fail
Debug Messages