apt-cacher-ng data corruption with HTTP headers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-cacher-ng (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Chris J Arges |
Bug Description
apt-cacher-ng is reporting hash mismatches for packages in an archive at random. This is due to the fact that apt-cacher-ng is storing the HTTP headers related to the package download in the .deb file.
This issue happens intermittently on precise apt-cacher-ng 0.7.2-1ubuntu1, but seems to be fixed in 0.7.4.
SRU Justification:
[Impact]
* When using apt-cacher-ng hash mismatches failures for packages can cause problems when installing packages.
[Test Case]
* Set up apt-cacher-ng
* Intermittent failures due to hash-mismatches may occur in versions <= 0.7.2-1ubuntu1
[Regression Potential]
* This adds a few patches that fix the issue. Unfortuantely I was unable to find an upstream VCS to be able to separate out patches from each other. Therfore I tried to remove the very obvious bits of the code that did not address the issue. All of this code is already in newer versions of the package.
* This package has been tested in an environment with a apt-cache-ng server and 10 client machines and has been run for days without any hash mismatches.
Related branches
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Attached is an example log of the problem.