Entitlements don't allow access to library files outside of ~/Music/iTunes/
| Originator: | dougadamsis | ||
| Number: | rdar://10310738 | Date Originated: | 10/19/2011 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | 4.2 |
| Classification: | Enhancements | Reproducible: | Yes |
Summary: The file paths obtained from com.apple.iApps.plist cannot be accessed by a sandboxed application. Steps to Reproduce: Provide entitlement to access user's ~/Library/Preferences/ folder in order to access the com.apple.iApps.plist. Retrieve the value for "iTunesRecentDatabasePaths" from com.apple.iApps.plist by any means. Attempt to access the file path represented by the value. Expected Results: The ability to access files at the location. Actual Results: If the file does not reside in ~/Music/iTunes/, which is likely if the user has used the iTunes multiple library feature, access to this location is denied. This location cannot be anticipated by the developer in order to enable entitlements for it. Regression: Notes: According to Apple's own documentation, the purpose of the "iTunes Library.xml" file is to allow access by third-party applications. This is not possible under sandboxing if the file resides outside of ~/Music/iTunes/ (which can be accessed via entitlements).
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!