[Mono-bugs] [Bug 506111] New: System.Security.Policy.Url does not support absolute Windows file paths
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu May 21 14:45:38 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=506111
Summary: System.Security.Policy.Url does not support absolute
Windows file paths
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: All
OS/Version: Windows
Status: NEW
Severity: Normal
Priority: P5 - None
Component: CORLIB
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: gert.driesen at pandora.be
QAContact: mono-bugs at lists.ximian.com
Found By: ---
On the 1.0 profile, System.Security.Policy.Url throws a FormatException for an
absolute Windows file path.
Currently there are no unit tests covering this, but this issue is causing the
MonoTestsXml.XmlSecureResolverTests.CreateEvidenceForUrl_Local test to fail on
Windows.
using System.Security.Policy;
using System.Xml;
class Program
{
static void Main ()
{
Url url = new Url (@"C:\windows\notepad.exe");
System.Console.WriteLine (url.Value);
}
}
Actual result:
Unhandled Exception: System.FormatException: Invalid URI: invalid port number
at Mono.Security.Uri.Parse (System.String uriString) [0x00000]
at Mono.Security.Uri.Parse () [0x00000]
at Mono.Security.Uri..ctor (System.String uriString, Boolean dontEscape,
Boole
an reduce) [0x00000]
at System.Security.Policy.Url.Prepare (System.String url) [0x00000]
at System.Security.Policy.Url..ctor (System.String name, Boolean validated)
[0
x00000]
at System.Security.Policy.Url..ctor (System.String name) [0x00000]
at Program.Main () [0x00000]
Expected result:
file://C:/windows/notepad.exe
--
Configure bugmail: http://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