Package slash.navigation.download
Class ChecksumReportPolicy
java.lang.Object
slash.navigation.download.ChecksumReportPolicy
Decides whether the checksum of a
Download that failed may be reported to the catalog
server as a new known-good build.
A failed download only carries a reportable checksum if the transfer provably completed and the failure came from validation: the response announced a Content-Length the written file matches exactly, and a Last-Modified the file still carries. That is the genuine "the upstream rebuilt the file and the catalog is stale" case the catalog wants to learn about. Anything else — a truncated transfer, a response without a Content-Length, a transport error, a different Last-Modified — describes content the server never announced, and reporting its checksum would pollute the catalog's known-good checksums (see GitHub #382).
- Author:
- Christian Pesch
-
Method Summary
-
Method Details