splunk / utbox

URL Toolbox (UTBox) is a set of building blocks for Splunk specially created for URL manipulation. UTBox has been created to be modular, easy to use and easy to deploy in any Splunk environments.
https://preview.splunkbase.splunk.com/app/2734/
Apache License 2.0
8 stars 6 forks source link

Fix mozilla #2

Closed dfederschmidt closed 2 years ago

dfederschmidt commented 2 years ago

This MR resolves the Mozilla list parsing issue described in #1

It seems like during the Python3 conversion the parsing of the Mozilla list ended up in a broken state. While the elements from the list were read correctly, they were not proper strings.

This MR adds a unittest to capture this behaviour.

Also, it fixes an issue with the existing implementation where files are not closed properly and adds some error handling.