Closed eviljeff closed 4 years ago
Confirmed; added test case in https://github.com/jcjones/filter-cascade/commit/a65b0d921ca9a50709f61b3de19743a37b8e368e going into branch https://github.com/mozilla/filter-cascade/compare/master...jcjones:16-read_write_inconsistency -- thanks!
The salt isn't being loaded correctly in cascade_in
.
There are two bugs here: neither cascade_with_characteristics
nor from_buf
propagate the salt
to child filters.
As part of this, I'm going to mark cascade_with_characteristics
deprecated and remove the need to supply an empty filter list to __init__
to clean up the API. There's no good reason to manually construct filters by default anymore.
There are two bugs here: neither
cascade_with_characteristics
norfrom_buf
propagate the salt to child filters.
Okay, I'll change the addons-server code to create a FilterCascade
directly and skip the part of the test that re-reads the filter in the meantime (we only use from_buf
in tests)
The following testcase fails at the last line because some of the
exclude
items are now found in the filter after it's been written to file and read back again.