Sandboxing a SQLLite CoreData app - fails when writing journal file alongside

Originator:spelgasoftware
Number:rdar://11284411 Date Originated:20-Apr-2012 12:02 AM
Status:Open Resolved:No
Product:Max OS X Product Version:10.7.3 11D50
Classification: Reproducible:Yes
 
Summary:

I have a CoreData app based on NSPersistentDocument that uses SQLite as its datastore.  When I turn on Sandboxing I can open files that the user chooses, but cannot save to them. The app fails with a sandboxing error while it tries to write a journal file alongside. I don't have control over this file - this seems to be SQLite doing this. 

Steps to Reproduce:

Open app, open data file using standard open file dialog. Make change. Sandbox error on save. Refuses to save.

Expected Results:

Data saved.

Actual Results:

No data saved.

Regression:

Notes:

The error seems to be:
	deny file-write-create /Users/person/Desktop/File.phlgp-journal

and the stack trace is included an attachment.

Is there a temporary entitlement I can use to get around this, or are there plans to fix this in a future update?

Many thanks

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!