OSXCollector raises "Unable to parse plist" error when the plist is empty
jjsendor opened this issue · 0 comments
jjsendor commented
In some cases, e.g. when the Safari browser history is empty, the corresponding plist file is empty as well. It can happen if the user has never used the browser.
In that case the error:
[ERROR] Unable to parse plist: [The data couldn’t be read because it isn’t in the correct format.]. plist_path[/Users/jdoe/Library/Safari/History.plist] - {'osxcollector_incident_id': 'safari-2015_12_08-20_10_31', 'osxcollector_username': 'jdoe', 'osxcollector_subsection': 'history', 'osxcollector_section': 'safari'}
is raised.
Rather then that, OSXCollector could raise a warning and note that the plist is empty.