<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt/test/integration/test-apt-update-repeated-ims-hit, branch master</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=master</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2019-11-27T21:00:43Z</updated>
<entry>
<title>Remove failed trusted signature instead of index on IMS hit</title>
<updated>2019-11-27T21:00:43Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2019-11-27T11:10:31Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=1690c3f87ae45a41e8d3e09bf0b1021c008460b9'/>
<id>urn:sha1:1690c3f87ae45a41e8d3e09bf0b1021c008460b9</id>
<content type='text'>
While passing the combi Release and Release.gpg to the gpgv method for
verification the filename of Release is placed where usually Release.gpg
is assumed in the rest of the code. The "usual" cases like passing
verification and failing verification ending in an error are taking care
of this, but the code path dealing with a failed verification, but
ignoring said failure (e.g. due to trusted=yes) was not which results in
the wrong file being removed later on (in case the index happens to be
unmodified since the last update call) leading us into the abyss of
strange failures (fixed in the previous commit) were nothing should have
changed.

This is not a security issue in this form as the repository needs to fail
verification &amp; the user forcing apt to ignore the failure and carry on
anyhow. It does show however how complicated the code and its various
interconnected paths can become.

Reported-By: Val "pinkieval" Lorentz on IRC
</content>
</entry>
<entry>
<title>Use correct filename on IMS-hit reverify for indices</title>
<updated>2019-11-27T20:56:33Z</updated>
<author>
<name>David Kalnischkies</name>
<email>david@kalnischkies.de</email>
</author>
<published>2019-11-27T18:57:08Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=62bfe5b6ca3ccfba6313d3f9ab4cb75a24a5557a'/>
<id>urn:sha1:62bfe5b6ca3ccfba6313d3f9ab4cb75a24a5557a</id>
<content type='text'>
If we have no old Release file, but old indices we can't compare
hashsums with the new Release file and hence must request the indices
again and have to react to IMS hits if they didn't change.

We used to symlink the old index file to the partial directory, but that
usually meant that we linked an uncompressed file to a compressed file,
which  not all uncompressors can deal with transparently resulting in
strange failures.

We could do without the symlink, but that would require changes in the
codepaths dealing with failure as they would rename the file to FAILED.
</content>
</entry>
</feed>
