PubSub framework cannot be sandboxed
| Originator: | sasmito.adibowo | ||
| Number: | rdar://10219945 | Date Originated: | 1-Oct-2011 |
| Status: | Duplicate of 10211278 (Open) | Resolved: | 05-Oct-2011 07:28 AM |
| Product: | Mac OS X | Product Version: | 10.7.1 |
| Classification: | Bug | Reproducible: | Always |
Summary: Applications that uses the PubSub framework cannot be sandboxed. Whenever a sandboxed application calls [PSFeed initWithData:URL:], the PubSub framework always returns a nil object and a C++ exception is printed in the console. Steps to Reproduce: 1. Create a sandboxed application. 2. Load an RSS URL into an NSData instance. 3. Create a PSFeed instance and pass the feed data into it, like the example below: PSFeed* feed = [[[PSFeed alloc] initWithData:feedData URL:sourceURL] autorelease]; Expected Results: We should get a PSFeed instance that contains the parsed RSS data. Actual Results: We get a nil instance and the following messages are printed into the application's console: [WARNING] SQL Error: SQLITE_CANTOPEN[14.0]: Database file not found [WARNING] ***** SQL error opening database: SQLITE_CANTOPEN[14.0]: Database file not found [WARNING] SQL Error: SQLITE_CANTOPEN[14.0]: Database file not found [WARNING] SQLite::Exception "SQLITE_CANTOPEN[14.0]: Database file not found" caught in static void PubSub::ClientCore::openClientSession() [WARNING] std::exception "std::exception" caught in objc_object* -[PSFeed initWithData:URL:](PSFeed*, objc_selector*, NSData*, NSURL*) Regression: PSFeed works when the application is not sandboxed. Notes: Please allow sandboxing exception for MAS applications that uses the PubSub framework.
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!
Duplicate of 10211278 (Open)
At 05-Oct-2011 07:28 AM Apple marked this as a duplicate and as of 2014-06-30 16:41:46 SGT there is still no resolution.
However there is a workaround through a number of entitlements and a symbolic link.
Details here: http://cutecoder.org/programming/sandboxing-pubsub-framework/