[Mono-bugs] [Bug 478489] New: System.IO.Path.GetDirectoryName does not throw exception for the value ":C/"

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Feb 22 00:36:33 EST 2009


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


           Summary: System.IO.Path.GetDirectoryName does not throw
                    exception for the value ":C/"
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: x86
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: joe at mistachkin.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.20)
Gecko/20081217 Firefox/2.0.0.20 (.NET CLR 3.5.30729)


In .NET Path.GetDirectoryName fails with an exception for the value ":C/".  On
Mono it simply returns ":C".

This is not a big deal; however, it does represent a difference in the
semantics of this method between Mono and .NET.


Reproducible: Always

Steps to Reproduce:
1. Call System.IO.Path.GetDirectoryName with an argument value of ":C/".
2. The return value is ":C" when an exception should be raised.
Actual Results:  
The value ":C" is returned.

Expected Results:  
An exception "System.ArgumentException: The path is not of a legal form."
should be raised.

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