Ticket #63 (accepted defect)
Improve robustness of handling broken apt-zeroconf hosts (and blank package lists)
| Reported by: | philip.peitsch@… | Owned by: | fpletz |
|---|---|---|---|
| Priority: | major | Milestone: | apt-zeroconf 0.5 |
| Component: | apt-zeroconf | Keywords: | |
| Cc: |
Description
I had a situation in a network where one of the apt-zeroconf hosts was incorrectly firewalled in such a way as to allow its broadcast packets out, but was unwilling to accept connections from any external machines. As a result, when apt-zeroconf on any other machines queried the firewalled machine, they received a blank package list causing the "data" dictionary to be blank (i.e., no pkglist key). This causes apt-zeroconf to fail installing packages on all other machines as everytime it tries to retrieve a file, the retrieval fails due to the pkglist key not existing. This affects the avaphi.py package around line 247.
Ideally, apt-zeroconf should gracefully ignore any host that does not provide it with a valid list of packages available.
