2008-05-29  Marek Habersack  <mhabersack@novell.com>

	* UriParser.cs: use the lock in CreateDefaults in the way that it
	needs to acquired only once.

2008-03-10  Stephane Delcroix  <sdelcroix@novell.com>

	* Uri.cs: Fix escaping on utf8 strings. bug 363320.

2008-02-15  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : UriParser field blocks serialization.

2008-01-23  Robert Jordan  <robertj@gmx.net>

	* Uri.cs (Parse): Handle uriString.Length == 1 as a valid relative URI.
	Fixes #346432.

2007-12-04  Arina Itkes <arinai@mainsoft.com>

	* Uri.cs: Unix absolute path should not be valid on Windows.

2007-11-13  Zoltan Varga  <vargaz@gmail.com>

	* UriIdnScope.cs: Compile this in the 2.0 profile as well as this is a NET 3.5 type.

2007-11-06  Sebastien Pouliot  <sebastien@ximian.com>

	* Uri.cs: Revert monodoc hack from r53093 since bug #319550 (old
	#76725) has been fixed (around 2006-05-21).

2007-11-06  Gert Driesen  <drieseng@users.sourceforge.net>

	* UriBuilder.cs: Fixed regression introduced by patch for bug
	#323247: always initialize UriBuilder.Query to zero-length string.
	On 2.0 profile, do not initialize query to zero-length string when
	Fragment is set. Remove extra tabs.

2007-11-04  Jensen Somers <jensen.somers@gmail.com>

        * UriBuilder.cs (ToString): Added Fragment property to the
        return string.
        
        (Fragment, Query): Properties are no longer set to an empty
        string from version 2.0 and up.

2007-11-02  Miguel de Icaza  <miguel@novell.com>

	* Uri.cs (AppendQueryAndFragment): Unescape the query with
	excludeSpecial = false.  See bug #320614.

	Unlike the patch on that bug, this only unescapes the query and
	not the Path.   This keeps our existing tests working. 

2007-09-29  Miguel de Icaza  <miguel@novell.com>

	* Uri.cs (ToString, MakeRelativeUri): refactor some code in
	ToString to be reusable (to append the query string and the
	fragment) by MakeRelativeUrl.

	This fixes the MakeRelativeUrl stuff, but the tests can not be
	used just yet because we fail with stuff like: 

		new Uri ("", UriKind.Relative)

	(Parse): when parsing absolute filenames, check if the
	UriKind is Relative, and if so, make the isAbsoluteUri false, to
	ensure that the upper layers do not abort with relative Uris that
	happen to be "/foo" for example.

	Take an UriKind property to allow for proper checking and parsing
	depending on the context requested by the caller. 

	Allows empty strings to be relative Uris as well.

	Do checking when we have schema:// that the parsing is not for a
	UriKind.Relative, otherwise throw an exception. 

	(Authority, HostNameType, IsDefaultPort, IsFile, IsLoopback,
	PathAndQuery, DnsSafeHost): They all require absolute uris.

	* UriKind.cs: make internal for 1.0
	
2007-09-05  Marek Habersack  <mhabersack@novell.com>

	* UriTypeConverter.cs: conversion from string should be possible
	for both relative and absolute URIs.
	Conversion to a string or an InstanceDescriptor must not assume
	that the uri is absolute.
	ConvertTo must pass the uri kind to the constructor used in
	InstanceDescriptor.

2007-08-01  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs, UriParser.cs : implemented InitializeAndValidate() and
	  IsWellFormedOriginalString().
	  IsWellFormedUriString() is already implemented.

2007-07-06  Alan McGovern  <amcgovern@novell.com>

	* Uri.cs : The URI string should be whitespace trimmed before
	parsing. The original string is untouched. Fixes #81960.

2007-07-06  Atsushi Enomoto  <atsushi@ximian.com>

	* UriIdnScope.cs : new file (for net_2_1 profile).

2007-06-30  Miguel de Icaza  <miguel@novell.com>

	* Uri.cs (GetLeftPart): If the URI is relative this method throws
	InvalidOperationException. 

	(ToString): do not use GetLeftPart here, instead escape the path. 

	(Parse): For relative uris, keep the string as the path.

2007-06-30  Gert Driesen  <drieseng@users.sourceforge.net>

	* Uri.cs: Canonicalize is only obsolete from 2.0 onward. Fixed line
	endings.

2007-04-18  Igor Zelmanovich  <igorz@mainsoft.com>

	* Uri.cs: added MonoNotSupported attributes.

2007-04-16  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : in Uri(baseUri,relativeUri,noEscape), relativeUri could
	  contain a URI scheme. In such cases the relativeUri could be still
	  relative (i.e. not always equivalent to absolute). Fixed bug #81382.

2007-03-05  Peter Dettman  <peter.dettman@iinet.net.au>

	* Uri.cs: This patch straightens out Equals/GetHashCode for the
	Uri class: 

	- GetHashCode gives sensible values for relative Uri's.
	- Uri's that compare equal will give same hashcode.  
	- operator == now uses Equals.

	All existing tests still pass, and I have added some extra test
	cases specifically for Equals/GetHashCode on relative Uri's
	(included in patch).

2007-01-22  Miguel de Icaza  <miguel@novell.com>

	* Uri.cs (MakeRelativeUri): implement, copy most of the code from
	MakeRelative. 
	
	(EscapeUriString, EscapeDataString): Implement stuff
	needed by apps in Moma.

2006-12-07  Vladimir Krasnov  <vladimirk@mainsoft.com>

	* Uri.cs: implemented UnescapeDataString method

2006-09-28  Andrew Skiba  <andrews@mainsoft.com>

	* UriParser.cs: TARGET_JVM
	* UriFormatException.cs: MonoTODO

2006-08-01  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : don't compare UserInfo in Equals() and op_Equality().
	  Fixed a bug commented in #78799.

2006-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* Uri.cs: update Obsolete msg.

2006-06-05  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : revert the previous change as it caused UriTest.
	  Constructors(#rel2a). ToString() for SourceString should be
	  enough for lame users.

2006-05-13  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : sometimes OriginalString was null. Fixed bug #78374.
	  Actually this property is LAMESPEC. Never use it.

2006-04-28  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : Patch by pawel.sakowski@mind-breeze.com (bug #77382).
	  Reduce object allocation and avoid culture-sensitive comparison.

2006-03-11  Miguel de Icaza  <miguel@novell.com>

	* Uri.cs: Pragma disable warning 612 (Obsolete methods are being
	used by us internally).

	Ponder: should we instead move our methods to use new versions of
	the Obsoleted ones?

2006-02-21  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : seems like Uri opreator == and != are case sensitive.

2006-02-19  Raja R Harinath  <harinath@gmail.com>

	* Uri.cs (InternalEquals): New helper.
	(Equals, operator ==): Use it.
	(operator !=): Likewise.  Fix to actually compare operands.

2006-02-14  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : implemented op_Equality and op_Inequality.

2006-02-14  Ankit Jain  <jankit@novell.com>

	* Uri.cs (Uri.EnsureAbsoluteUri): New. Throws exception if its not an
	absolute uri.
	(Uri.Parse): Set isAbsoluteUri to false, if the address is not absolute.
	All properties other than OriginalString, IsAbsoluteUri & UserEscaped
	throw exception for relative address.

2005-11-25  Sebastien Pouliot  <sebastien@ximian.com> 

	* DefaultUriParser.cs: Added an internal default parser because (a)
	UriParser is abstract and (b) MS doesn't always use the new parser
	classes :(
	* Uri.cs: Implemented Compare method. Added some FIXME.
	* UriParser.cs: Implemented GetComponents and IsBaseOf methods. 
	Changed parsers to point to the new DefaultUriParser.

2005-11-15  Sebastien Pouliot  <sebastien@ximian.com> 
 
	* Uri.cs: Temporary fix for monodoc (which current Uri system won't
	work under 2.0).

2005-11-15  Sebastien Pouliot  <sebastien@ximian.com>

	* FileStyleUriParser.cs: New. 2.0 Uri parser class.
	* FtpStyleUriParser.cs: New. 2.0 Uri parser class.
	* GenericUriParser.cs: New. 2.0 Uri parser class.
	* GopherStyleUriParser.cs: New. 2.0 Uri parser class.
	* HttpStyleUriParser.cs: New. 2.0 Uri parser class.
	* LdapStyleUriParser.cs: New. 2.0 Uri parser class.
	* NetPipeStyleUriParser.cs: New. 2.0 Uri parser class.
	* NetTcpStyleUriParser.cs: New. 2.0 Uri parser class.
	* NewsStyleUriParser.cs: New. 2.0 Uri parser class.
	* Uri.cs: Lots of small fixes for both 1.x and 2.0. Some *big* bugs
	in 1.x (fixed in 2.0) aren't fixed for Mono (and probably never will).
	This class still needs to be refactored to be usable with the new
	parsers.
	* UriParser.cs: New. 2.0 Uri parser base class.

2005-11-14  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : Unescape(string,bool) should also handle % and ?.
	  In ToString(), unescape query part as well. Fixed bug #76643.

2005-10-21  Atsushi Enomoto  <atsushi@ximian.com>

	* UriBuilder.cs : ToString() should not add duplicate '/' before path.
	  Fixed bug #76501. Patch by Hubert Fongarnand + modified a bit.

2005-10-18  Sebastien Pouliot  <sebastien@ximian.com>

	* UriTypeConverter.cs: New. Implemented (2.0).

2005-10-17  Sebastien Pouliot  <sebastien@ximian.com>

	* GenericUriParserOptions.cs: New. 2.0 enum.
	* UriBuilder.cs: Port == -1 is valid (default) in 2.0. Default name
	is "localhhost" (not loopback) in 2.0. Fixed case where the Password
	property could be null (instead of String.Empty).
	* UriComponents.cs: New. 2.0 enum.
	* UriFormat.cs: New. 2.0 enum.
	* UriFormatException.cs: Added comments about GetObjectData.
	* UriKind.cs: New. 2.0 enum.
	* UriPartial.cs: Added Query value for 2.0.

2005-08-16  Daniel Drake  <dsd@gentoo.org>

	* Uri.cs: Various parsing fixes from bug #75144.

2005-07-09  Gert Driesen  <drieseng@users.sourceforge.net>

	* Uri.cs: Modified fix for bug #71053 to match both MS.NET 1.x and
	2.0 behaviour. Parse method is no longer used on MS.NET 2.0, marked 
	obsolete.

2005-07-09  Gert Driesen  <drieseng@users.sourceforge.net>

	* Uri.cs: in .NET 2.0, port number should be valid UInt16 instead of
	UInt32. If outcome of parsing is -1, do not consider this to be the
	default port.

2005-07-08  Daniel Drake  <dsd@gentoo.org>

	* Uri.cs: Allow descent multiple times below root. Fixes bug #71053.

2005-07-02  Daniel Drake  <dsd@gentoo.org>

	* Uri.cs: HexUnescape() should only work on single-byte escape
	sequences, ala HexEscape(). However, we still want to handle multi-byte
	sequences internally, so introduce a more correct implementation of
	multi-byte unescaping, HexUnescapeMultiByte(). Fixes bug #74872.

2005-06-11 Gert Driesen <drieseng@users.sourceforge.net>

	* Uri.cs: Domain address might have trailing period to indicate
	that the domain name is fully qualified. Fixes bug #75230.

2005-06-02 Gert Driesen <drieseng@users.sourceforge.net>

	* Uri.cs: throw UriFormatException if URI starts with colon.
	Fixed bug #75124.

2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* Uri.cs:
	(EscapeString): no need to turn the string into a char[] when calling
	GetBytes.

2005-03-20 Joshua Tauberer <tauberer@for.net>

	* Uri.cs: Some pedantic changes to the text of a few exceptions.

2005-03-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* Uri.cs: when unescaping in stages, handle the case when the next
	substring is not a escaped sequence or the string ends. Fixes bug
	#73316.

2005-01-20  Miguel de Icaza  <miguel@ximian.com>

	* Uri.cs: Set the UriSchemNews port default to 119 as well.
	Fixes bug #71050.

	When dealing with fragments use the `dontEscape' flag passed to
	the Uri constructor to decide whether the fragment must or must
	not be escaped, fixes 71051.

2004-06-22  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : Such ctor arg string that starts with "//" should be 
	  regarded as a local file path that will be condensed to single "/",
	  so handle such path differently under Windows and under *nix.
	  Since '\\' is a valid path character on Unix, so we should not
	  replace it with '/' in LocalPath.

2004-06-17  Jackson Harper  <jackson@ximian.com>

	* Uri.cs: Use invariant culture.
	
2004-06-16  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : Fixed LocalPath. In that condition, path is always UNC.

2004-06-16  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : Reimplemented HexUnescape() (It was too broken to handle
	  multi-byte utf-8 characters.)

2004-06-11  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs :
	  - We don't have to mind '\\'.
	  - Fixed bug #58301. When path starts with "///" and not more than
	    "////" and not "///*:", handle it as unix path and set Host as
	    empty string. In absolute path case, port should not be parsed
	    and LocalPath should start with '/'.
	  - Handle fragment in prior to path. 

2004-06-11  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : Handle Windows UNC. Now we could simplify Parse(). Don't
	  escape windows path twice. Check scheme name as defined in RFC2396.

2004-06-11  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : Reverted some changes. '#' should be handled when the input
	  string is NOT raw file path. So handle raw file paths differently.
	  (right now except for Windows UNC).
	  Cache LocalPath and don't compute every time.

2004-06-10  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : Don't escape '#' in file URI paths. This fixes bug #47691.
	  Some code simplification.

2004-06-09  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : 
	  - Now Parse() is properly implemented. If overriden, the overriding
	    Parse() is used _instead of_ this class's parsing logic.
	  - AbsoluteUri does not escape URI string at all.
	  - ToString() should unescape Query. But should not unescape fragment.
	    And all all parts should be unescaped individually to keep ? and #.
	  - In relative .ctor(), handle Windows UNC as an absolute file URI.
	  - In some cases, hosts and paths were not properly escaped in
	    relative .ctor().
	  - Removed unused isWindowsPath.
	  - Escape Query.
	* UriBuilder.cs : Fragment and Query aren't escaped when they are set.

2004-05-12  Dick Porter  <dick@ximian.com>

	* Uri.cs: Reduce(string) is not in the public API.

2004-04-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* UriBuilder.cs: ignore empty Query. Fixes bug #57082.

2004-03-21  Jackson Harper  <jackson@ximian.com>

	* Uri.cs: Equals should be case insensitive for all parts except
	the path.

2004-02-11  Jackson Harper  <jackson@ximian.com>

	* Uri.cs: If we are sure we have a windows path use \ instead of
	/ for directory separating.
	
2004-02-11  Jackson Harper  <jackson@ximian.com>

	* Uri.cs: If the relative uri passed to Uri (base_uri,
	relative_uri) is an absolute uri do not combine the uris. The base
	uri is dropped.
	
2004-02-10  Jackson Harper  <jackson@ximian.com>

	* Uri.cs: Preserve the trailing / if there is one when reducing
	paths.
	
2004-02-08  Jackson Harper  <jackson@ximian.com>

	* Uri.cs: IsLoopback has different behavoir then
	IPAddress::IsLoopback. It will only return true for ipv4 addresses
	if they are 127.0.0.1, localhost, or loopback. 
	
2004-02-06  Jackson Harper  <jackson@ximian.com>

	* Uri.cs: Do not escape querys or fragements. Only reduce certain
	schemes.
	
2004-02-06  Jackson Harper  <jackson@ximian.com>

	* Uri.cs: Use UTF8 characters when escaping. Reduce paths. This
	method is taken from System.Web.Utils.UrlUtils.
	* UriBuilder.cs: Do not escape fragments or queries, but do a utf8
	switch on them. Do not prepend a "/" to Paths. Do not use
	IPEndPoint to determine if a port is valid, UriBuilder allows
	ports to be any	positive integer, IPEndPoint does not. Use the
	ToString () method for generate a uri in get_Uri. Only set the
	port in ToString () if it is greater then 0.
	
2004-02-05  Jackson Harper  <jackson@ximian.com>

	* UriBuilder.cs: Do not call Uri::ToString for uri builders
	ToString. UriBuilder's ToString is a little more primitive.
	
2004-01-12  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : should not escape already-escaped string (Patch by 
	  Boris Kirzner).  File LocalPath should unespace return value.
	  ToString() should be unescaped only when it is not an UNC path.
	  (UNC looks not to be unescaped).

2004-01-06  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : quick fix on local file relative uri.

2004-01-06  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : Fixed Parse(). Should not allow relative URIs.

2004-01-05  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : fixed IsBadFileSystemCharacter() to reject more characters
	  based on MS.NET experiment.

2003-12-08  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : more fixes. More presice UNC handling, opaque part 
	  handling for non-standard uri (e.g. urn:go-mono.com), ToString()
	  fix (that returns AbsoluteUri, which is not escaped any more),
	  and so on.

2003-12-08  Atsushi Enomoto  <atsushi@ximian.com>

	* Uri.cs : Several fixes, including Unc problem, Host and LocalPath
	  fixes, null reference check for .ctor(Uri, string). This fixes
	  bug #51844.

2003-12-04  John Luke  <jluke@cfl.rr.com>
	
	* Uri.cs: applied patch from Chris Masters <neeeeeep@bigpond.com>
	fixes bug #51510.  ftp uses port 21, https uses 443 and 
	parse the host name properly for UNC path.
	
2003-10-10  Pedro Martínez Juliá  <yoros@wanadoo.es>

	* Uri.cs: fixed a problem with some URIs like file://some_file.txt
	It used to return "/some_file.txt/" instead of "some_file.txt" in
	LocalPath. Fix handling of full path files and SMB addresses.

2003-08-12  Duncan Mak  <duncan@ximian.com>

	* Uri.cs (constructor): Properly implement RFC 2396, Par. 5.2,
	part 6a, which says:
	
		In other words, any characters after the last (right-most)
		slash character, if any, are excluded.

        Previously, when merging "a://foo.com/foo" with "bar", we yield
	the result "a://foo.com/foobar", instead of the correct
	"a://foo.com/bar".

	This fixes bug #45614.

2003-07-27  Andreas Nahr <ClassDevelopment@A-SoftTech.com>

	* SRDescriptionAttribute.cs: Moved from System.Diagnostics directory

2003-07-18  Andreas Nahr <ClassDevelopment@A-SoftTech.com>

	* Uri.cs: Added MonoTODO'd members, implemented member, fixed signature

2003-05-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* TempFileCollection.cs: fixed the build under windows.
	
2003-05-07  Ben Maurer <bmaurer@users.sourceforge.net>
	* Uri.cs: Checked in code to fix bug #41998. Some
	code from Ian MacLean.
	
2003-03-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* Uri.cs: reworked Segment. Small fix in MakeRelative. Throw exception
	in Parse when host length is 0 and the Uri is not a file.

2003-03-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>

	* Uri.cs:
	(CheckSchemeName): fixed bug #28549. Thanks to Eric Runquist.

2003-02-01  Miguel de Icaza  <miguel@ximian.com>

	* Uri.cs (LocalPath): Local path should return un-escaped
	strings.  Patch from tum@veridicus.com (Thong (Tum) Nguyen)

2002-09-16  Duncan Mak  <duncan@ximian.com>

	* Uri.cs (GetObjectData):
	(Uri): The key should be "AbsoluteUri", not "Uri".

2002-09-16  Miguel de Icaza  <miguel@ximian.com>

	* Uri.cs: Implemented a few of the protected methods. 

Mon Jun 17 15:05:05 CEST 2002 Paolo Molaro <lupus@ximian.com>

	* Uri.cs: workaround for mcs bug.

2002-05-28  Lawrence Pit <loz@cable.a2000.nl>

	* Uri.cs: Implemented ctor UriTest (baseUri, relativeUri)
	* Uri.cs: Fixed bug in internal method GetSchemeDelimiter

2002-05-22  Lawrence Pit <loz@cable.a2000.nl>

	* Uri.cs: implemented MakeRelative, improved GetLeftPart
	* UriBuilder.cs: removed Serializable attribute
	* UriHostNameType.cs: added Basic

2002-05-12  Lawrence Pit <loz@cable.a2000.nl>

	* Uri.LocalPath and Uri.AbsoluteUri modified to support both w32 
	and *nix filepaths

2002-05-09  Lawrence Pit <loz@cable.a2000.nl>

	* Uri.GetLeftPart fixed for mailto and news schemes.

2002-05-05  Lawrence Pit <loz@cable.a2000.nl>

	* UriBuilder.cs: Implemented.
	
	* Uri.cs: Complete new reimplementation. 

2002-02-08  Duncan Mak  <duncan@ximian.com>

	* UriFormatException.cs: Removed TODO attribute, the docs are
	probably wrong here. In any case, this code compiles and should work.

2002-01-31  Duncan Mak  <duncan@ximian.com>

	* UriFormatException.cs: Added bits for serialization.

2002-01-05  Ravi Pratap  <ravi@ximian.com>

	* ChangeLog : Add to this directory.

	* Uri.cs, UriFormatException.cs : Decorate bits with MonoTODO attribute.
