[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #25003] NSURL doesn't support IPv6 host addresses (RFC2732)
From: |
Larry Campbell |
Subject: |
[bug #25003] NSURL doesn't support IPv6 host addresses (RFC2732) |
Date: |
Wed, 03 Dec 2008 16:00:00 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1 |
URL:
<http://savannah.gnu.org/bugs/?25003>
Summary: NSURL doesn't support IPv6 host addresses (RFC2732)
Project: GNUstep
Submitted by: lcampbel
Submitted on: Wed 03 Dec 2008 03:59:59 PM GMT
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
The following code snippet:
url = [[[NSURL alloc] initWithString:@"http://[2001:4860:0:2001::68]/"]
autorelease];
NSLog(@"url host=\"%@\", absolute string=\"%@\"", [url host], [url
absoluteString]);
url = [[[NSURL alloc] initWithScheme:@"http" host:@"2001:4860:0:2001::68"
path:@"/"] autorelease];
NSLog(@"url host=\"%@\", absolute string=\"%@\"", [url host], [url
absoluteString]);
url = [[[NSURL alloc] initWithScheme:@"http"
host:@"[2001:4860:0:2001::68]" path:@"/"] autorelease];
NSLog(@"url host=\"%@\", absolute string=\"%@\"", [url host], [url
absoluteString]);
produces:
2008-12-03 10:58:54.189 NSURLBug[19005] <NSException: 80b64f8>
NAME:NSGenericException REASON:illegal character in port part
2008-12-03 10:58:54.236 NSURLBug[19005] url host="(nil)", absolute
string="(nil)"
2008-12-03 10:58:54.236 NSURLBug[19005] <NSException: 80e9148>
NAME:NSGenericException REASON:illegal character in port part
2008-12-03 10:58:54.237 NSURLBug[19005] url host="(nil)", absolute
string="(nil)"
2008-12-03 10:58:54.237 NSURLBug[19005] <NSException: 80fe5a0>
NAME:NSGenericException REASON:illegal character in port part
2008-12-03 10:58:54.237 NSURLBug[19005] url host="(nil)", absolute
string="(nil)"
It seems there's no RFC2732 support in NSURL.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?25003>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #25003] NSURL doesn't support IPv6 host addresses (RFC2732),
Larry Campbell <=