stringByAbbreviatingTildeInPath does not work under sandboxing
| Originator: | erik.aderstedt | ||
| Number: | rdar://11008975 | Date Originated: | 2012-03-08 |
| Status: | Open | Resolved: | |
| Product: | Mac OS X | Product Version: | 11D50b (10.7.3) |
| Classification: | Serious bug | Reproducible: | Always |
Summary: -[NSString stringByAbbreviatingWithTildeInPath] returns an unaltered string when running in the sandbox. Steps to Reproduce: For a user 'erik', call [@"/Users/erik/whatever" stringByAbbreviatingWithTildeInPath]. Expected Results: "~/whatever" Actual Results: "/Users/erik/whatever" Regression: Works as expected when the sandbox is disabled. Notes: The path in question is not added to the app's allowed file list, but as I understand it the method should work regardless of whether the path even exists or not.
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!
Wrong method name
stringByAbbreviatingTildeInPath in the title should of course be stringByAbbreviatingWithTildeInPath