Open
Description
Previous ID | SR-2252 |
Radar | None |
Original Reporter | @beccadax |
Type | Bug |
Environment
Xcode 8 beta 4 (swiftlang-800.0.41.2), OS X 10.11.5 (15F34)
Additional Detail from JIRA
Votes | 1 |
Component/s | Foundation |
Labels | Bug, SDKOverlay |
Assignee | None |
Priority | Medium |
md5: 814ae571937761d91f55e39691ec4779
Issue Description:
The Foundation overlay included with Xcode 8 beta 4 (swiftlang-800.0.41.2) marks the `resourceSpecifier` as "Unavailable" with the message "Use `path`, `query`, and `fragment` instead". However, when initialized with a `mailto` URL, none of these properties contains the email address. In fact, if you paste the following code into a REPL, you'll notice that no property contains the email address without the "mailto:" prefix:
import Foundation
let url = URL(string: "mailto:test@example.com")!
dump(url.absoluteString)
dump(url.relativeString)
dump(url.baseURL)
dump(url.absoluteURL)
dump(url.scheme)
dump(url.host)
dump(url.port)
dump(url.user)
dump(url.password)
dump(url.path)
dump(url.relativePath)
dump(url.fragment)
dump(url.query)
The relevant commit seems to be <swiftlang/swift@05778cc9aba3eab2576786e4008a7bce0e0d43b9\>.