Stored local file paths can't be opened on sandboxed app

Originator:davide.ficano
Number:rdar://10426382 Date Originated:10-Nov-2011 06:14 PM
Status:Open Resolved:
Product:Mac App Store Product Version:
Classification:Serious Bug Reproducible:
 
Summary: I've a sandboxed app that saves documents using standard NSPersistentDocument APIs, the document data model stores local file path as NSString. When the user re-opens the saved document the application says "sandboxd: deny file-read-data xxxx"

Steps to Reproduce:
1. Open App
2. Select local file path  using drag&drop
3. Save document
4. Close App
5. Reopen App
6. Reload saved document
7. sandbox alert is shown

Expected Results:

Normal behaviour

Actual Results:

Regression:

Notes:
Using com.apple.security.temporary-exception.files.absolute-path.read-write doesn't resolve the problem

The application is VisualDiffer already present on MAS, I found very hard to many it usable with sandbox

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!