-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
plistlib unable to load iOS7 Safari History.plist #65737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
plistlib has key error when attempting to load the iOS7 In [8]: with open('cases/vitale_test_iphone/unback/AppDomain-com.apple.mobilesafari/Library/Safari/History.plist', 'rb') as f: KeyError Traceback (most recent call last)
<ipython-input-8-7824ac03848c> in <module>()
1 with open('cases/vitale_test_iphone/unback/AppDomain-com.apple.mobilesafari/Library/Safari/History.plist', 'rb') as f:
----> 2 plist = plistlib.load(f)
3 /usr/lib/python3.4/plistlib.py in load(fp, fmt, use_builtin_types, dict_type) /usr/lib/python3.4/plistlib.py in parse(self, fp) KeyError: 3 |
Can you attach a zipped version of the failing plist or at least identify what data in it is causing the exception? Presumably that plist is user-specific, i.e. contains browser history. |
I have shared the file for which I have permission, but neither of two Thank you. On Mon, May 19, 2014 at 4:18 PM, Ned Deily <report@bugs.python.org> wrote:
|
John, a quick look at the file shows that it contains browsing history information that might be personally identifiable. I don't think that is appropriate to store on a public web site like this one so I've deleted the file. Is there some way to provide a simpler file with non-personal history? |
Ned, I understand. I did get permission to post that history, and as I Can you suggest where I can put a print statement in the library or some On Mon, May 19, 2014 at 5:51 PM, Ned Deily <report@bugs.python.org> wrote:
|
I think this patch should fix the issue. But tests needed. |
And here is a patch with test. |
Serhiy, I applied the patch and can confirm this is a fix (three previous On Mon, May 19, 2014 at 11:08 PM, Serhiy Storchaka
|
Patch plistlib_read_refs_2.patch corrects load error for iOS Safari History.plist. |
Issue shouldn't be closed as resolved until patch is committed. Ronald, is it good to you? |
The patch looks good. |
New changeset f0452bc62cc3 by Serhiy Storchaka in branch '3.4': New changeset b2c5d0cba5fd by Serhiy Storchaka in branch 'default': |
Thank you John for your report. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: