[Mono-bugs] [Bug 519271] New: Process.Start should return null for URLs

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jul 3 22:20:24 EDT 2009


           Summary: Process.Start should return null for URLs
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: mhutchinson at novell.com
         QAContact: mono-bugs at lists.ximian.com
                CC: gnorton at novell.com
          Found By: ---

On .NET/Windows, System.Diagnostics.Process.Start (name) returns null for http
URLs. On Mono, it returns a valid process object.

Assert.IsTrue (Process.Start ("http://mono-project.com") == null); //FAILS ON

Similarly, constructing the process object and starting it manually on .NET
results in a process object that isn't associated with a process. Accessing any
member throws an InvalidOperationException ("No process is associated with this

var p = new Process ();
p.StartInfo.FileName = "http://mono-project.com";
p.Start ();
p.WaitForExit (); //THROWS InvalidOperationException

I haven't tested this with other URL schemes. However, using simple filenames
e.g. "C:\foo.txt" does result in a valid process object.

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