[Mono-bugs] [Bug 372840] New: System.UriBuilder and System.Net.WebRequest don' t handle zone id part of URIs correctly
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Mar 20 19:31:00 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=372840
Summary: System.UriBuilder and System.Net.WebRequest don't handle
zone id part of URIs correctly
Product: Mono: Class Libraries
Version: 1.2.6
Platform: Other
OS/Version: Linux
Status: NEW
Severity: Major
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: slomo at circular-chaos.org
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Hi,
System.UriBuilder and System.Net.WebRequest don't handle zone id part of URIs
correctly.
When creating an URI with System.UriBuilder where the host string is something
like "XXXX::XXXX:XXXX:XXXX:XXXX%Y" (note the %Y!) ToString() will double-escape
the % to %25 which makes the resulting completely invalid.
Then System.Net.WebRequest.Create() with an URI that contains a IPv6 address
and zone id part simply won't work, even if the operation system itself
supports it.
Good news is, that at least IPAddress.ToString() correctly outputs the zone id
:)
To read everything about zone ids:
http://tools.ietf.org/html/rfc4007#section-11.2
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list