[Mono-bugs] [Bug 56801][Nor] New - UrlUtils.MakeRelative returning null

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 10 Apr 2004 21:49:53 -0400 (EDT)

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 vladimir@pobox.com.


--- shadow/56801	2004-04-10 21:49:53.000000000 -0400
+++ shadow/56801.tmp.30219	2004-04-10 21:49:53.000000000 -0400
@@ -0,0 +1,28 @@
+Bug#: 56801
+Product: Mono: Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vladimir@pobox.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: UrlUtils.MakeRelative returning null
+In WebConfigurationSettings.cs:GetConfig(), while working with nGallery,
+The context.Request.FilePath that I was getting in contained
+"/default.aspx", and the dirname "/".  It then calls
+UrlUtils.MakeRelative() on these two, which I think is expecting a full URI
+as the first url -- it returns null in this case.  I'm unsure of where
+exactly the problem lies; the MSDN docs weren't clear on whether the
+Request.FilePath is a full URI or not.
+My hack fix was to check if the FilePath starts with "/" and the dirname ==
+"/", and to just use the filepath in that case.