[Mono-bugs] [Bug 346432] New: empty URI error
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Dec 6 04:09:01 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=346432
Summary: empty URI error
Product: Mono: Class Libraries
Version: 1.2.5
Platform: x86
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at ximian.com
ReportedBy: xmak at studioartlan.com
QAContact: mono-bugs at ximian.com
Found By: Other
Description of Problem:
I found some strange behaviour in "System.Uri" class in mono. Executing this
code:
new System.Uri("", System.UriKind.Relative);
throws "Invalid URI format" exception and the applicatin hangs.
Furthermore, executing this:
new System.Uri("X", System.UriKind.Relative);
also throws the same exception. (you can replace "X" by any other letter,
it's important that it has only one character)
Since when running the same code in Windows .NET, the exception is not
thrown, and everything works OK, I supose this is a bug in Mono.
Steps to reproduce the problem:
1. Create a new mono application
2. Add this:
new System.Uri("", System.UriKind.Relative);
somwhere in the code.
3. Execute the compiled application in manner that the inserted code gets
executed.
Actual Results:
"Invalid URI format" exception is thrown.
Expected Results:
Nothing should happen, the apliction should continute executing normallly.
How often does this happen?
Every time.
Additional Information:
P.S. This is a pretty seroius error for me, since the code generator in
SharpDevelop (which I use) generates exactly this kind of code (wtih empty
string for URI) for some objects.
--
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