Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

OSXCollector raises "Unable to parse plist" error when the plist is empty #117

Closed
jjsendor opened this issue Dec 9, 2015 · 0 comments
Closed
Labels

Comments

@jjsendor
Copy link
Contributor

jjsendor commented Dec 9, 2015

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant