[Mono-bugs] [Bug 616050] New: Guid class doesnt throw excepction when given an invalid guid string

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jun 21 14:34:30 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=616050

http://bugzilla.novell.com/show_bug.cgi?id=616050#c0


           Summary: Guid class doesnt throw excepction when given an
                    invalid guid string
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: 64bit
        OS/Version: RHEL 5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: srfcanada at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64;
Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152)

This throws an exception on windows .net but in mono, it strips the trailing
a's . Maybe its trying to be helpfull by doing this but it really should follow
with what windows does and raise an exception given the extranious text could
mean there are other problems. It used to in mono 2.4 but im not sure what it
changed to not do this anymore:

ie. 
Guid g1 = new Guid("Reservoir:b7734fed-8459-4871-9231-9ba801ff0134aaaaaa");
should throw and exception rather than try and trim the training a's.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
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