[Mono-bugs] [Bug 75950][Nor] New - Assembly.CodeBase should not return the escaped code base

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Aug 31 18:00:46 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by mono at kinitos.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75950

--- shadow/75950	2005-08-31 18:00:46.000000000 -0400
+++ shadow/75950.tmp.31655	2005-08-31 18:00:46.000000000 -0400
@@ -0,0 +1,55 @@
+Bug#: 75950
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mono at kinitos.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Assembly.CodeBase should not return the escaped code base
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Assembly.CodeBase currently returns the same string as EscapedCodeBase.  It
+should return the unescaped codebase instead.  
+
+This has the effect of causing
+System.Configuration.Install.AssemblyInstaller to attempt to use the
+escaped path when trying to determine the location of the log file.  The
+should the assembly's path include characters that are escaped (in
+particular I'm getting problems with { and }) the attempt to write to the
+log fails with a "directory not found"
+
+Steps to reproduce the problem:
+1. Run the attached test on mono, and on .net.  On .net the CodeBase shows
+the unescaped path correctly.  On mono it shows the escaped path for the
+CodeBase.
+
+Actual Results:
+$ ./main.exe
+Escaped CodeBase =
+'file:///home/test/src/mono-testcases/AssemblyCodeBase/%7Bfoodir%7D/TestAssembly.dll'
+CodeBase         =
+'file:///home/test/src/mono-testcases/AssemblyCodeBase/%7Bfoodir%7D/TestAssembly.dll'
+
+
+Expected Results:
+C:\mono-test>main.exe
+Escaped CodeBase = 'file:///C:/mono-test/%7Bfoodir%7D/TestAssembly.dll'
+CodeBase         = 'file:///C:/mono-test/{foodir}/TestAssembly.dll'
+
+How often does this happen? 
+Every time.
+
+Additional Information:
+This was observed on mono-1.1.8.3, built from the source, on
+debian/unstable running a 2.6.9 kernel


More information about the mono-bugs mailing list