[Mono-bugs] [Bug 637386] Exception is thrown if URI is invalid

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Sep 9 05:17:08 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=637386

https://bugzilla.novell.com/show_bug.cgi?id=637386#c1


Atsushi Enomoto <aenomoto at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Atsushi Enomoto <aenomoto at novell.com> 2010-09-09 09:17:08 UTC ---
Throwing the UriFormatException is the correct behavior, and it should indeed
be. This is what .NET does.

Verifiable test case:

//----
using System;
using System.IO;
using System.Xml;
using System.ServiceModel;
using System.ServiceModel.Syndication;

public class Test
{
        public static void Main ()
        {
                var f = new Atom10ItemFormatter ();
                string xml = @"<entry xmlns='http://www.w3.org/2005/Atom'>
<link rel='alternate' type='text/html' href='http://' /> </entry>";
                using (var xr = XmlReader.Create (new StringReader (xml)))
                        f.ReadFrom (xr);
                Console.WriteLine (f.Item);
        }
}

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list