NSURL can't create a secure bookmark using a locked file
| Originator: | matteo.rattotti | ||
| Number: | rdar://10944410 | Date Originated: | 28-Feb-2012 09:58 AM |
| Status: | open | Resolved: | |
| Product: | Mac OS X SDK | Product Version: | 10.7.3 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: the method of NSURL bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error: fail to create a secure bookmark (NSURLBookmarkCreationWithSecurityScope option) when a file is locked on the filesystem, this make no sense, because a locked file should be readable. Steps to Reproduce: Lock a file via the info panel of the finder, try to create a secure bookmark passing a NSURL pointing to the file. Expected Results: A NSData containing the information for resolving correctly the secure bookmark. Actual Results: A pointer to nil.
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!