Mavericks: deleting an app's sandbox container, on next run, the sandbox container is recreated, with the exception of the app's Preferences plist

Originator:kdbdallas
Number:rdar://14970282 Date Originated:09-11-2013 4:10PM
Status:Duplicate Resolved:NO
Product:OS X Product Version:10.9
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
In OS X Mavericks (10.9), after deleting an app's sandbox container, on next run, the sandbox container is recreated, with the exception of the app's Preferences plist.

Steps to Reproduce:
Steps to Reproduce:

 1. Run either of the included apps in Xcode 4.6.3 or Xcode 5 Developer Preview. It has a single checkbox that is persisted to the sandbox's Preferences plist.
 2. Click the checkbox and quit the app.
 3. Re-run the app to verify the checkbox is checked on subsequent launch, and quit the app.
 4. Delete the app's Sandbox: rm -rf ~/Library/Containers/com.orangutango.SandboxDefaults (or com.orangutango.SandboxDefaultsXcode4)
 5. Re-run the app from Xcode, click the checkbox, and quit.
 6. Re-run the app from Xcode, verify the checkbox is *not* checked.
 7. Verify that ~/Library/Containers/com.orangutango.SandboxDefaults{Xcode4}/Data/Library/Preferences/com.orangutango.SandboxDefaults{Xcode4}.plist does not exist.

Expected Results:
 When the Sandbox is recreated, it's expected that the plist for the app's defaults is recreated.

Actual Results:
While the rest of the Sandbox is recreated, the app's defaults plist is not.

Version:
Mac OS X 10.9 (Mavericks)

Notes:
Attached is a sample project you can use to verify the bug (just supplying the Xcode 5 version)

Creating the defaults plist manually in the recreated containers folder makes it so values will start saving again.

Duplicate of <rdar://problem/14187964>

Configuration:
This is a regression from 10.8, where the same code works as expected.  
Mac Pro.spx - configuration file has been successfully uploaded

Attachments:
'SandboxDefaults.zip' and 'Mac Pro.spx' were successfully uploaded.

------------------------------------

Apple Developer Relations13-Sep-2013 04:40 PM

Engineering has determined that your bug report is a duplicate of another issue and will be closed. 

The open or closed status of the original bug report your issue was duplicated to appears in the yellow "Duplicate of XXXXXXXX" section of the bug reporter user interface. This section appears near the top of the right column's bug detail view just under the bug number, title, state, product and rank.

Example:

13556600 User interface anomaly in OS X
                  
State: Duplicate                   Product: OS X
Rank: 3 - Medium
---------------------------------------------------------------
Duplicate of 10535951 (Open)
---------------------------------------------------------------


If you have any questions or concerns, please update your report directly here: http://bugreport.apple.com/.

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!