2005-01-20 Miguel de Icaza <miguel@ximian.com>
[mono.git] / mcs / class / System / System / ChangeLog
1 2005-01-20  Miguel de Icaza  <miguel@ximian.com>
2
3         * Uri.cs: Set the UriSchemNews port default to 119 as well.
4         Fixes bug #71050.
5
6         When dealing with fragments use the `dontEscape' flag passed to
7         the Uri constructor to decide whether the fragment must or must
8         not be escaped, fixes 71051.
9
10 2004-06-22  Atsushi Enomoto  <atsushi@ximian.com>
11
12         * Uri.cs : Such ctor arg string that starts with "//" should be 
13           regarded as a local file path that will be condensed to single "/",
14           so handle such path differently under Windows and under *nix.
15           Since '\\' is a valid path character on Unix, so we should not
16           replace it with '/' in LocalPath.
17
18 2004-06-17  Jackson Harper  <jackson@ximian.com>
19
20         * Uri.cs: Use invariant culture.
21         
22 2004-06-16  Atsushi Enomoto  <atsushi@ximian.com>
23
24         * Uri.cs : Fixed LocalPath. In that condition, path is always UNC.
25
26 2004-06-16  Atsushi Enomoto  <atsushi@ximian.com>
27
28         * Uri.cs : Reimplemented HexUnescape() (It was too broken to handle
29           multi-byte utf-8 characters.)
30
31 2004-06-11  Atsushi Enomoto  <atsushi@ximian.com>
32
33         * Uri.cs :
34           - We don't have to mind '\\'.
35           - Fixed bug #58301. When path starts with "///" and not more than
36             "////" and not "///*:", handle it as unix path and set Host as
37             empty string. In absolute path case, port should not be parsed
38             and LocalPath should start with '/'.
39           - Handle fragment in prior to path. 
40
41 2004-06-11  Atsushi Enomoto  <atsushi@ximian.com>
42
43         * Uri.cs : Handle Windows UNC. Now we could simplify Parse(). Don't
44           escape windows path twice. Check scheme name as defined in RFC2396.
45
46 2004-06-11  Atsushi Enomoto  <atsushi@ximian.com>
47
48         * Uri.cs : Reverted some changes. '#' should be handled when the input
49           string is NOT raw file path. So handle raw file paths differently.
50           (right now except for Windows UNC).
51           Cache LocalPath and don't compute every time.
52
53 2004-06-10  Atsushi Enomoto  <atsushi@ximian.com>
54
55         * Uri.cs : Don't escape '#' in file URI paths. This fixes bug #47691.
56           Some code simplification.
57
58 2004-06-09  Atsushi Enomoto  <atsushi@ximian.com>
59
60         * Uri.cs : 
61           - Now Parse() is properly implemented. If overriden, the overriding
62             Parse() is used _instead of_ this class's parsing logic.
63           - AbsoluteUri does not escape URI string at all.
64           - ToString() should unescape Query. But should not unescape fragment.
65             And all all parts should be unescaped individually to keep ? and #.
66           - In relative .ctor(), handle Windows UNC as an absolute file URI.
67           - In some cases, hosts and paths were not properly escaped in
68             relative .ctor().
69           - Removed unused isWindowsPath.
70           - Escape Query.
71         * UriBuilder.cs : Fragment and Query aren't escaped when they are set.
72
73 2004-05-12  Dick Porter  <dick@ximian.com>
74
75         * Uri.cs: Reduce(string) is not in the public API.
76
77 2004-04-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
78
79         * UriBuilder.cs: ignore empty Query. Fixes bug #57082.
80
81 2004-03-21  Jackson Harper  <jackson@ximian.com>
82
83         * Uri.cs: Equals should be case insensitive for all parts except
84         the path.
85
86 2004-02-11  Jackson Harper  <jackson@ximian.com>
87
88         * Uri.cs: If we are sure we have a windows path use \ instead of
89         / for directory separating.
90         
91 2004-02-11  Jackson Harper  <jackson@ximian.com>
92
93         * Uri.cs: If the relative uri passed to Uri (base_uri,
94         relative_uri) is an absolute uri do not combine the uris. The base
95         uri is dropped.
96         
97 2004-02-10  Jackson Harper  <jackson@ximian.com>
98
99         * Uri.cs: Preserve the trailing / if there is one when reducing
100         paths.
101         
102 2004-02-08  Jackson Harper  <jackson@ximian.com>
103
104         * Uri.cs: IsLoopback has different behavoir then
105         IPAddress::IsLoopback. It will only return true for ipv4 addresses
106         if they are 127.0.0.1, localhost, or loopback. 
107         
108 2004-02-06  Jackson Harper  <jackson@ximian.com>
109
110         * Uri.cs: Do not escape querys or fragements. Only reduce certain
111         schemes.
112         
113 2004-02-06  Jackson Harper  <jackson@ximian.com>
114
115         * Uri.cs: Use UTF8 characters when escaping. Reduce paths. This
116         method is taken from System.Web.Utils.UrlUtils.
117         * UriBuilder.cs: Do not escape fragments or queries, but do a utf8
118         switch on them. Do not prepend a "/" to Paths. Do not use
119         IPEndPoint to determine if a port is valid, UriBuilder allows
120         ports to be any positive integer, IPEndPoint does not. Use the
121         ToString () method for generate a uri in get_Uri. Only set the
122         port in ToString () if it is greater then 0.
123         
124 2004-02-05  Jackson Harper  <jackson@ximian.com>
125
126         * UriBuilder.cs: Do not call Uri::ToString for uri builders
127         ToString. UriBuilder's ToString is a little more primitive.
128         
129 2004-01-12  Atsushi Enomoto  <atsushi@ximian.com>
130
131         * Uri.cs : should not escape already-escaped string (Patch by 
132           Boris Kirzner).  File LocalPath should unespace return value.
133           ToString() should be unescaped only when it is not an UNC path.
134           (UNC looks not to be unescaped).
135
136 2004-01-06  Atsushi Enomoto  <atsushi@ximian.com>
137
138         * Uri.cs : quick fix on local file relative uri.
139
140 2004-01-06  Atsushi Enomoto  <atsushi@ximian.com>
141
142         * Uri.cs : Fixed Parse(). Should not allow relative URIs.
143
144 2004-01-05  Atsushi Enomoto  <atsushi@ximian.com>
145
146         * Uri.cs : fixed IsBadFileSystemCharacter() to reject more characters
147           based on MS.NET experiment.
148
149 2003-12-08  Atsushi Enomoto  <atsushi@ximian.com>
150
151         * Uri.cs : more fixes. More presice UNC handling, opaque part 
152           handling for non-standard uri (e.g. urn:go-mono.com), ToString()
153           fix (that returns AbsoluteUri, which is not escaped any more),
154           and so on.
155
156 2003-12-08  Atsushi Enomoto  <atsushi@ximian.com>
157
158         * Uri.cs : Several fixes, including Unc problem, Host and LocalPath
159           fixes, null reference check for .ctor(Uri, string). This fixes
160           bug #51844.
161
162 2003-12-04  John Luke  <jluke@cfl.rr.com>
163         
164         * Uri.cs: applied patch from Chris Masters <neeeeeep@bigpond.com>
165         fixes bug #51510.  ftp uses port 21, https uses 443 and 
166         parse the host name properly for UNC path.
167         
168 2003-10-10  Pedro Martínez Juliá  <yoros@wanadoo.es>
169
170         * Uri.cs: fixed a problem with some URIs like file://some_file.txt
171         It used to return "/some_file.txt/" instead of "some_file.txt" in
172         LocalPath. Fix handling of full path files and SMB addresses.
173
174 2003-08-12  Duncan Mak  <duncan@ximian.com>
175
176         * Uri.cs (constructor): Properly implement RFC 2396, Par. 5.2,
177         part 6a, which says:
178         
179                 In other words, any characters after the last (right-most)
180                 slash character, if any, are excluded.
181
182         Previously, when merging "a://foo.com/foo" with "bar", we yield
183         the result "a://foo.com/foobar", instead of the correct
184         "a://foo.com/bar".
185
186         This fixes bug #45614.
187
188 2003-07-27  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
189
190         * SRDescriptionAttribute.cs: Moved from System.Diagnostics directory
191
192 2003-07-18  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
193
194         * Uri.cs: Added MonoTODO'd members, implemented member, fixed signature
195
196 2003-05-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
197
198         * TempFileCollection.cs: fixed the build under windows.
199         
200 2003-05-07  Ben Maurer <bmaurer@users.sourceforge.net>
201         * Uri.cs: Checked in code to fix bug #41998. Some
202         code from Ian MacLean.
203         
204 2003-03-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
205
206         * Uri.cs: reworked Segment. Small fix in MakeRelative. Throw exception
207         in Parse when host length is 0 and the Uri is not a file.
208
209 2003-03-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
210
211         * Uri.cs:
212         (CheckSchemeName): fixed bug #28549. Thanks to Eric Runquist.
213
214 2003-02-01  Miguel de Icaza  <miguel@ximian.com>
215
216         * Uri.cs (LocalPath): Local path should return un-escaped
217         strings.  Patch from tum@veridicus.com (Thong (Tum) Nguyen)
218
219 2002-09-16  Duncan Mak  <duncan@ximian.com>
220
221         * Uri.cs (GetObjectData):
222         (Uri): The key should be "AbsoluteUri", not "Uri".
223
224 2002-09-16  Miguel de Icaza  <miguel@ximian.com>
225
226         * Uri.cs: Implemented a few of the protected methods. 
227
228 Mon Jun 17 15:05:05 CEST 2002 Paolo Molaro <lupus@ximian.com>
229
230         * Uri.cs: workaround for mcs bug.
231
232 2002-05-28  Lawrence Pit <loz@cable.a2000.nl>
233
234         * Uri.cs: Implemented ctor UriTest (baseUri, relativeUri)
235         * Uri.cs: Fixed bug in internal method GetSchemeDelimiter
236
237 2002-05-22  Lawrence Pit <loz@cable.a2000.nl>
238
239         * Uri.cs: implemented MakeRelative, improved GetLeftPart
240         * UriBuilder.cs: removed Serializable attribute
241         * UriHostNameType.cs: added Basic
242
243 2002-05-12  Lawrence Pit <loz@cable.a2000.nl>
244
245         * Uri.LocalPath and Uri.AbsoluteUri modified to support both w32 
246         and *nix filepaths
247
248 2002-05-09  Lawrence Pit <loz@cable.a2000.nl>
249
250         * Uri.GetLeftPart fixed for mailto and news schemes.
251
252 2002-05-05  Lawrence Pit <loz@cable.a2000.nl>
253
254         * UriBuilder.cs: Implemented.
255         
256         * Uri.cs: Complete new reimplementation. 
257
258 2002-02-08  Duncan Mak  <duncan@ximian.com>
259
260         * UriFormatException.cs: Removed TODO attribute, the docs are
261         probably wrong here. In any case, this code compiles and should work.
262
263 2002-01-31  Duncan Mak  <duncan@ximian.com>
264
265         * UriFormatException.cs: Added bits for serialization.
266
267 2002-01-05  Ravi Pratap  <ravi@ximian.com>
268
269         * ChangeLog : Add to this directory.
270
271         * Uri.cs, UriFormatException.cs : Decorate bits with MonoTODO attribute.