[Mono-bugs] [Bug 338116] New: HttpRuntime.BinDirectory returns multiple relative paths

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 31 09:04:41 EDT 2007


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

           Summary: HttpRuntime.BinDirectory returns multiple relative paths
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: juraj at hotfeet.ch
         QAContact: mono-bugs at ximian.com
          Found By: ---


Test case (save as index.aspx):
===============================

<%= AppDomain.CurrentDomain.SetupInformation.PrivateBinPath %><br />
<%= HttpRuntime.BinDirectory %>

Result on .NET:
---------------
C:\Inetpub\wwwroot\test\bin
C:\Inetpub\wwwroot\test\bin\


Result on Mono:
---------------
Bin;bin
Bin;bin


HttpRuntime.BinDirectory just returns the value of
AppDomain.CurrentDomain.SetupInformation.PrivateBinPath.

While the docs for PrivateBinPath explicitely allow for multiple paths,
BinDirectory should return a single path. Both methods should return absolute
paths to be compatible with MS.NET.

To copy with the case sensitivity dilemma (bin vs. Bin):
In the getter to HttpRuntime.BinDirectory, we should probably iterate over all
paths returned from PrivateBinPath and return the first one that actually
exists. If none exists, return the first path in the list (MS.NET returns
"C:\Inetpub\wwwroot\test\bin\" even when it doesn't exist).


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