NSString stringByAbbreviatingWithTildeInPath should be permissible in sandbox
| Originator: | jon | ||
| Number: | rdar://19716583 | Date Originated: | 2/4/15 |
| Status: | Open | Resolved: | |
| Product: | OS X SDK | Product Version: | |
| Classification: | Other Bug | Reproducible: | Always |
My app is a tool specifically for copying the file path of selected items in the Finder. It then performs various transformations on that path. One of the options is to replace /Users/username with ~. To accomplish this, I rely on the above call. When the app was sandboxed, this feature suddenly stopped working, because stringByAbbreviatingWithTildeInPath always returns the original string with no replacements. I don't see a security risk here, and it is currently possible to get the home directory through other means (getpwuid), so I don't see why this call is not permissible. Can you please allow this to work in a sandbox?
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!