[Mono-bugs] [Bug 322328] Uri: UriFormatException on linux for files with colons

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun May 18 12:24:04 EDT 2008


User miguel at novell.com added comment

--- Comment #11 from Miguel de Icaza <miguel at novell.com>  2008-05-18 10:24:04 MST ---
Created an attachment (id=216239)
 --> (https://bugzilla.novell.com/attachment.cgi?id=216239)
Patch that allows absolute path names to avoid the schema specified check in
the Uri constructor

This patch will work around the problem by specially handling absolute file
paths.   This is not really correct because it will clearly fail when paths are
relative, say when you try a relative Uri creation for "hello:world".

This passes our test suite so far, but I believe we should investigate what is
the expected behavior for:

* Relative Uri creation on a file like "hello:world"
* Relative Uri creation on a file like "dingus/hello:world"

We could probably make the checks milder if we are dealing with a
UriKind.Relative and we find colons but keep is strict as we have them now if
we are using absolute Uris. 

But I still would like to understand what pieces of software fail currently.

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