Whitelist overlap causes bungled file
Migrated from: https://tracker.clearos.com/view.php?id=17721
Reported by: Dave Loper
When the whitelist file (squid_whitelist.conf) contains entries that are parent domains of a subdomain already listed, it causes the file to report bungled.
For example:
.ntec.example.com
.example.com
This will cause an error to be reported on the subsequent duplicate '.example.com' which bungles the file. It can also stop squid from starting (and, arguable, therefore should be an upstream issue?).
Validation should exist to prevent the addition of a bungled entry. This should be two regexes that look to see if an entry matches down to two objects (from 5 in example) .bob.tom.ntec.example.com
should check:
.bob.tom.ntec.example.com
.tom.ntec.example.com
.ntec.example.com
.example.com
...and check up (for example) .example.com
should check *.example.com
Developer comment:
The UI should then propose the lowest common entry