Bookmark transformation destroys URL

Originator:recordtronic
Number:rdar://12302780 Date Originated:14-Sep-2012 04:04 PM
Status:Open Resolved:
Product:OS X Product Version:10.7.4-10.8.1
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
When a secure bookmark is created for the root of a volume, and then security-scoped bookmarked, resolved, bookmarked normally (no security scope), and resolved normally, the resulting URL is not the same as the original.

Steps to Reproduce:
See attached project. The code spells it out. 
You must choose the root level of a hard disk (not the startup disk) to see this issue.

Expected Results:
URL after bookmarking and resolution steps is the same as original

Actual Results:
Bookmark is not the same.

Regression:
- On 10.7.4, the final URL is file://localhost/
- On 10.8.1, the final URL is URL:file://localhost/?applesecurityscope=...
neither of which include the name of the volume

Notes:

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!