pruthvikar / iphone-dataprotection

Automatically exported from code.google.com/p/iphone-dataprotection
0 stars 0 forks source link

Handling of directories is not robust #99

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Decrypt iPhone backup

What is the expected output? What do you see instead?
1. A complete decryption of the backup

2. Error message somewhere in the middle of the decryption process:

Writing Documents/settings
Traceback (most recent call last):
  File "backup_tool.py", line 78, in <module>
    main()
  File "backup_tool.py", line 75, in main
    extract_backup(backup_path, output_path)
  File "backup_tool.py", line 46, in extract_backup
    mbdb.extract_backup(output_path)
  File "/private/tmp/pm/tmp/iphone-dataprotection/python_scripts/backups/backup4.py", line 127, in extract_backup
    self.extract_file(filename, record, output_path)
  File "/private/tmp/pm/tmp/iphone-dataprotection/python_scripts/backups/backup4.py", line 140, in extract_file
    f = file(output_path + '/' + out_file, 'wb')
IOError: [Errno 21] Is a directory: '/tmp/decrypt//Documents/settings'

What version of the product are you using? On what operating system?
OS X version : 10.7.5
XCode version : 4
Tools revision : 0257c393fe7b+ tip

Please provide any additional information below.

Original issue reported on code.google.com by dbo...@gmail.com on 16 Mar 2013 at 9:35

GoogleCodeExporter commented 8 years ago
Can you email me the Manifest.mbdb file from the backup folder ? it only 
contains filenames from the backup, not the file data and should help 
understand the root cause of the issue.
as a workaround you can try the attached patch.

Original comment by jean.sig...@gmail.com on 19 Mar 2013 at 9:11

Attachments:

GoogleCodeExporter commented 8 years ago
I can e-mail but where do I find your address?

Original comment by dbo...@gmail.com on 19 Mar 2013 at 11:41

GoogleCodeExporter commented 8 years ago
This issue was closed by revision fb07de857def.

Original comment by jean.sig...@gmail.com on 19 Mar 2013 at 12:51