Application Sandboxing - issues with AddressBook.framework

Originator:kaspars
Number:rdar://11307390 Date Originated:24-Apr-2012
Status:Open Resolved:
Product:Mac OS X SDK Product Version:10.7.3
Classification: Reproducible:
 
Summary:

Application sandboxing causes problems with AddressBook.framework even when com.apple.security.personal-information.addressbook entitlement is enabled. Read-only mode works fine but when performing update the following errors are logget to console repeatedly:

4/24/12 12:34:13.877 PM sandboxd: ([5846]) ABSandboxTest(5846) deny file-read-data /Users/dev/Library/Preferences/com.apple.AddressBook.plist.lockfile
4/24/12 12:34:13.878 PM sandboxd: ([5848]) AddressBookSync(5848) deny mach-lookup com.apple.syncservices.SyncServer
4/24/12 12:34:13.883 PM sandboxd: ([5846]) ABSandboxTest(5846) deny file-write-create /Users/dev/Library/Preferences/com.apple.AddressBook.plist.sb-344ba5c6-QamLum

Another side effect is that application appears stuck for second or often more when saving updates to Address Book.

Steps to Reproduce:

Run the following code in a sandboxed Cocoa application with com.apple.security.personal-information.addressbook entitlement:

  ABAddressBook *ab = [ABAddressBook sharedAddressBook];
  (void)[[ABPerson alloc] initWithAddressBook:ab];
  [ab save];

Expected Results:

  This code is executed instantly, there are no sandboxing errors in console.

Actual Results:

  The code takes ~0.7 seconds when first executed, and causes a bunch of sandboxing errors in console as illustrated above.

Regression:

N/A

Notes:

N/A

Comments

duplicate

comment from apple - duplicate of 11068109 (which appears to be closed)


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!