New test.
[mono.git] / mcs / class / System.Web / System.Web / ChangeLog
1 2006-11-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2
3         * HttpServerUtility.cs: don't prepend extra '?' when the original url
4         already has a query string. Fixes bug #80042.
5
6 2006-11-24  Miguel de Icaza  <miguel@novell.com>
7
8         * HttpApplicationFactory.cs (InitType): Also look for "Web.Config"
9         casing here.
10
11 2006-11-20  Marek Habersack  <grendello@gmail.com>
12
13         * HttpApplication.cs: Added support for automatic detection of
14         user's preferred language.
15
16 2006-11-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
17
18         * HttpApplication.cs: don't leak the directory name for non-local
19         connections.
20
21 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22
23         * CapabilitiesLoader.cs: made the hasstable that contains the properties
24         for the brower case insensitive. Fixes bug #79795.
25
26 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27
28         * HttpResponse.cs: fix typo that prevented Server.Execute from restoring
29         the initial output stream used. Closes bug #79916.
30
31 2006-11-12  Marek Habersack  <grendello@gmail.com>
32
33         * HttpContext.cs: Implemented the 2.0 RewritePath overloads.
34
35 2006-11-08  Marek Habersack  <grendello@gmail.com>
36
37         * HttpRuntime.cs: Moved the resource compiler results handling to
38         the resource compiler itself.
39
40         * HttpApplicationFactory.cs: Add invocation of the App_Code
41         compiler. Moved the resource compiler results handling to the
42         resource compiler itself. Removed compilation of the local
43         resources from here - it should be done only when a request
44         determines that the App_LocalResources directory exists.
45         
46
47 2006-11-07  Andrew Skiba  <andrews@mainsoft.com>
48
49         * HttpRuntime.cs: TARGET_JVM ifdef
50
51 2006-11-05  Andrew Skiba  <andrews@mainsoft.com>
52
53         * SiteMapProvider.cs: don't iterate through Roles when they are null.
54
55 2006-11-05  Vladimir Krasnov  <vladimirk@mainsoft.com>
56
57         * HttpContext.cs: implemented Profile property
58
59 2006-11-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
60
61         * HttpApplication.cs: the unexpected 'tick' exceptions can be an abort
62         exception due to timeout or end of the request.
63
64 2006-10-18  Marek Habersack  <grendello@gmail.com>
65
66         * HttpRuntime.cs: add support for compilation of local resources
67         at the start of request.
68
69         * HttpContext.cs: implement the GetGlobalResourceObject APIs
70
71         * HttpApplicationFactory.cs: include the bootstrap code for the
72         global/local resources compiler.
73
74 2006-10-09  Marek Habersack  <grendello@gmail.com>
75
76         * HttpApplication.cs: change the pipeline order for ASP.NET 2.0 to
77         comply with the Microsoft documentation.
78
79 2006-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
80
81         * HttpApplication.cs: this makes the test run successfully. Still need
82         to figure out why that is null.
83
84 2006-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
85
86         * HttpApplication.cs: band-aid patch to help debugging hang running 2.0
87         tests.
88
89 2006-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
90
91         * HttpServerUtility.cs: 1.1 Execute(s) preserves the query string.
92         Thanks to Hubert Fongarnand. Fixes bug #79506.
93
94 2006-09-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
95
96         * QueueManager.cs: if disposed, always return null for next request.
97         * HttpRuntime.cs: dispose the queue manager when shutting down the
98         domain. This will close pending requests with a 503.
99         * HttpApplication.cs: release the handler before marking the request
100         as completed. If in PipelineDone context is null, use
101         HttpContext.Current. Fixes some of those "Tick detected an unhandled
102         exception" errors printed out.
103
104 2006-09-11  Andrew Skiba <andrews@mainsoft.com>
105
106         * XmlSiteMapProvider.cs: ifdef TARGET_JVM
107
108 2006-09-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
109
110         * HttpWriter.cs: fixed WriteLine to work correctly in utf-16 encoding
111
112 2006-09-08  Robert Jordan  <robertj@gmx.net>
113
114         * TraceData.cs: fixed NRE if `sizes' is null, which may happen
115         if a page was unable to save its viewstate and size.
116
117 2006-09-07 Andrew Skiba <andrews@mainsoft.com>
118
119         * HttpApplicationFactory.cs: ifdef the previous fix with TARGET_JVM to
120         pass compilation.
121
122 2006-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
123
124         * HttpApplicationFactory.cs: watch web.config too. Fixes bug #78356.
125
126 2006-09-05  Konstantin Triger <kostat@mainsoft.com>
127
128         * SiteMapProvider.cs: consider authorization section for access decision.
129
130 2006-09-04 Igor Zelmanovich <igorz@mainsoft.com>
131
132         * HttpUtility.cs: fixed UrlPathEncode method.
133
134 2006-08-31      Boris Kirzner <borisk@mainsoft.com>
135
136         * VirtualPathUtility.cs : pass parameters in correct order.
137
138 2006-08-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
139
140         * HttpApplicationFactory.cs: handle the 'renamed' event too.
141
142 2006-08-08  Vladimir Krasnov  <vladimirk@mainsoft.com>
143
144         * HttpApplication.cs: fixed BeginProcessRequest, TARGET_JVM part
145         merged
146
147 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
148
149         * HttpApplication.cs: don't leak local path names when a file is not
150         found.
151
152 2006-06-21 Konstantin Triger <kostat@mainsoft.com>
153
154         * XmlSiteMapProvider.cs: if the url is relative, make it relative to the
155                 context root.
156
157 2006-06-07 Juraj Skripsky <js@hotfeet.ch>
158
159         * HttpException.cs (GetHtmlizedErrorMessage): Beautify compilation error
160         page by showing multiple errors on separate lines.
161
162 2006-06-05 Juraj Skripsky <js@hotfeet.ch>
163
164         * HttpRequest.cs: simplify code around uri_builder (and rename 
165         to url_components). Move storage of query_string into 
166         uri_builder.Query and initialize it lazily using 
167         worker_request.GetQueryStringRawBytes() or GetQueryString().
168         (QueryString): Use HttpUtility.ParseQueryString instead of 
169         duplicating its functionality.
170
171 2006-06-05 Juraj Skripsky <js@hotfeet.ch>
172
173         * HttpUtility.cs (ParseQueryString): move core of
174         ParseQueryString into internal method to make it available to 
175         HttpRequest.
176
177 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
178
179         * HttpApplication.cs: assign the context when run from a thread not in
180         the threadpool. Patch by Andrew Skiba. Fixes bug #78583.
181
182 2006-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
183
184         * HttpApplication.cs: context.Handler does not change for
185         HttpServerUtility.Execute, so moved setting it into the pipeline instead
186         of GetHandler.
187
188 2006-05-17  Kazuki Oikawa  <kazuki@panicode.com>
189
190         * HttpUtility.cs: implemented ParseQueryString
191
192 2006-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
193
194         * HttpUtility.cs: get rid of TryParseHexa.
195
196 2006-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
197
198         * HttpApplicationFactory.cs: make sure that the application start event
199         is run before any request is processed.
200
201 2006-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
202
203         * HttpServerUtility.cs: don't reset the query string in Execute() when
204         the path does not contain it and we have one from the previous request.
205         Fixes bug #78177.
206
207 2006-04-20 Andrew Skiba <andrews@mainsoft.com>
208
209         * SiteMapNode.cs: fix few null reference exceptions
210
211 2006-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
212
213         * HttpResponse.cs:
214         (TransmitFile): make sure we can read the file before buffering it.
215
216 2006-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
217
218         * HttpApplicationFactory.cs: don't fail on events that are not
219         EventHandlers. Patch by Matthew Metnetsky.
220
221 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
222
223         * HttpRequest.cs: remove code duplication (see UrlUtils.Combine)
224
225 2006-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
226
227         * HttpUtility.cs: allow "%%" as a escape for '%' and ignore invalid
228         hexadecimal characters. Based on a patch by Vladimir Krasnov.
229
230 2006-04-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
231
232         * HttpWriter.cs: only keep the byte buffer around if its size is less
233         than or equals to 32K.
234
235 2006-04-08  Miguel de Icaza  <miguel@novell.com>
236
237         * HttpWriter.cs (Write): Added missing check for null string as
238         something is now calling it like that. 
239
240 2006-03-27 Joshua Tauberer <tauberer@for.net>
241
242         * HttpWriter.cs: Avoid creation of a byte[] on each Write()
243           by reusing and resizing a private array.
244
245 2006-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
246
247         * HttpRequest.cs: the field content_length can be < 0 and then we try to
248         read when there's no data and block.
249
250 2006-04-05 Andrew Skiba <andrews@mainsoft.com>
251
252         * HttpUtility: UrlEncode and UrlEncodeUnicode logic unified, behaviour
253         fixed to match dotnet and http://rfc.net/rfc1738.html
254
255 2006-03-30 Konstantin Triger <kostat@mainsoft.com>
256
257         * HttpApplicationFactory.cs: refactoring: remove static modifier from session_end field.
258         Does not check the behavior as HttpApplicationFactory is a singleton.
259
260 2006-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
261
262         * HttpUtility.cs: UrlDecode does not throw if an hexadecimal sequence
263         fails to parse as an integer. Fixes bug #77931.
264
265 2006-03-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
266
267         * HttpResponse.cs: more fixes for CacheControl: MS allows to set it to
268         null and "" and the getter value does not completely depend on Cache.
269
270         * HttpRequest.cs: fail validating the request input if there's a control
271         character after a '<'. Fixes XSS_Null test.
272
273         All System.Web tests pass again.
274 2006-03-22  Robert Jordan  <robertj@gmx.net>
275
276         * HttpCachePolicy.cs: fix the Cache-control header. Fixes bug #77826.
277
278 2006-03-22  Chris Toshok  <toshok@ximian.com>
279
280         * HttpApplication.cs: fix typo - AuthenticateRequest =>
281         PostAuthenticateRequest.
282
283 2006-03-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
284
285         * ChangeLog:
286         * HttpRequest.cs: revert part of r58229.
287
288 2006-03-21  Vladimir Krasnov  <vladimirk@mainsoft.com>
289
290         * ServerVariablesCollection.cs: fixed "URL" variable, it should not
291         return path info
292
293 2006-03-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
294
295         * HttpRequest.cs:
296         (CheckString): style and don't index the string twice per iteration.
297
298 2006-03-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
299
300         * TempFileStream.cs: a FileStream that removes the file once
301         it is disposed.
302         * HttpRequest.cs: support for writing request data to on-disk
303         files if the request is longer than the threshold specified in the
304         configuration files. In mono this will work for 1.x and 2.0, while with
305         MS this only works for 2.0.
306
307 2006-03-18  Robert Jordan  <robertj@gmx.net>
308
309         * HttpCachePolicy.cs: expose the validation callbacks.
310         Fixes bug #77825.
311
312 2006-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
313
314         * HttpApplication.cs: fix upper bound when iterating through the module
315         collection.
316
317 2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
318
319         * HttpRequest.cs: use the provided content encoding to decode the file
320         name. Fixes bug #77714.
321
322 2006-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
323
324         * HttpResponse.cs: allow setting a Cache-Control header through
325         AppendHeader. Fixes bug #77775.
326
327 2006-03-15  Chris Toshok  <toshok@ximian.com>
328
329         * XmlSiteMapProvider.cs (RemoveProvider): oops, no override.
330
331         * StaticSiteMapProvider.cs (AddNode): call MapUrl.
332         (FindSiteMapNode): same.
333
334 2006-03-15  Chris Toshok  <toshok@ximian.com>
335
336         * SiteMapProvider.cs (ReturnNodeIfAccessible): new function,
337         either return the node or throw InvalidOperationException.
338         (get_RootNode): use ReturnNodeIfAccessible.
339         (IsAccessibleToUser): flesh this out a bit, and add comments on
340         how the rest of the implementation should be written.
341         (FindSiteMapNodeFromKey): implement to match MS behavior, docs be
342         damned.
343
344         * XmlSiteMapProvider.cs: corcompare work.
345
346         * StaticSiteMapProvider.cs (AddNode): Add a check to see if node
347         == RootNode.  Not sure if this is actually correct, but it's
348         required given our implementation of XmlSiteMapProvider.  without
349         this check, we end up assigning RootNode.ParentNode == RootNode,
350         which makes for an infinite loop when we traverse up the tree.
351
352 2006-03-15  Vladimir Krasnov  <vladimirk@mainsoft.com>
353
354         * HttpRequest.cs: fixed MakeInputStream method under TARGET_JVM,
355         fixed if content lenght value is less that byte received
356
357 2006-03-10  Chris Toshok  <toshok@ximian.com>
358
359         * StaticSiteMapProvider.cs (UrlToNode): this entire file is #if
360         NET_2_0, no need to embed another #if NET_2_0.
361
362         * SiteMapProvider.cs (AddNode): throw NotImplementedException.
363         (FindSiteMapNode): with null context, return null.  don't throw
364         ArgumentNullException.
365         (RemoveNode): throw NotImplementedException.
366         (IsAccessibleToUser): check arguments to make test pass.  still
367         lacking the method's actual functionality.
368         (ResourceKey): add missing property.
369
370 2006-03-10  Chris Toshok  <toshok@ximian.com>
371
372         * HttpRequest.cs (CheckString): add back in the check for \xff1c
373         that i took out.  oops.
374
375 2006-03-10  Chris Toshok  <toshok@ximian.com>
376
377         * HttpRequest.cs (CheckString): implement as described in
378         Shackow's "Professional ASP.NET 2.0 Security, Membership, and Role
379         Management", page 310.
380
381 2006-03-08  Chris Toshok  <toshok@ximian.com>
382
383         * SiteMap.cs: clean this up a bunch.  use the SiteMapSection to
384         initialize the provider collection, and don't add a provider.
385         web.config handles that for us.  Also, don't always return true
386         from get_Enabled.
387
388 2006-02-28  Chris Toshok  <toshok@ximian.com>
389
390         * HttpCookieMode.cs: corcompare work.
391
392         * ProcessShutdownReason.cs: same.
393
394         * SiteMapNodeCollection.cs: same.
395
396         * SiteMapNode.cs: same.
397
398         * SiteMapProvider.cs: same.
399
400         * HttpCacheRevalidation.cs: same.
401
402         * HttpCacheability.cs: same.
403
404         * StaticSiteMapProvider.cs: same.
405
406         * HttpValidationStatus.cs: same.
407         
408 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
409
410         * DefaultHttpHandler.cs: New file.
411
412 2006-02-01  Chris Toshok  <toshok@ximian.com>
413
414         * SiteMap.cs: use GetSection instead of GetWebApplicationSection.
415
416 2006-02-01  Chris Toshok  <toshok@ximian.com>
417
418         * HttpApplication.cs: CONFIGURATION_2_0 => NET_2_0, and use
419         GetSection instead of GetWebApplicationSection.
420
421         * HttpApplication.jvm.cs: same.
422         
423         * HttpApplicationFactory.cs: same.
424
425         * HttpContext.cs: same.
426
427         * CapabilitiesLoader.cs: same.
428
429         * QueueManager.cs: same.
430
431         * HttpRuntime.cs: same.
432
433         * TraceManager.cs: same.
434
435         * HttpRequest.cs: same.
436         
437 2006-01-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
438
439         * HttpApplication.cs: keep any exception that happens during
440         initialization.
441
442 2006-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
443
444         * HttpDataTransferMode.cs: Removed file.
445         * HttpRequestPriority.cs: Removed file.
446         * ApplicationShutdownReason.cs:
447         * SiteMap.cs:
448         * HttpRuntime.cs:
449         * HttpApplication.cs: minor class status fixes.
450
451 2006-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
452
453         * VirtualPathUtility.cs: done with all the not implemented methods.
454
455 2006-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
456
457         * HttpResponse.cs: use UInt64.Parse for content length. In AppendHeader,
458         set cache_control through the property to update the cachebility
459         accordingly. When using the cached headers, don't add again all the
460         headers to that collection.
461         * HttpCacheVaryByParams.cs: if there are no params, return null.
462         Otherwise we get an empty 'Vary' header.
463
464 2006-01-25  Chris Toshok  <toshok@ximian.com>
465
466         * HttpApplication.cs (Start): wrap InitOnce in a try/catch block,
467         and if there's a configuration error, output it and end things
468         immediately.
469
470 2006-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
471
472         * HttpRequest.cs: fixed the file path when RewritePath is used. Also
473         add the PathInfo to the Url. Fixes bug #77291.
474
475 2006-01-22  Chris Toshok  <toshok@ximian.com>
476
477         * HttpRequest.cs (ReadBoundary): remove two unused variables to
478         quiet mcs.
479         (IsBoundary): remove unused method.
480
481         * MimeTypes.cs (.cctor): use a 2.0 friendly form of the Hashtable
482         ctor to silence a warning.
483
484         * HttpCacheVaryByHeaders.cs (.ctor): same.
485
486         * HttpCacheVaryByParams.cs (.ctor): same.
487
488         * StaticSiteMapProvider.cs (UrlToNode): same.
489
490 2006-01-22  Konstantin Triger <kostat@mainsoft.com>
491
492         * HttpWorkerRequest.cs: ensure case insensitivity in header search.
493
494 2006-01-19  Konstantin Triger <kostat@mainsoft.com>
495
496         * HttpApplication.jvm.cs: merge HttpApplication.cs changes.
497
498 2006-01-17  Chris Toshok  <toshok@ximian.com>
499
500         * CapabilitiesLoader.cs (Init): use WebConfigurationManager in the
501         CONFIGURATION_2_0 case.
502
503         * HttpRuntime.cs (MachineConfigurationDirectory): same.
504
505 2006-01-16  Chris Toshok  <toshok@ximian.com>
506
507         * HttpApplicationFactory.cs: call WebConfigurationManager.Init in
508         the CONFIGURATION_2_0 case.
509
510 2006-01-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
511
512         * HttpWriter.cs: made Write (char) less memory hungry. Thanks to Mike
513         Glenn for pointing this out.
514
515 2006-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
516
517         * HttpApplicationFactory.cs: fix condition for ContextAvailable.
518
519 2006-01-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
520
521         * HttpResponse.cs: removed TARGET_JVM block from End
522         * GetJavaTextReader: Merged TARGET_JVM block from LoadFile
523         to GetJavaTextReader
524
525 2006-01-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
526
527         * HttpRequest.cs: removed TARGET_JVM block from MapPath
528
529 2006-01-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
530
531         * HttpRequest.cs: little fix in MapPath(), virtualPath.Replace
532         return value wasnt stored.
533
534 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
535
536         * HttpResponse.cs: typo in comment.
537
538         * HttpApplicationFactory.cs:
539         * HttpApplication.cs: don't discard the application used for running the
540         Application_Start event to allow for Redirect/Transfer to be used. Fail
541         to get the request/response from the application object as MS does (it
542         can still be retrieved through HttpContext.Current.blah). Fixes
543         bug #77162.
544
545 2006-01-09  Vladimir Krasnov <vladimirk@mainsoft.com>
546
547         * CapabilitiesLoader.cs: Merged TARGET_JVM parts in LoadFile
548         from /main/9
549         * HttpException.cs: Merged TARGET_JVM parts in GetHtmlizedErrorMessage
550         from /main/13
551         * HttpRequest.cs: Merged TARGET_JVM parts in MapPath from /main/29
552         * HttpResponse.cs: Merged TARGET_JVM parts in End() from /main/30
553         * StaticFileHandler.cs: Merged TARGET_JVM parts in ProcessRequest
554         from /main/7
555
556 2006-01-08  Konstantin Triger <kostat@mainsoft.com>
557
558         * BrowserCapabilities.cs, HttpBrowserCapabilities.cs,
559         HttpResponseStream.cs: TARGET_JVM changes to let the compilation
560         pass with csc 1.1.
561
562 2006-01-04  Chris Toshok  <toshok@ximian.com>
563
564         * HttpContext.cs (IsCustomErrorEnabled): add CONFIGURATION_2_0
565         code.  use a nasty 'using' hack to map the 2.0 CustomErrorsMode to
566         the 1.x CustomErrorMode name.
567         (IsDebuggingEnabled): add CONFIGURATION_2_0 code.
568         (ConfigTimeout): add CONFIGURATION_2_0 code.
569
570         * HttpRequest.cs (MakeInputStream): add CONFIGURATION_2_0 code.
571
572         * HttpApplication.cs (RedirectCustomError): add CONFIGURATION_2_0
573         code.
574
575         * SiteMap.c (Init): use
576         WebConfigurationManager.GetWebApplicationSection.
577
578 2005-12-21  Miguel de Icaza  <miguel@novell.com>
579
580         * HttpUtility.cs (UrlEncodeUnicode): The generated encoding of
581         unicode values must be in %XXXX format, not %XX sometimes.
582
583 2005-12-08 Robert Jordan  <robertj@gmx.net> 
584
585         * MimeTypes.cs: added entry for "jpg".
586
587 2005-12-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
588
589         * HttpRequest.cs: only read up to content-length when provided. Patch
590         by Peter Teichman.
591
592 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
593
594         * HttpCookie.cs: fixed the set_Secure. Closes bug #76906.
595
596 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
597
598         * HttpResponseStream.cs: flush the filter stream before closing.
599         Patch by Geir Bergum that fixes bug #76753.
600
601 2005-11-28  Chris Toshok  <toshok@ximian.com>
602
603         * HttpContext.cs (Profile): remove the #if false from around this,
604         as we now have the ProfileBase type.
605         (GetConfig): add CONFIGURATION_2_0 version.
606         (GetSection): add CONFIGURATION_2_0 version.
607
608 2005-11-28  Chris Toshok  <toshok@ximian.com>
609
610         * TraceManager.cs (..ctor): CONFIGURATION_2_0 work.
611
612         * QueueManager.cs (..ctor): CONFIGURATION_2_0 work.
613
614         * HttpRequest.cs (AnonymousID): add 2.0 property.
615         (MakeInputStream): CONFIGURATION_2_0 work.
616
617         * HttpApplication.cs (InitOnce): change around the
618         CONFIGURATION_2_0 stuff since we need additional Culture foo for
619         it.
620
621 2005-11-27  Chris Toshok  <toshok@ximian.com>
622
623         * HttpApplication.cs (InitOnce): add Configuration_2.0 code.
624         (GetHandler): same.
625
626 2005-11-26  Miguel de Icaza  <miguel@novell.com>
627
628         * HttpResponseStream.cs: Do not try to write zero bytes.
629
630 2005-11-24  Miguel de Icaza  <miguel@novell.com>
631
632         * WebROCollection.cs: Do not add an empty "=" to the query string
633         if the key is empty or null.
634
635 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
636
637         * WebROCollection.cs: override ToString and generate a query string from
638         the key/value pairs. Fixes bug #76779.
639
640 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
641
642         * HttpServerUtility.cs: prevent possible nullref in GetLastError().
643
644 2005-11-07  Jason Diamond  <jason@diamond.name>
645
646         * HttpRequest.cs: Don't throw exception when Content-Length doesn't
647         match length of POSTed data. Also, allow charset parameter on
648         Content-Type header when type is "application/x-www-form-urlencoded".
649
650 2005-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
651
652         * WebROCollection.cs: add an ID for the collection. Page needs it.
653
654 2005-11-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
655
656         * HttpRequest.cs: no need to allocate the buffer when all the content
657         is preloaded.
658
659 2005-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
660
661         * HttpApplication.cs: ignore TAE in ProcesssError. The Error event might
662         redirect or transfer and that causes a TAE to be thrown. Fixes
663         bug #76573.
664
665 2005-11-01  Chris Toshok  <toshok@ximian.com>
666
667         * VirtualPathUtility.cs: new (partial implementation) to get some
668         MS provider examples compiling.
669
670 2005-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
671
672         * HttpContext.cs: added a new internal overload for ClearError.
673
674 2005-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
675
676         * HttpRuntime.cs: invoke callbacks on private items in the cache before 
677         calling disposing the app. factory. This way we get notifications of
678         removal for all sessions stored in the cache (InProc only).
679
680 2005-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
681
682         * HttpResponseStream.cs: reworked buffering so that adjacents blocks are
683         written at once. Also fix bug #76460.
684
685 2005-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
686
687         * HttpResponseStream.cs: when allocating a chunk larger than the
688         default chunk size, mark all the blocks as taken. Fixes bug
689         #76452.
690
691 2005-10-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
692
693         * HttpResponse.cs: use HaveFilter instead of Filter.
694         * HttpResponseStream.cs: allocate chunks of the requested size
695         when it's > 32KB. Fixes bug #76460.
696
697 2005-10-14  Sebastien Pouliot  <sebastien@ximian.com> 
698
699         * ServerVariablesCollection.cs: Added a demand for 
700         SerializationFormatter on GetObjectData method (even if it's not 
701         really required in this case as it remove warnings from gendarme.
702
703 2005-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
704
705         * HttpResponse.cs:
706         * HttpRequest.cs: buglets in error checking in Filter.
707
708 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
709
710         * OutputFilterStream.cs: proxy class for response filters.
711         * HttpResponse.cs: moved all the actual write operations into the
712         response stream. Handle response filtering. When caching, get the
713         actual length of the data, not the buffer length.
714         * HttpApplication.cs: if there's no error, invoke the filters before
715         updating the request cache.
716         * HttpResponseStream.cs: new Filter property. SendChunkSize is moved
717         here and now supports writing the final chunk. New method ApplyFilter
718         that filters the existing buckets and replaces them with the filtered
719         ones. Modified Write to deal with buffering and filtering.
720
721 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
722
723         * HttpResponseStream.cs: allow for writes of more than 32K at once.
724
725 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
726
727         * InputFilterStream.cs proxy stream for use by filters.
728         * HttpRequest.cs: implement input filtering.
729
730 2005-10-02 Eyal Alaluf <eyala@mainsoft.com>
731         * HttpApplication.jvm.cs - Workaround for use of yield in
732         HttpApplication.cs HttpRuntime.cs: AppDomain.Unload is not supported
733         * under TARGET_J2EE
734
735 2005-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
736
737         * HttpResponseStream.cs: remove dead code.
738
739 2005-09-29  Sebastien Pouliot  <sebastien@ximian.com> 
740
741         * HttpClientCertificate.cs: Remove last TODO on IsValid. This now 
742         works when using XSP. Now use flags to determine valid/presence.
743
744 2005-09-26  Chris Toshok  <toshok@ximian.com>
745
746         * HttpApplicationFactory.cs (OnAppFileChanged): add null checks
747         for bin_watcher and app_file_watcher so we don't get NRE's here.
748
749 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
750
751         * BrowserCapabilities.cs: don't rely on the win32 attribute to be there.
752         Just use the platform to determine whether Win32 is true or not. Fixes
753         bug #74777.
754
755 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
756
757         * HttpApplication.cs: fixed typo when setting UI culture. Closes bug
758         #76189.
759
760 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
761
762         * HttpRequest.cs: new SetFilePath() that does not conflict with
763         SetCurrentExePath. Now when transfering from a page to another,
764         CurrentExecutionFilePath and FilePath are correct.
765
766 2005-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
767
768         * TraceContext.cs: add new method to store size of controls.
769         * TraceData.cs: render control size.
770         * HttpResponse.cs: new internal method to get the number of bytes of
771         buffered output.
772         * HttpResponseStream.cs: added Length property to the Buckets and new
773         GetTotalLength.
774
775 2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
776
777         * TraceData.cs: we have to change the method of getting a control render
778         size. MS does not do this or otherwise would run into the same bug
779         (#76051) that this patch fixes. This is temporarily setting the size
780         to 0.
781
782 2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
783
784         * HttpResponseStream.cs: implemented Send(stream) for files. Fixes bug
785         #76145.
786
787 2005-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
788
789         * HttpRuntime.cs: catch errors when compiling global.asax and
790         initializing the application. Fixes bug #76090.
791
792 2005-09-14  Sebastien Pouliot  <sebastien@ximian.com> 
793  
794         * BrowserCapabilities.cs: Fixed changes (in 2.0) with versions. Fixed
795         compare with "True" (culture and case sensitivity).
796         * HttpApplicationState.cs: Added LinkDemand for Minimal. Use the 
797         internal HttpStaticObjectsCollection ctor to avoid the UnmanagedCode
798         demand.
799         * HttpContext.cs: Added LinkDemand for Minimal. Added 2.0 properties
800         and methods to test CAS on them.
801         * HttpRequest.cs: Added LinkDemand for Minimal. Ensure we return 
802         proper values when worker_request is null.
803         * HttpResponse.cs: Added LinkDemand for Minimal. Ensure we return 
804         proper values when context or WorkerRequest is null. Added 2.0 
805         properties and methods to test CAS on them.
806         * HttpRuntime.cs: Added LinkDemand for Minimal. Added PathDiscovery 
807         demands for properties returning directories. Added demand for High 
808         level on AppDomainAppId and AppDomainId properties, Low level on 
809         IsOnUNCShare, Medium level on ProcessRequest and a demand for 
810         UnmanagedCode on UnloadAppDomain method. Constructor also has a 
811         UnmanagedCode demand for 1.x.
812         * HttpStaticObjectsCollection.cs: Added LinkDemand for Minimal. Added
813         a UnmanagedCode demand to public ctor. Added internal ctor without the
814         demand. Changed Serialize and Deserialize methods to public for 2.0.
815
816 2005-09-14  Sebastien Pouliot  <sebastien@ximian.com>
817
818         * HttpWorkerRequest.cs: Removed TODO for 2.0 APIs and return the 
819         default values for them.
820
821 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com>
822
823         * HttpApplication.cs: : Added LinkDemand and InheritanceDemand (class)
824         for Minimal. Changed AssemblyLocation to a property (so it doesn't 
825         require special permission, PathDiscovery) to create an instance. 
826         Protected Modules property with a Demand for High level. Added some 
827         missing HttpException for null context.
828         * HttpServerUtility.cs: Added LinkDemand for Minimal. Added demands 
829         for UnmanagedCode on all CreateObject* methods. Added demand for 
830         Medium level on MachineName and ScriptTimeout properties. Added new
831         overloaded Transfer method (2.0) to test CAS on it.
832         * HttpUtility.cs: Added LinkDemand for Minimal. Added [Obsolete] to 
833         ctor (2.0). Changed some return values when 'count' is 0. Added 
834         ParseQueryString (overload) methods for 2.0 (to enabled CAS testing on
835         them).
836         * HttpWorkerRequest.cs: Added LinkDemand and InheritanceDemand (class)
837         for Minimal. Added RequestTraceIdentifier and RootWebConfigPath (2.0) 
838         properties, GetPreloadedEntityBody, GetPreloadedEntityBodyLength, 
839         GetTotalEntityBodyLength and ReadEntityBody (2.0) methods to test CAS 
840         on them. Fixed SendResponseFromMemory to ignore IntPtr.Zero (used in 
841         tests without failures).
842         * ServerVariablesCollection.cs: Fixed loadServerVariablesCollection 
843         when HttpWorkerRequest is null.
844         * TraceContext.cs: Added LinkDemand for Minimal. Fixed default Mode 
845         (SortByTime). Added new (2.0) TraceFinished event to test CAS on it.
846
847 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com> 
848  
849         * HttpBrowserCapabilities.cs: Added LinkDemand and InheritanceDemand 
850         (class) for Minimal. Note that current MCS has problem compiling 
851         security attributes on partial class (bug #75969).
852         * HttpCachePolicy.cs: Added LinkDemand for Minimal. Added 2.0 methods
853         (stub) to enable CAS tests on them.
854         * HttpCacheVaryByHeaders.cs: Added LinkDemand for Minimal.
855         * HttpCacheVaryByParams.cs: Added LinkDemand for Minimal.
856         * HttpClientCertificate.cs: Added LinkDemand and InheritanceDemand 
857         (class) for Minimal.
858         * HttpCookie.cs: Added LinkDemand for Minimal.
859         * HttpCookieCollection.cs: Added LinkDemand for Minimal.
860         * HttpFileCollection.cs: Added LinkDemand for Minimal.
861         * HttpModuleCollection.cs: Added LinkDemand for Minimal.
862         * HttpPostedFile.cs: Added LinkDemand for Minimal.
863         * HttpRequestPriority.cs: Fix enum values.
864         * HttpWriter.cs: Added LinkDemand for Minimal.
865
866 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com>
867
868         * ProcessInfo.cs: Added LinkDemand and InheritanceDemand (class) for
869         Minimal.
870         * ProcessModelInfo.cs: Added LinkDemand and InheritanceDemand (class)
871         for Minimal. Methods GetCurrentProcessInfo and GetHistory are also
872         protected by Demand for High level.
873
874 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com> 
875  
876         * HttpCompileException.cs: Added new public ctors and [Serializable]
877         to 2.0. Added new Message property and GetObjectData (protected by a
878         demand for SerializationFormatter) for 2.0. Fixed line-ending.
879         * HttpException.cs: Added LinkDemand and InheritanceDemand (class) for
880         Minimal. Renamed parameters to match documentation.
881         * HttpParseException.cs: Added LinkDemand (class) for Minimal. Added
882         demand for SerializationFormatter on GetObjectData method. Fixed 
883         line-ending.
884         * HttpRequestValidationException.cs: Added new public ctors and 
885         [Serializable] to 2.0. Added LinkDemand for Minimal.
886         * HttpUnhandledException.cs: Added new public ctors and [Serializable]
887         to 2.0. Removed unused internal ctor. Added LinkDemand for Minimal.
888         Fixed line-ending.
889
890 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com>
891
892         * HttpResponseSubstitutionCallback.cs: New. 2.0 delegate.
893         * TraceContextEventArgs.cs: New. 2.0 class.
894         * TraceContextEventHandler.cs: New. 2.0 delegate.
895
896 2005-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
897
898         * HttpRequest.cs: use GetServerName instead of GetLocalAddress when
899         building the Url.
900
901 2005-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
902
903         * HttpRequest.cs: fix the indexer.
904
905 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
906
907         * HttpPostedFile.cs: fixes in Seek and Position.
908
909 2005-09-08  Sebastien Pouliot  <sebastien@ximian.com>
910
911         * HttpRequest.cs: Make sure the MemoryStream created have their 
912         contents marked as public - or else you can't call GetBuffer on them!
913
914 2005-09-08  Miguel de Icaza  <miguel@novell.com>
915
916         * HttpRequest.cs: Patch from Juraj Skripsky <js@hotfeet.ch> that
917         fixes UrlReferrer. 
918
919 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
920
921         * HttpPostedFile.cs: Make this class actually work. Every time we read,
922         we have to position the underlying stream.
923
924 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
925
926         * HttpRequest.cs: reading multipart/form-data works again.
927
928 2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
929         * HttpRequest.cs: Under TARGET_JVM the input stream must allow GetBuffer.
930
931 2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
932         * HttpApplicationFactory.cs: TARGET_J2EE/JVM fix.
933
934 2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
935
936         * HttpRequest.cs: correctly detect multipart/form-data.
937
938 2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
939
940         * HttpApplicationFactory.cs: recycle after invoking session_end.
941
942 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
943
944         * HttpRuntime.cs: remove Console.
945
946         * HttpApplicationFactory.cs: don't hook Session_End, but keep
947         the MethodInfo around for later invocation if needed. Don't call
948         GetMethods() for every HttpApplication (or derived class) instances.
949         Added a method, used by SessionStateModule, that will create use an
950         application without context to invoke Session_End. Keep a pool of
951         applications that are meant to be used by this method only.
952
953         * HttpApplication.cs: add a SetSession method and do not
954         attach all the events if the application is for Session_End only.
955
956 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
957
958         * HttpRuntime.cs: actually unload the domain when requested. Reformatted
959         FinishUnavailable() and removed the 'Location' header form the error.
960
961         * HttpApplicationFactory.cs: set up the watcher for the bin directory.
962         This also prevents a nullref when global.asax is changed.
963
964 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
965
966         * HttpApplication.cs: fixed bug introduced when moving GetHandler call
967         around. Now we get error pages again.
968
969 2005-09-06  Miguel de Icaza  <miguel@novell.com>
970
971         * HttpApplication.cs: Catch EndRequest errors as well.
972
973 2005-09-05  Miguel de Icaza  <miguel@novell.com>
974
975         * HttpApplication.cs: Invoke EndRequest handler before OutputPage
976         as FormsAuthentication will issue a Redirect from the EndRequest 
977         handler. 
978
979 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
980
981         * HttpApplication.cs: when writing an error message, catch the possible
982         write error.
983
984 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
985
986         * HttpResponseStream.cs: prevent invalid cast exception if the first
987         thing written is a file.
988
989 2005-09-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
990
991         * HttpApplication.cs: fix invalid cast exception (bug #75926).
992
993 2005-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
994
995         * HttpApplicationFactory.cs: only trigger the Application_Start event
996         once. It was being invoked more than once when several clients were
997         hitting the server at the same time on startup.
998
999 2005-09-01 Eyal Alaluf <eyala@mainsoft.com>
1000
1001         * HttpContext.cs HttpResponse.cs HttpWorkerRequest.cs HttpRuntime.cs
1002           HttpApplicationFactory.cs HttpApplication.cs: TARGET_J2EE/JVM fixes.
1003           Mostly workaround limited AppModel in TARGET_J2EE.
1004
1005 2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1006
1007         * HttpResponse.cs: if the request method is HEAD, that's equivalent to
1008         SuppressContent. Added an internal TransmitFile that allows setting the
1009         final_flush flag.
1010         * StaticFileHandler.cs: use the new internal TransmitFile and remove
1011         generation of Content-Length header, as now it's computed correctly.
1012         * HttpApplication.cs: remove debugging stuff.
1013         * HttpResponseStream.cs: suppress_content is checked in HttpResponse.
1014
1015 2005-08-31  Miguel de Icaza  <miguel@novell.com>
1016
1017         Removed debugging info.
1018         
1019         * HttpApplication.cs: Add support for async handlers. 
1020
1021         Add extra 2.x methods. 
1022
1023 2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1024
1025         * BrowserCapabilities.cs: removed extra 'using'.
1026
1027         * HttpApplication.cs: use just the 'modcoll' to hold the collection of
1028         modules instead of having a separate 'modules' one.
1029
1030 2005-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1031
1032         * HttpApplication.cs: clone the module collection so that
1033         it's not shared between HttpApplications. Call GetHandler() in the
1034         right place.
1035
1036 2005-08-30  Miguel de Icaza  <miguel@novell.com>
1037
1038         * HttpApplication.cs: Add the new 2.x method overloads that take a
1039         data object.
1040
1041         (RunHooks): Pass the extra data instead of null.
1042
1043         * HttpCookie.cs (HttpOnly): Add 2.x cookie header.
1044
1045         * BrowserCapabilities.cs: Move the core of the capabilities into a
1046         separate file.  Use partial classes to choose what version to
1047         compile against.
1048
1049         * HttpBrowserCapabilities.cs: Update to move the code elsewhere.
1050
1051 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
1052
1053         * HttpResponseStream.cs: Fix a bug introduced by last fix (thanks to
1054         Ben)
1055
1056 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
1057
1058         * HttpResponseStream.cs: Compilation fixes for TARGET_JVM. TARGET_JVM
1059         does not support unsafe code. I localized all unsafe code within Chunk
1060         & Block and created a managed version of Chunk.
1061
1062 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
1063         * HttpApplicationFactory.cs: Compilation fixes for TARGET_J2EE. Under
1064         TARGET_J2EE static fields are shared by all app domains. We handle
1065         this difference by explicitly getting/setting values from the app
1066         domain.  Since HttpApplicationFactory has many static fields, I
1067         refactored it to have one static instance and moved the static fields
1068         into instance fields.
1069
1070 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
1071
1072         * HttpRequest.cs: Disable use of IntPtrStream for TARGET_JVM
1073
1074 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
1075
1076         * HttpContext.cs: Compilation fixes for TARGET_J2EE/JVM
1077
1078 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1079
1080         * HttpResponse.cs: don't duplicate the 'charset=' and don't send a
1081         charset for unknown MIME types.
1082         * StaticFileHandler.cs: set the Content-Length header here.
1083         * HttpRequest.cs: prevent nullrefs when we have no 'charset='.
1084
1085 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1086
1087         * StaticFileHandler.cs: use TransmitFile instead of WriteFile. This way
1088         xsp will use sendfile().
1089
1090 2005-08-28  Chris Toshok  <toshok@ximian.com>
1091
1092         * SiteMapNode.cs: fix IHierarchyData.GetParent.
1093
1094 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1095
1096         * HttpRequest.cs:
1097         * IntPtrStream.cs: now we only have a read-only MemoryStream or an
1098         IntPtrStream. The copy is moved into HttpRequest.
1099
1100 2005-08-26  Sebastien Pouliot  <sebastien@ximian.com>
1101
1102         * WebCategoryAttribute.cs: New. Required internal attribute.
1103         * WebSysDescriptionAttribute.cs: New. Required internal attribute.
1104
1105 2005-08-26  Jackson Harper  <jackson@ximian.com>
1106
1107         * HttpResponseStream.cs: Use GetBuffer so the memory isn't
1108         duplicated.
1109
1110 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1111
1112         * HttpApplication.cs: GetHandler might return null when, for example,
1113         a web service fails, but that does not mean that returning a null
1114         handler should throw another exception, as the web service code
1115         serialized the error as a faultString. So if the handler is null, just
1116         don't call ProcessRequest and keep going.
1117
1118 2005-08-26  Jackson Harper  <jackson@ximian.com>
1119
1120         * HttpResponse.cs: Send the cached headers if this is a cached
1121         response. Save the headers, date header, and page data. Fix a typo.
1122         * HttpResponseStream.cs: Add new accesor to get a byte [] of the
1123         page data.
1124
1125 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1126
1127         * HttpWorkerRequest.cs: SetEndOfSendNotification is a noop. No matter
1128         what callback you use that never gets called. In XSP I actually
1129         implement something for this method.
1130         * HttpServerUtility.cs: unused variable.
1131
1132 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1133
1134         * HttpInputStream.cs: new ctor that takes a byte [].
1135         * IntPtrStream.cs: make it work on a byte [] too.
1136
1137         * HttpRequest.cs:
1138         (ContentLength): return 0 for negative numbers or error parsing, but
1139         keep content_length negative in those cases.
1140         (MakeInputStream): when there's no content-length (or it's negative),
1141         we still read the request into a MemoryStream. Use
1142         IsEntireEntityIsPreloaded() as a fast path.
1143
1144 2005-08-25  Sebastien Pouliot  <sebastien@ximian.com>
1145
1146         * HttpClientCertificate.cs: On 1.x the .ctor throws a 
1147         ArgumentNullException (but 2.0 throws a NRE).
1148
1149 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1150
1151         * HttpRequest.cs: HttpMethod deserves its own field. Fix IsLocal.
1152
1153 2005-08-25  Chris Toshok  <toshok@ximian.com>
1154
1155         * HttpApplication.cs (IsReusable): return true.
1156         (InitOnce): remove the initialization of handler_factory from
1157         here.
1158         (GetHandler) and move it here, so we make sure to load handlers
1159         from all needed web.config files.
1160
1161 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1162
1163         * HttpServerUtility.cs: use GetHandler().
1164         * HttpApplication.cs: remove obsolete method. Now Transfe/Execute work.
1165
1166 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1167
1168         * HttpApplication.cs: no need for the local var. here.
1169
1170 2005-08-25  Chris Toshok  <toshok@ximian.com>
1171
1172         * HttpApplication.cs (InitOnce): move the initialization of
1173         modules above the call to HttpApplicationFactory.AttachEvents,
1174         since that method accesses HttpApplication.Modules.  Fixes
1175         nGallery.
1176         (IsReusable): mark TODO.
1177
1178 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1179
1180         * HttpResponseHeader.cs: removed obsolete class.
1181         * HttpResponse.cs: no more 'obsolete' warnings.
1182
1183 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1184
1185         * HttpRuntime.cs: implemeted some missing properties.
1186
1187 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1188
1189         * HttpResponse.cs: implemented RemoveOutputCacheItem().
1190
1191 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1192
1193         * HttpApplication.cs: implemented GetVaryByCustomString().
1194
1195 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1196
1197         * HttpRequest.cs: implemented SetHeader (allows adding a header
1198         circumventing the read-only protection of the collection) and SetForm,
1199         which just assigns a value of the 'form' collection.
1200         * HttpServerUtility.cs: NameValueCollection -> WebROCollection.
1201
1202 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1203
1204         * HttpContext.cs:
1205         * HttpRequest.cs: implemented RewritePath and supporting methods.
1206
1207 2005-08-22  Sebastien Pouliot  <sebastien@ximian.com>
1208
1209         * HttpRequest.cs: Avoid NRE if work_request if null in the ctor.
1210         * HttpResponse.cs: Avoid NRE if work_request if null in the ctor.
1211
1212 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1213
1214         * HttpApplication.cs: if there's any exception thrown when getting the
1215         handler, don't add an extra error to the context, as we already have
1216         one.
1217
1218 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1219
1220         * HttpWriter.cs:
1221         * HttpResponse.cs:
1222         * HttpWorkerRequest.cs:
1223         * HttpApplication.cs: added mising attributes and enabled methods
1224         present in 1.1 SP1.
1225
1226 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1227
1228         * WebROCollection.cs: a collection that allows setting IsReadOnly.
1229         * HttpRequest.cs: implemented MapImageCoordinates(). Use WebROCollection
1230         instead of a NameValueCollection in Form, Headers, Params, QueryString.
1231
1232 2005-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1233
1234         * HttpInputStream.cs: new copy ctor.
1235         * IntPtrStream.cs: getters for base_address and size.
1236         * HttpRequest.cs: implemented SaveAs(). Use a wrapper on top of
1237         InputStream so that reading POST form or files does not modify the state
1238         if InputStream. Don't use uri_builder.Query in QueryStringRaw, as it
1239         returns the '?'.
1240
1241 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1242
1243         * HttpRequest.cs: implemented UserLanguages and reuse code from
1244         AcceptTypes.
1245
1246 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1247
1248         * HttpRequest.cs: implemented AcceptTypes.
1249
1250 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1251
1252         * HttpRequest.cs: implemented this[] in terms of Params. Don't add the
1253         header collection in Params.
1254
1255 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1256
1257         * HttpRequest.cs: fix Files property.
1258         * HttpApplication.cs: invoke the default authentication event after all 
1259         the other auth. modules.
1260
1261 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1262
1263         * ServerVariablesCollection.cs: mark the collection as read-only except
1264         when we fill it. Add the HTTP_blah key/value pairs too.
1265
1266 2005-08-18  Chris Toshok  <toshok@ximian.com>
1267
1268         * HttpRequest.cs (get_Params): implement.
1269
1270 2005-08-17  Chris Toshok  <toshok@ximian.com>
1271
1272         * HttpResponse.cs: HttpResponse's Cookie's collection acts
1273         differently than HttpRequests in that it never returns null from
1274         the "this [string]" accessor.
1275
1276 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1277
1278         * HttpRequest.cs: check length 0 case when reading a POST.
1279
1280 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1281
1282         * HttpContext.cs: added security attributes for User and
1283         SkipAuthorization properties.
1284         * HttpApplicationFactory.cs: AttachEvents is now called form the
1285         application .ctor. Recycle instead of dispose.
1286         * HttpApplication.cs: attach events to the newly created application.
1287
1288 2005-08-15  Jackson Harper  <jackson@ximian.com>
1289
1290         * ApplicationShutdownReason.cs: make build
1291
1292 2005-08-15  Miguel de Icaza  <miguel@novell.com>
1293
1294         * HttpApplication.cs: Update comments
1295
1296         * HttpPostedFile.cs: Use a substream to read from the uploaded
1297         multiparts. 
1298
1299         * HttpRequest.cs: use new code to read the uploaded files.
1300
1301 2005-08-12  Miguel de Icaza  <miguel@novell.com>
1302
1303         2.x API fixage and small additions:
1304         
1305         * HttpResponse.cs: Make constructor internal.
1306
1307         * HttpRequest.cs (IsLocal): Expose if NET_2.x
1308
1309         * HttpContext.cs: Remove internal routine.
1310
1311         * HttpApplication.cs: Add 2.x events. 
1312
1313         * HttpRequest.cs: Another iFolder issue: I was not setting up the
1314         uri_builder here.
1315
1316         Fixes to get iFolder to work:
1317         
1318         * HttpApplicationFactory.cs: Set the context when we are initting
1319         the application.
1320
1321         * HttpApplication.cs (SetContext): helper routine. 
1322
1323         * HttpResponse.cs: Implement the various cache operations:n
1324         Expires, ExpiresAbsolute, CacheControl.
1325
1326         Actually produce the Cache-Control header, the "Cache" property
1327         takes precedence over the compatibility settings (Expires,
1328         ExpiresAbsolutely and CacheControl). 
1329
1330         * HttpCachePolicy.cs: Fix style.
1331
1332         Fix the generation of the headers, use lower-case values, do not
1333         add the max-value if the value is zero.  
1334
1335         Allow for all possible values in SetCacheability. 
1336
1337         * HttpRuntime.cs (ClrInstallDirectory): Implement.
1338
1339         * HttpResponseStream.cs: Remove debugging stuff. 
1340
1341 2005-08-11  Miguel de Icaza  <miguel@novell.com>
1342
1343         Big chunked handling rewrite, and integration of Ben's unmanaged
1344         output stream.
1345
1346         * HttpWriter.cs: Delegate chunked encoding writing to the
1347         HttpResponse. 
1348
1349         * HttpResponse.cs: Rework the chunked encoding system, centralize
1350         it all. 
1351
1352         * HttpResponseStream.cs: Deploy Ben's bucket-base unmanaged
1353         buffers code. 
1354
1355         Changed the way that we handle chunked encoding, centralize it
1356         all;  
1357
1358         Remove a lot of manual handling of buffering turned off, and
1359         instead delegate it all to Flush, fixes several issues with the
1360         new framework.
1361
1362         * HttpWorkerRequest.cs (SendResponseFromMemory (IntPtr, int)):
1363         Provide a default implementation since currently XSP does not have
1364         this method implemented. 
1365
1366 2005-08-11  Sebastien Pouliot  <sebastien@ximian.com> 
1367  
1368         * HttpClientCertificate.cs: Culture insensitive int parsing. Fixed
1369         NET_2_0 build.
1370
1371 2005-08-10  Miguel de Icaza  <miguel@novell.com>
1372
1373         * ServerVariablesCollection.cs: For Ben.  Implement the header
1374         fetching here, do not implement it in HttpRequest.cs.
1375
1376 2005-08-10  Sebastien Pouliot  <sebastien@ximian.com> 
1377  
1378         * HttpClientCertificate.cs: Changed IsPresent logic so that new unit
1379         tests will work as expected.
1380
1381 2005-08-10  Sebastien Pouliot  <sebastien@ximian.com>
1382
1383         * HttpClientCertificate.cs: Implemented, except for validation. Note 
1384         that the HttpWorkerRequest derived classes must be updated to supply 
1385         the required informations.
1386         * HttpRequest.cs: Create an HttpClientCertificate on first call to
1387         ClientCertificate.
1388
1389 2005-08-09  Miguel de Icaza  <miguel@novell.com>
1390
1391         * HttpRuntime.cs (AspInstallDirectory): Implement.
1392
1393 2005-08-09  Sebastien Pouliot  <sebastien@ximian.com>
1394
1395         * HttpClientCertificate.cs: New. Stub. It won't be fun to test.
1396
1397 2005-08-04  Ben Maurer  <bmaurer@ximian.com>
1398
1399         * HttpContext.cs: Kill a NIE.
1400
1401 2005-08-04  Miguel de Icaza  <miguel@novell.com>
1402
1403         * HttpApplicationFactory.cs: Change "Start" event like the "End"
1404         event, and only do this once, when we init the type.
1405
1406         Fire the "Application_Start" event after we create the type.
1407
1408 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1409
1410         * HttpApplication.cs: catch a ThreadAbort (coming from Response.End)
1411         here too.
1412
1413 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1414
1415         * HttpResponse.cs: setting the Status property resets the
1416         StatusDescription (see the tests) and the default value for the
1417         description is the one provided by GetStatusDescription() in
1418         HttpWorkerRequest.
1419
1420 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1421
1422         * HttpRequest.cs: s/boundry/boundary/ and fix typo in array creation.
1423
1424 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1425
1426         * HttpApplication.cs: add call to EndOfRequest when everything is said
1427         and done.
1428
1429 2005-08-02  Miguel de Icaza  <miguel@novell.com>
1430
1431         * HttpResponse.cs: Stub for TransmitFile.
1432
1433         * HttpRequest.cs (IsAuthenticated): Implement.
1434
1435 2005-08-01  Miguel de Icaza  <miguel@novell.com>
1436
1437         * HttpRequest.cs: Cope with implementations of HttpWorkerRequest
1438         (unpatched xsp) that do not send back the PreloadedEntityBody. 
1439
1440         * HttpApplication.cs: keep track of the factory. 
1441         (Dispose): Only dispose once, clean up other variables, release
1442         the ManualResetEvent.
1443         Release the handler to the factory.
1444
1445         * HttpApplicationFactory.cs: Implement a stack to reuse the
1446         applications. 
1447
1448         * HttpRequest.cs: On uploads, if the ContentLenght is zero, throw
1449         a 411.
1450
1451         * HttpRuntime.cs: Recycle the application after using it.
1452
1453         * HttpPostedFile.cs: Implement SaveAs.
1454
1455         * HttpContext.cs: Return the "Server" property.
1456
1457 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1458
1459         * HttpServerUtility.cs: implemented missing bits.
1460
1461 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1462
1463         * HttpRequest.cs: query string was getting a '?' as the start of the
1464         first variable name. This makes the asmx help page work again.
1465
1466 2005-08-01  Miguel de Icaza  <miguel@novell.com>
1467
1468         * HttpRequest.cs (Cookies, Forms): Add validation.
1469         (Forms): Add application/x-www-form-urlencoded parsing and
1470         multipart/form-data parsing.
1471         
1472         (HttpMultiPart): Implement new class to load multi-part data from
1473         a stream since there is no longer a byte [] that holds the data
1474         (currently we have an unmanaged IntPtr buffer wrapped as a
1475         stream).  Also the 2.x framework will add support for large
1476         uploads which are sent directly to disk, which will require the
1477         FileStream interface. 
1478         
1479         (Path, PathInfo): Fill a couple more methods to avoid crashes.
1480
1481         * HttpContext.cs: Fill another one to get web services summary
1482         page painting.  The page does not work though.
1483         
1484         * HttpApplication.cs: Rework the pipeline to not depend on
1485         `finally', as `finally' would not be invoked if we choose not to
1486         call the pipeline again (which happens if the `stop' variable is
1487         set). 
1488
1489         Instead force the pipeline to go to the shutdown, and yield from
1490         there after all the release-state callbacks have been invoked. 
1491
1492 2005-07-31  Miguel de Icaza  <miguel@novell.com>
1493
1494         * HttpApplication.cs: Remove debugging messages since the compiler
1495         bug has been fixed.
1496
1497         You must use at least mcs from revision 47879 for the application
1498         pipeline to work. 
1499
1500 2005-07-30  Miguel de Icaza  <miguel@novell.com>
1501
1502         * HttpContext.cs: Error handling methods.
1503
1504         * HttpResponse.cs: Trigger the last event.
1505
1506         * HttpRuntime.cs: Add queueing of the next request. 
1507
1508         * HttpApplication.cs: Deploy the new yield-based application
1509         pipeline, add error handling to the pipeline.
1510         
1511         * HttpApplication.cs (AsyncRequestState): Just use the done event
1512         from the parent.
1513
1514 2005-07-29  Miguel de Icaza  <miguel@novell.com>
1515
1516         * HttpResponseStream.cs, HttpRequest.cs: Fix bugs found by nunit.
1517
1518         * HttpApplication.cs: Fix a race condition. 
1519
1520         * HttpResponseStream.cs: Fix bug, send the size of the buffer that
1521         we have so far instead of the internal size of the buffer.   This
1522         will need work later to ensure we enforce the Content-Length
1523         maximum output size if set.
1524
1525         * ServerVariablesCollection.cs: This class now inherits from
1526         NameValueCollection, we should probably review what the middle
1527         class did, there are no dependencies on it.
1528
1529         I need to write tests to investigate if something is missing or
1530         has changed in this implementation. 
1531
1532 2005-07-27  Miguel de Icaza  <miguel@novell.com>
1533
1534         * HttpRequest.cs: No happy replies here, send a 411.
1535
1536 2005-07-27  Chris Toshok  <toshok@ximian.com>
1537
1538         * HttpResponseHeader.cs: remove spew.
1539         
1540 2005-07-27  Chris Toshok  <toshok@ximian.com>
1541
1542         * HttpResponseHeader.cs (HttpResponseHandler..ctor): use
1543         HttpWorkerRequest.GetKnownResponseHeaderName instead of
1544         GetKnownRequestHeaderName.  Fixes Response.Redirect until miguel's
1545         new HttpReponse is online.
1546
1547 2005-07-26  Miguel de Icaza  <miguel@novell.com>
1548
1549         * HttpResponse.cs: use_chunked is now a byte-array, if not null,
1550         we use it to hold the size of the chunked so we do not have to
1551         allocate many of these. 
1552         (SendSize): Helper routine to send the chunked headers.
1553         (BinaryWrite): First user of the chunked writer.
1554
1555         * HttpApplication.cs: Do not crash if they request a Server
1556         instance, but throw a NotImplementedException.
1557
1558         * HttpRequest.cs: fix a few problems exposed by the regression
1559         test suite.
1560
1561         * HttpRequest.cs (Cookies): use Chris' new constructor to get the
1562         cookies parsed.
1563
1564         : The big Uri rework: instead of using QueryString
1565         as the population mechanism, populate an UriBuilder from the
1566         various HttpWorkerRequest methods.
1567
1568         * HttpWorkerRequest.cs (GetProtocol): Implement in terms of
1569         IsSecure().
1570
1571         * HttpResponse.cs: Pointed by Ben, Write (null) is a nop instead
1572         of a crash.
1573
1574         * HttpContext.cs: Add a couple of properties to help the 2.x
1575         build.
1576         
1577         * HttpResponse.cs: Make ContentLength a long, add back support for
1578         session's app_path_mod.
1579         (ApplyAppPathmodifier): put back.
1580         (End): Pass a flag to abort so we can tell the exceptions appart
1581         in HttpApplication.
1582         (WriteHeaders): Send the HTTP status.
1583         (Redirect): Implement.
1584         (Write): Use the Output property to load writer when needed.
1585         
1586         * HttpRequest.cs (ctor): Temporary use of InitFromWR, will fix
1587         later. 
1588         (MakeInputStream): check content-length size, use routines to load
1589         the preloaded data, handle incomplete transfers.
1590         (Query): Do not insert null keys into the collection.
1591         (Url): implement.
1592         (UrlReferer): implement.
1593
1594         * HttpApplication.cs (RunHooks): Catch Thread.Abort, and call
1595         Thread.ResetAbort after each step.
1596
1597         Ensure that ReleaseState is called if we ever succeed in acquiring
1598         the state even if we have stopped the request pipeline.
1599
1600         Report file not found, directory not found.
1601
1602 2005-07-25  Miguel de Icaza  <miguel@novell.com>
1603
1604         * HttpCookieCollection.cs: Add expiration of the cookie. 
1605
1606         * HttpRequest.cs: Add check for ContentLength, use
1607         GetPreloadedEntityBody, correct number of bytes uploaded.
1608
1609 2005-07-21  Miguel de Icaza  <miguel@novell.com>
1610
1611         * HttpResponseHeader.cs: Our implementation of HttpResponse only
1612         uses the text headers, does not use any constants as XSP would go
1613         through a slower code path anyways.
1614
1615 2005-07-21  Chris Toshok  <toshok@ximian.com>
1616
1617         * HttpBrowserCapabilities.cs: enable support for the W3CDomVersion
1618         and EcmaScriptVersion properties.
1619
1620 2005-07-21  Chris Toshok  <toshok@ximian.com>
1621
1622         * HttpResponseHeader.cs: hi, i'm stupid and missed String.Replace.
1623         
1624 2005-07-21  Chris Toshok  <toshok@ximian.com>
1625
1626         * HttpResponseHeader.cs: url encode just \r and \n if they're
1627         present in the value.
1628
1629 2005-07-20  Chris Toshok  <toshok@ximian.com>
1630
1631         * HttpPostedFile.cs: add missing ContentLength property.
1632
1633 2005-07-20  Chris Toshok  <toshok@ximian.com>
1634
1635         * HttpCookieCollection.cs: add a new ctor that takes a string (the
1636         contents of the Cookies: header).
1637
1638 2005-07-20  Chris Toshok  <toshok@ximian.com>
1639
1640         * HttpCookieCollection.cs: add another ctor (internal, but not
1641         obsolete, so we aren't passing a stupid HttpResponse in in order
1642         to change the behavior of the collection.)
1643
1644         * HttpCookie.cs: init this.values in the internal ctor.
1645
1646 2005-07-20  Chris Toshok  <toshok@ximian.com>
1647
1648         * HttpCookieCollection.cs: use "auto-fill mode" when we're dealing
1649         with an HttpResponse's cookie collection.  That is, create the
1650         cookie if the consumer looks it up.
1651
1652 2005-07-20  Miguel de Icaza  <miguel@novell.com>
1653
1654         * HttpApplication.cs: Ongoing work on pipeline, I will need to
1655         redo this later.
1656
1657 2005-07-19  Miguel de Icaza  <miguel@novell.com>
1658
1659         * HttpContext.cs (GetService): Implement.  Return all of the
1660         properties that we have access to.  Make HttpWorkerRequest the
1661         first match as this is the only likely reason people need to use
1662         this. 
1663
1664         * IntPtrStream.cs: Bring from corlib.
1665
1666         * MultiPartContentParser.cs: use a MemoryStream as HttpInputStream
1667         will now be using IntPtrStream. 
1668
1669         * HttpRequest.cs (MakeInputStream): move code that loads the
1670         request here
1671         (CloseInputStream): Helper method that we will call later to
1672         ensure that we dispose properly the malloced() block. 
1673         (BinaryRead): Implemented.
1674
1675         * HttpInputStream.cs: Rewrite to be a descendant of
1676         IntPtrStream.cs 
1677
1678 2005-07-18  Miguel de Icaza  <miguel@novell.com>
1679
1680         * HttpApplication.cs (Modules): Add modules support and
1681         AsyncResult.
1682
1683 2005-07-18  Chris Toshok  <toshok@ximian.com>
1684
1685         * HttpResponseHeader.cs: initial implementation.
1686
1687 2005-07-18  Chris Toshok  <toshok@ximian.com>
1688
1689         * HttpModuleCollection.cs (HttpModuleCollection.GetKey): add
1690         missing method.
1691
1692         * HttpFileCollection.cs: initial implementation.
1693
1694 2005-07-18  Chris Toshok  <toshok@ximian.com>
1695
1696         * HttpModuleCollection.cs (HttpModuleCollection.CopyTo): implement
1697         missing method.
1698
1699 2005-07-18  Chris Toshok  <toshok@ximian.com>
1700
1701         * HttpModuleCollection.cs: initial implementation.
1702
1703 2005-07-18  Chris Toshok  <toshok@ximian.com>
1704
1705         * HttpCacheVaryByHeaders.cs: only add the header if it's not
1706         already in the hash.
1707
1708         * HttpCacheVaryByParams.cs: only add the param if it's not already
1709         in the hash.
1710
1711 2005-07-18  Chris Toshok  <toshok@ximian.com>
1712
1713         * HttpCookie.cs (HttpCookie+CookieNVC.Set): new override to fix an
1714         MS quirk.
1715
1716 2005-07-17  Miguel de Icaza  <miguel@novell.com>
1717
1718         * HttpRequest.cs (Headers, InputStream): implemented two more
1719         properties.
1720
1721         * HttpInputStream.cs: All we need is a MemoryStream with writable
1722         set to false.
1723
1724         * HttpPostedFile.cs: Use a Stream.
1725
1726 2005-07-16  Chris Toshok  <toshok@ximian.com>
1727
1728         * HttpCacheVaryByHeaders.cs: make sure we set vary_by_unspecified
1729         = false in the custom setter.
1730
1731 2005-07-16  Chris Toshok  <toshok@ximian.com>
1732
1733         * HttpCacheVaryByParams.cs: initial implementation.
1734
1735 2005-07-16  Chris Toshok  <toshok@ximian.com>
1736
1737         * HttpCacheVaryByHeaders.cs: initial implementation.
1738
1739 2005-07-15  Chris Toshok  <toshok@ximian.com>
1740
1741         * HttpCookie.cs: one more time.
1742
1743 2005-07-15  Chris Toshok  <toshok@ximian.com>
1744
1745         * HttpCookie.cs (HttpCookie.GetCookieHeader): use
1746         expires.ToString().
1747         
1748 2005-07-15  Chris Toshok  <toshok@ximian.com>
1749
1750         * HttpCookie.cs (HttpCookie.GetCookieHeader): implement to fix
1751         ben's bug.
1752
1753 2005-07-15  Chris Toshok  <toshok@ximian.com>
1754
1755         * HttpCookieCollection.cs: initial implementation (with a couple
1756         of labeled inefficiencies.)
1757
1758 2005-07-15  Chris Toshok  <toshok@ximian.com>
1759
1760         * HttpCookie.cs (HttpCookie.get_HasKeys): use values.HasKeys()
1761         instead of trying to be smart about it ourselves.
1762
1763 2005-07-15  Chris Toshok  <toshok@ximian.com>
1764
1765         * HttpCookie.cs: initial implementation.  we fail one unit test,
1766         but it might be due to a bug in NameValueCollection.
1767
1768 2005-07-15  Miguel de Icaza  <miguel@novell.com>
1769
1770         * HttpRequest.cs: 
1771
1772 2005-07-14  Miguel de Icaza  <miguel@novell.com>
1773
1774         * HttpRuntime.cs: Return a few of the values from the AppDomain
1775         data. 
1776
1777         Put the application shutdown process.
1778
1779         * HttpApplicationFactory.cs (AddEvent): Fixed bug when more than
1780         one method existed.
1781         
1782         (FireEvent): Do not ignore errors.
1783
1784         * HttpContext.cs (GetAppConfig, GetConfig): First success, use
1785         ConfigurationSettings.GetConfig to get the value that QueueManager
1786         needed.
1787
1788 2005-07-14  Dick Porter  <dick@ximian.com>
1789
1790         * HttpPostedFile.cs: New basic implementation; needs someone to
1791         figure out what a HttpRequestStream does
1792
1793 2005-07-13  Miguel de Icaza  <miguel@novell.com>
1794
1795         * HttpRequest.cs: More work on this file
1796
1797         * HttpRequest.cs, HttpApplication.cs, HttpContext.cs,
1798         HttpRuntime.cs: New from scratch implementation.
1799
1800 2005-07-01  Lluis Sanchez Gual <lluis@novell.com>
1801
1802         * SiteMap.cs: Read provider info from the configuration files.
1803
1804 2005-06-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1805
1806         * HttpResponseHeader.cs: URL encode \r and \n in header values. Fixes
1807         bug #75392.
1808
1809 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1810
1811         * HttpUtility.cs: fix another stupid buglet in htmldecode.
1812
1813 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1814
1815         * HttpContext.cs:
1816         * HttpResponse.cs:
1817         * HttpRequest.cs: use StrUtils (invariant culture).
1818
1819 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1820
1821         * HttpRequest.cs: use StartsWith when looking for 'multipart/form-data'.
1822         File uploading was broken since a few commits ago.
1823
1824 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1825
1826         * HttpResponse.cs: ensure that the last chunk ('0\r\n\r\n') is sent
1827         even if response.Close is called before a final flush. MS/IIS fails to
1828         do this.
1829
1830 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1831
1832         * HttpRequest.cs: don't print anything for unknown content types in
1833         ParseFormData. Use lowercase compare.
1834
1835 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1836
1837         * HttpResponse.cs: invariant love.
1838
1839 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1840
1841         * HttpResponse.cs: avoid 1 string concat.
1842         * HttpRequest.cs: fix BinaryRead. It was totally wrong.
1843
1844 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1845
1846         * HttpUtility.cs: don't append an extra 0 when no digits seen. Fixes
1847         bug #75370.
1848
1849 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1850
1851         * HttpUtility.cs: the lower limit for using &#xx; encoding is 160, not
1852         128. Reset number back to 0 after use. Fixes bug #75365.
1853
1854 2005-06-19  Svetlana Zholkovsky <svetlanaz-at-mainsoft.com>
1855                 * In following classes added TARGET_J2EE or/and TARGET_JVM
1856                   directives:
1857                         - HttpResponse.cs
1858                         - HttpRuntime.cs
1859                         - HttpUtility.cs
1860                         - CapabilitiesLoader.cs
1861                         - HttpApplication.cs
1862                         - HttpApplicationFactory.cs
1863                         - HttpContext.cs
1864                         - HttpException.cs
1865                         - HttpRequest.cs
1866                 * Added Mainsoft's specific files :
1867                         - GhHttpAsyncResult.jvm.cs
1868
1869 2005-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1870
1871         * HttpRequest.cs: avoid one intermediate buffer when reading the request
1872         body and fail for over limit content length when the content type is
1873         not handled as form or multipart data.
1874
1875 2005-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1876
1877         * HttpResponse.cs: fix the check in Close() so that CloseConnection is
1878         called even if there has been no final Flush. Fixes bug #75176.
1879
1880 2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1881
1882         * HttpParseException.cs:
1883         * HttpResponse.cs:
1884         * HttpApplication.cs: updates for 1.1 service pack.
1885
1886 2005-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1887
1888         * HttpUtility.cs: fix InvalidCastException.
1889
1890 2005-06-05  Kornél Pál <kornelpal@hotmail.com>
1891
1892         * HttpWriter.cs: Fixed: _OutputFilter.Close () was called twice.
1893
1894 2005-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1895
1896         * HttpUtility.cs: modified HtmlDecode so that it does not need to call
1897         Int32.Parse and handles improper &# sequences. Fixes bug #74907.
1898
1899 2005-05-26  Lluis Sanchez Gual <lluis@novell.com>
1900
1901         * SiteMapNodeCollection.cs: Implemented missing methods. The collection
1902         does not inherit from CollectionBase any more.
1903         * SiteMapNode.cs: Track api changes.
1904         * SiteMapProvider.cs: Moved several methods to the new
1905         StaticSiteMapProvider class. Other fixes.
1906         * XmlSiteMapProvider.cs: Watch changes in the xml files. Other fixes.
1907         * SiteMapProviderCollection.cs: Minor fixes.
1908         * SiteMap.cs: Added missing event. Avoid double check lock.
1909         * StaticSiteMapProvider.cs: New class that implements some of the
1910         funtionality of SiteMapProvider.
1911
1912 2005-05-25  Ben Maurer  <bmaurer@ximian.com>
1913
1914         * MimeTypes.cs: Remove extra spaces, they were typos. Fixes 75049.
1915
1916 2005-05-13 Atsushi Enomoto <atsishi@ximian.com>
1917
1918         * HttpUtility.cs : UrlDecodeToBytes() incorrectly decoded escaped 
1919           characters. Patch by Kazuki Oikawa.
1920
1921 2005-05-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1922
1923         * HttpRuntime.cs: PlatformID.Unix.
1924
1925 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1926
1927         * HttpResponse.cs: cleaned up the .ctors, fix IsClientConnected and just
1928         Clear the _Headers array instead of creating a new ArrayList in
1929         ClearHeaders().
1930
1931 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1932
1933         * HttpResponse.cs: we had 2 variables to track client connection status.
1934         Use only one. Increase the buffer size to 28KB when writing from a file.
1935
1936         * StaticFileHandler.cs: set the Content-Type before writing the file.
1937         This allows flushing before all the content is written.
1938
1939         * HttpApplication.cs: use the variable instead of the property when
1940         setting the Principal for the current process.
1941
1942 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1943
1944         * ReusableMemoryStream.cs:
1945         * HttpWriter.cs: keep a pool of buffers to avoid allocations.
1946
1947 2005-05-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1948
1949         * HttpResponse.cs: no need to save/restore the thread culture when
1950         getting the Date header. According to Ben's profiling, this is a big
1951         deal in performance.
1952
1953         * HttpRuntime.cs: ignore exceptions that might be thrown when unloading 
1954         a domain.
1955
1956 2005-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1957
1958         * HttpApplicationFactory.cs: ignore any exception thrown when invoking
1959         an application event.
1960
1961 2005-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1962
1963         * HttpBrowserCapabilities.cs: fix Win32 property.
1964
1965 2005-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1966
1967         * HttpResponse.cs: only add the charset when explicitly set or for
1968         well-known content types.
1969
1970 2005-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1971
1972         * HttpCachePolicy.cs:
1973         * HttpAsyncResult.cs:
1974         * HttpClientCertificate.cs:
1975         * HttpException.cs:
1976         * HttpRuntime.cs:
1977         * HttpCacheVaryByHeaders.cs:
1978         * HttpBrowserCapabilities.cs:
1979         * HttpUtility.cs:
1980         * HttpCacheVaryByParams.cs: no more warnings.
1981
1982         * QueueManager.cs: check for local connections with minLocalFreeThreads.
1983
1984 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1985
1986         * ServerVariablesCollection.cs: shuffled variables, added missing ones
1987         and call a method in HttpRequest to set the HTTP_ variables.
1988
1989         * HttpRequest.cs: new method to add HTTP_ variables to a collection.
1990
1991 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1992
1993         * HttpRequest.cs: GetAllHeaders was returning the value twice instead
1994         of 'name: value'. When HTTP_ is requested on the output, don't include
1995         unknown headers.
1996
1997 2005-03-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1998
1999         * HttpCookieCollection.cs: when adding more than one cookie with the
2000         same name, the last one is the winner.
2001
2002 2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2003
2004         * HttpRequest.cs: correctly store the value cookies in Params. Fixes
2005         bug #73345.
2006
2007 2005-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2008
2009         * HttpRequest.cs: Path and FilePath also change when RewritePath is
2010         called. Fixes bug #73055.
2011
2012 2005-02-23  Sebastien Pouliot  <sebastien@ximian.com>
2013
2014         * HttpRequest.cs: Make sure that any access after a ValidateInput 
2015         throws an exception if the data isn't safe.
2016
2017 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2018
2019         * CapabilitiesLoader.cs: fix the path, as machine.config is now in a
2020         x.x/ directory below $PREFIX/etc/mono.
2021
2022 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2023
2024         * HttpRequest.cs: fail on unicode full-width '<' and '>' too. Fixes
2025         a security report (http://secunia.com/advisories/14325) that wan't
2026         reported to us before public disclosure.
2027
2028 2005-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2029
2030         * HttpResponse.cs: send the calculated content length even when it's 0.
2031         Fixes bug #72655.
2032
2033 2005-02-04  Lluis Sanchez Gual <lluis@novell.com>
2034
2035         * HttpContext.cs: Added internal property to keep a reference to
2036         the last accessed page. Page uses this to implement PreviousPage.
2037
2038 2005-02-02  Lluis Sanchez Gual <lluis@novell.com>
2039
2040         * ProcessModelInfo.cs: Fixed warning.
2041
2042 2005-02-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2043
2044         * TraceContext.cs: writing a message without any other argument is not
2045         a warniing. Fixes bug #72017.
2046
2047 2005-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2048
2049         * HttpApplication.cs: if there are no more handlers, finish the
2050         request and ensure we call Complete on it. Now FreeTextBox 3.0 works.
2051
2052 2004-12-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2053
2054         * HttpRequest.cs: honor the maxRequestSize limit from machine.config.
2055
2056 2004-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2057
2058         * HttpApplication.cs: reread application CultureInfo as web.config
2059         might have changed. Fixes bug #62539.
2060
2061 2004-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2062
2063         * HttpResponse.cs: fixed ApplyAppPathModifier to insert the session ID.
2064
2065 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2066
2067         * HttpApplicationFactory.cs: monitor changes in global.asax and bin
2068         directory and shutdown the application when that happens. Fixes bug
2069         #49651.
2070
2071 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2072
2073         * ReusableMemoryStream.cs: copied from System.IO.MemoryStream and
2074         slightly modified to allow expanding the buffer for cases on which the
2075         regular MemoryStream don't allow it.
2076
2077         * HttpWriter.cs: use the new ReusableMemoryStream and fix bug #59841.
2078         Otherwise we would have to allocate a new MemoryStream...
2079
2080 2004-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2081
2082         * HttpApplication.cs: Create() is now GetInstance().
2083
2084 2004-11-18 Lluis Sanchez Gual <lluis@novell.com>
2085
2086         * SiteMapNodeCollection.cs: Added missing properties.
2087         * HttpParseException.cs: Added 2.0 methods and properties.
2088         * SiteMapNode.cs: Added missing methods and properties.
2089         * SiteMapProvider.cs, XmlSiteMapProvider.cs, 
2090         SiteMapProviderCollection.cs: IProvider does not exist any
2091         more, it is now ProviderBase.
2092         * ISiteMapProvider.cs: Deleted.
2093         * ParserErrorCollection.cs, ParserError.cs, SiteMapResolveEventArgs.cs:
2094           Implemented.
2095         * SiteMap.cs: Minor fixes.      
2096
2097 2004-11-15 Lluis Sanchez Gual <lluis@novell.com>
2098
2099         * SiteMapProviderCollection.cs: Fixed warning.
2100         * HttpApplication.cs: Added new 2.0 events.
2101
2102 2004-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2103
2104         * HttpResponse.cs: added internl SetHeadersSent.
2105         * HttpRuntime.cs: don't throw the 'headers already sent' exception
2106         if we're sending a runtime error.
2107
2108 2004-11-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2109
2110         * HttpApplication.cs: undo the TimeoutManager.(Add|Remove) shuffling.
2111         It causes troubles under heavy load.
2112
2113 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2114
2115         * SiteMap.cs: don't lock on Type.
2116         * CapabilitiesLoader.cs: avoid 2 locks when loading data.
2117
2118 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2119
2120         * HttpRequest.cs: patch by Dennis Gervalle that fixes PhysicalPath in
2121         presence of rewriting.
2122
2123 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2124
2125         * HttpApplication.cs: don't hang if a sync step is aborted. Fixes the
2126         system.web portion of bug #68270.
2127
2128 2004-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2129
2130         * TraceContext.cs: don't cast to Page is the handler it's
2131         not a page.
2132
2133 2004-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2134
2135         * HttpRequest.cs: CurrentExecutionFilePath is the one that
2136         changes when Transfer or Execute are used, not FilePath.
2137
2138         * HttpServerUtility.cs: moved form saving/restoring from
2139         Transfer to Execute, as it's needed there too. the query string is
2140         correctly set now. Fixes bug #67388.
2141
2142         * HttpContext.cs: use SetCurrentExePath instead of SetFilePath.
2143
2144 2004-10-03 Ben Maurer  <bmaurer@ximian.com>
2145
2146         * HttpResponse.cs: use UtcNow
2147
2148 2004-10-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2149
2150         * HttpResponse.cs: SuppressContent does not throw and clears all the
2151         buffered output. Fixes bug #67213.
2152
2153 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2154
2155         * HttpUtility.cs: UrlPathEncode is static. Fixes bug #67155.
2156
2157 2004-09-29 Ben Maurer  <bmaurer@ximian.com>
2158
2159         * HttpContext.cs, TimeoutManager: Use DateTime.UtcNow.
2160
2161 2004-09-25 Ben Maurer  <bmaurer@ximian.com>
2162
2163         * HttpApplication.cs: Make sure requests are removed from
2164         the timeout manager. Fixes a major leak. #66751.
2165
2166 2004-09-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2167
2168         * HttpApplicationFactory.cs:
2169         * HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
2170         unloading.
2171
2172 2004-09-12 Ben Maurer  <bmaurer@ximian.com>
2173
2174         * HttpContext.cs: use CallContext. It is a little bit faster.
2175
2176 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2177
2178         * HttpStaticObjectsCollection.cs: don't share static session objects
2179         declared in the application file across the application, but on a
2180         per-session basis. Fixes bug #65446.
2181
2182 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2183
2184         * HttpServerUtility.cs: in Transfer(path), don't keep form data if
2185         the transfer is done from inside a page that received a postback.
2186         Fixes bug #65613.
2187
2188 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2189
2190         * HttpValueCollection.cs: fixed signature of ToString (). Closes bug
2191         #65392.
2192
2193 2004-09-06 Ben Maurer  <bmaurer@users.sourceforge.net>
2194
2195         * HttpWriter.cs (.ctor): Dont create teh StreamWriter twice
2196         (Clear): Don't recreate the MemoryStream and StreamWriter
2197
2198 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2199
2200         * HttpApplication.cs: only add/remove to/from the timeout
2201         manager when we're in a interruptible step.
2202
2203 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2204
2205         * TraceContext.cs: when IsEnabled has not been set, return the value
2206         from the TraceManager. Fixes bug #63469.
2207
2208 2004-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2209
2210         * HttpRuntime.cs: initialize the response writer when finishing a
2211         request because it cannot be queued. Under heavy load we made new
2212         requests be processed before the ones that might be queued. This is
2213         no longer the case.
2214
2215         * QueueManager.cs: instead of queueing/dequeuing separately, we now
2216         have a single method that does everything needed to decide which one
2217         will be the next request processed.
2218
2219 2004-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2220
2221         * HttpRuntime.cs: removed initializations to null in .cctor. Prevent
2222         other requests from avoiding the lock if they are received before the
2223         configuration system is inited. Ensure that the queue manager is not
2224         null before using it (it can be null while the first request is being
2225         processed).
2226
2227 2004-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2228
2229         * HttpServerUtility.cs: ensure we have a full virtual path for the
2230         request being executed.
2231
2232 2004-08-02  Duncan Mak  <duncan@ximian.com>
2233
2234         * ApplicationShutdownReason.cs: Fixed typos.
2235
2236         * HttpCookieMode.cs:
2237         * HttpDataTransferMode.cs:
2238         * HttpRequestPriority.cs: Added [Serializable] attribute.
2239         
2240 2004-08-02  Duncan Mak  <duncan@ximian.com>
2241
2242         * ApplicationShutdownReason.cs:
2243         * HttpCookieMode.cs:
2244         * HttpDataTransferMode.cs:
2245         * HttpRequestPriority.cs: Added 2.0 enumerations.
2246         
2247 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2248
2249         * HttpApplication.cs: the file not found might be a dependency.
2250
2251 2004-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2252
2253         * HttpCookie.cs: use invariant when formatting expires date. Fixes bug
2254         #61690.
2255
2256 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2257
2258         * HttpApplication.cs: don't keep the session around if we got it from
2259         the context. Fixes bug #61232.
2260
2261 2004-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2262
2263         * HttpUtility.cs: fixed stupid bug in UrlDecode from bytes. Closes bug
2264         #61181.
2265
2266 2004-07-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2267
2268         * TraceContext.cs: added internal HaveTrace property whose
2269         value is true when the page has a Trace attribute.
2270
2271 2004-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2272
2273         * TraceData.cs: fixed <br> output. Closes bug #60181.
2274
2275 2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2276
2277         * HttpUtility.cs: check for control characters in the string to encode
2278         or decode and return the same string if there are none.
2279
2280 2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2281
2282         * HttpApplication.cs: change/restore the IPrincipal in their own methods
2283         and make them internal.
2284
2285 2004-06-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2286
2287         * HttpContext.cs: reverting Pedro's patch and sending mail with test
2288         to mono-devel.
2289
2290 2004-06-09  Pedro Martnez Juli  <yoros@wanadoo.es>
2291
2292         * HttpContext: User property returns its own "user" value because
2293         the context can walk through different Threads. When "User" property
2294         is changed, change "Thread.CurrentPrincipal" too.
2295
2296 2004-06-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2297
2298         * HttpRequest.cs: removed extra ^Ms and fixed style of last patch.
2299
2300 2004-06-08  Alon Gazit  <along@mainsoft.com>
2301
2302         * HttpRequest.cs: Add a patch for HttpRequest.ServerVariables.
2303
2304 2004-06-07  Sebastien Pouliot  <sebastien@ximian.com>
2305
2306         * HttpContext.cs: User property now get/set Thread.CurrentPrincipal.
2307         Fix (at least partially) #59683.
2308
2309 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2310
2311         * HttpRequest.cs: reverting patch from Alon Gazit. Uses the above file
2312         that doesn't compile.
2313
2314 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2315
2316         * TraceData.cs: fixes nullref in an application that relies on
2317         r ["Message"] not being null. Closes bug #59679.
2318
2319 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2320
2321         * HttpCachePolicy.cs: implemented SetAllowResponseInBrowserHistory.
2322
2323 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2324
2325         * HttpRuntime.cs: implemented a 5 simple properties that were TODOs.
2326
2327 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2328
2329         * HttpBrowserCapabilities.cs: implemented ClrVersion and GetClrVersions.
2330         * HttpException.cs: removed MonoTODO.
2331
2332 2004-06-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2333
2334         * TraceContext.cs: don't check if HttpRuntime.TraceManager
2335         is enabled when writing.
2336
2337 2004-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2338
2339         * HttpRequest.cs: added ClientTarget internal property.
2340
2341 2004-06-03  Lluis Sanchez Gual <lluis@ximian.com>
2342
2343         * HttpApplication.cs: Clear the http handler list after releasing the
2344           handlers.
2345
2346 2004-06-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2347
2348         * TraceData.cs: html-encode the messages written to the trace. Fixes
2349         bug #59431.
2350
2351 2004-06-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2352
2353         * HttpWorkerRequest.cs: the hashtables are now case-insensitive. Thanks
2354         to Markus Krutner.
2355
2356 2004-05-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2357
2358         * HttpRequest.cs: nullify _sRequestRootVirtualDir and baseVirtualDir
2359         when SetFilePath is called. This way the cached values are reset and
2360         get the right value in case someone (namely SessionStateModule + 
2361         cookieless session) changes the FilePath after the property cached its
2362         value. Fixes bug #59364.
2363
2364 2004-05-27      Patrik Torstensson <totte@hiddenpeaks.com>
2365
2366         * HttpApplicationFactory.cs: Added SignalError (still todo)
2367
2368 2004-05-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2369
2370         * HttpResponse.cs: remove hardcoded "HTTP/1.0" version that kept
2371         chunked encoding disabled. Fixed chunked suffix and end. Send the
2372         'lastchunk' marked when in the final Flush even if the content length
2373         is 0. This makes mod-mono-server work fine with chunked encoding.
2374          
2375         * HttpRuntime.cs: Set the _firstRequest* variables to true
2376         earlier. TraceContext don't take any parameter now.
2377
2378         * TraceManager.cs: don't need a context. Use GetAppConfig.
2379
2380 2004-05-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2381
2382         * HttpApplication.cs: set culture/uiculture from configuration and
2383         restore it after each step. Fixes bug #52851.
2384
2385 2004-05-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2386
2387         * HttpUtility.cs: use lower case in UrlEncode like MS does. Delay
2388         entities hashtable creation until it's really needed.
2389
2390 2004-05-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2391
2392         * HttpApplicationFactory.cs: if no module matches the name found for a
2393         possible event, ignore it. Fixes bug #58542.
2394
2395 2004-05-16      Patrik Torstensson <totte@hiddenpeaks.com>
2396
2397         * HttpRuntime (Init): Removed old todo
2398         * HttApplication : Implemented IHttpHandlerFactory recycling
2399         
2400 2004-04-28      Patrik Torstensson
2401
2402         * HttpApplicationState.cs: Performance, usage of ReaderWriter lock,
2403         removed MonoTodo
2404
2405 2004-04-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2406
2407         * HttpUtility.cs: return null in HtmlDecode for null input instead of
2408         throwing an exception. Patch by Jan Jaros (bug #57083).
2409
2410 2004-04-10  Vladimir Vukicevic  <vladimir@pobox.com>
2411
2412         * TimeoutManager.cs: Swap the order of initialization of contexts
2413         and the Timer, to avoid race condition of CheckTimeouts being called
2414         before contexts gets initialized.
2415
2416 2004-03-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2417
2418         * HttpRequestStream.cs: patch from Jan Jaros that fixes bug #56080.
2419         Now the posted file content does not have the boundaries and headers
2420         included.
2421
2422 2004-03-25  Alon Gazit <along@mainsoft.com>
2423
2424         * HttpRequest.cs: fix ValidateCookieCollection() to prevent
2425         InvalidCastException.
2426
2427 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2428
2429         * HttpValueCollection.cs: don't UrlDecode cookies. Fixes bug #55254.
2430
2431 2004-03-01  Larry Ewing  <lewing@ximian.com>
2432
2433         * HttpUtility.cs: fix UrlEncodeToBytes count check.
2434
2435 2004-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2436
2437         * HttpServerUtility.cs:
2438         * HttpUtility.cs: added some checks for null. Fixed UrlPathEncode (bug
2439         #53670).
2440
2441 2004-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2442
2443         * HttpUtility.cs: fixed length check. Closes bug #54201.
2444         Thanks to Michal Moskal. Use MemoryStream instead of an ArrayList when
2445         decoding.
2446
2447 2004-02-11  Jackson Harper <jackson@ximian.com>
2448
2449         * TraceData.cs: Use ToString for cookie/header/var name values so
2450         null is handled properly.
2451         
2452 2004-02-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2453
2454         * HttpApplication.cs: ApplicationState is inited by the factory so,
2455         return that value in the property. when we use the context Session,
2456         cache it in the instance field.
2457
2458         * HttpApplicationFactory.cs: fixed target Type for the event when
2459         hooking application and module events. Initialize application
2460         and session scope objects. Fixes non-aplication events hook up.
2461
2462         * HttpStaticObjectsCollection.cs: added StaticItem and delay the
2463         creation of the objects until they are requested.
2464
2465 2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2466
2467         * HttpApplicationFactory.cs: fixlet for session events hook.
2468
2469 2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2470
2471         * HttpApplicationFactory.cs: attach all events from Type and BaseType
2472         at the same time. Fixes bug #53454.
2473
2474 2004-01-27  Jackson Harper <jackson@ximian.com>
2475
2476         * HttpCachePolicy.cs: varybyparams::GetResponseHeader can return
2477         null now, dont hadd the header if it does.
2478         * HttpCacheVaryByParams.cs: Return null if there are no items.
2479
2480 2004-01-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2481
2482         * HttpCachePolicy.cs: it's not public.
2483         * HttpRuntime.cs: wait for requests before disposing the queue.
2484
2485 2004-01-15  Jackson Harper <jackson@ximian.com>
2486
2487         * HttpCachePolicy.cs: Fix typo causing varyby params headers to be
2488         created when they shouldn't be.
2489         
2490 2004-01-14  Jackson Harper <jackson@ximian.com>
2491
2492         * TraceData.cs: Fix some typos in the output text. Fix control
2493         position when adding controls recursively.
2494         
2495 2004-01-14  Jackson Harper <jackson@ximian.com>
2496
2497         * HttpCachePolicy.cs: Expose duration and sliding properties.
2498         
2499 2004-01-14  Jackson Harper <jackson@ximian.com>
2500
2501         * HttpCachePolicy.cs: Add an event that is fired when the
2502         cacheability is updated. The response uses this to determine
2503         whether or not it needs to cache itself.
2504         * HttpResponse.cs: When the cacheability is updated either create
2505         or dispose of the cached raw response based on whether or not we
2506         wil need it. This allows output caching to be controlled
2507         programatically.
2508         
2509 2004-01-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2510
2511         * HttpContext.cs: add setter for ConfigTimeout.
2512         * HttpException.cs: added Description property and HTML encode some
2513         unescaped values.
2514
2515         * HttpRequest.cs: support request validation.
2516
2517         * HttpRequestValidationException.cs: added message and description.
2518
2519         * HttpServerUtility.cs: implemented ScriptTimeout.
2520
2521 2004-01-11  Jackson Harper <jackson@ximian.com>
2522
2523         * TraceManager.cs: Dont crash if there is no trace config element.
2524         
2525 2004-01-11  Jackson Harper <jackson@ximian.com>
2526
2527         * HttpRequest.cs: Add property for determining if the request is
2528         local or not.
2529         
2530 2004-01-10  Jackson Harper <jackson@ximian.com>
2531
2532         * TraceContext.cs: Handle tracing when it is enabled in the config
2533         file but not on the page.
2534         * TraceManager.cs: Get settings from the configuration object.
2535         * HttpRuntime.cs: Create trace manager in the first request start
2536         so it can get configuration settings.
2537         
2538 2004-01-10  Jackson Harper <jackson@ximian.com>
2539
2540         * TraceContext.cs: Save the request path in the trace data.
2541         * TraceData.cs: Add RequestPath property, make some rendering
2542         methods internal static so the TraceHandler can use them.
2543         * TraceManager.cs: Expose trace data, add a method for clearing
2544         trace data.
2545         
2546 2004-01-10  Jackson Harper <jackson@ximian.com>
2547
2548         * HttpRuntime.cs: Add trace manager
2549         * TraceManager.cs: New class for handling trace configuration and
2550         storing trace data objects.
2551         * TraceContext.cs: Save trace data to the trace manager. Fix typo.
2552         
2553 2004-01-10  Jackson Harper <jackson@ximian.com>
2554
2555         * TraceData.cs: New class for storing trace data. Data is stored
2556         here instead of the trace context so it can be saved and accessed
2557         from the trace handler.
2558         * TraceContext.cs: Save data in the TraceData object, let the
2559         trace data object handle the rendering.
2560         
2561 2004-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2562
2563         * HttpRequest.cs: use ContentEncoding for QueryString. Fixes bug #52577.
2564         Thanks to Jan Jaros (mono-bug@jerryweb.info).
2565
2566         * HttpRequestValidationException.cs: fix comment.
2567
2568 2004-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2569
2570         * HttpException.cs: default to error 500. Fixes bug #52623.
2571
2572 2004-01-04  Jackson Harper <jackson@ximian.com>
2573
2574         * TraceContext.cs: Store and render trace info times. Also render
2575         cookie sizes. Remove debug code.
2576         
2577 2004-01-04  Jackson Harper <jackson@ximian.com>
2578
2579         * HttpResponse.cs: Set the cached response date header so it can
2580         be updated.
2581         * HttpResponseHeader.cs: Let values be set so we can update cached 
2582         response header values.
2583         
2584 2004-01-04  Jackson Harper <jackson@ximian.com>
2585
2586         * HttpResponse.cs: Implement RemoveOutputCacheItem.
2587         
2588 2004-01-04  Jackson Harper <jackson@ximian.com>
2589
2590         * HttpCachePolicy.cs: Add internal method to get the vary by custom string
2591         * HttpCacheVaryByHeaders.cs: Add internal method to get the header names.
2592         
2593 2004-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2594
2595         * HttpRuntime.cs: implemented MachineConfigurationDirectory,
2596
2597 2004-1-1  Alon Gazit <along@mainsoft.com>
2598         * HttpWriter.cs: add check in Write() in order to prevent
2599         NullReferenceException.
2600
2601 2004-1-1  Alon Gazit <along@mainsoft.com>
2602         * HttpResponse.cs: implemented ExpiresAbsolute and Expires.
2603
2604 2003-12-18  Jackson Harper <jackson@ximian.com>
2605
2606         * TraceContext.cs: Write () methods are not warnings.
2607         
2608 2003-12-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2609
2610         * HttpBrowserCapabilities.cs: added GetClrVersions ().
2611         * HttpCachePolicy.cs: added SetAllowResponseInBrowserHistory ().
2612         * HttpContext.cs: added set_Current and RewritePath (s, s, s) for 1.1.
2613         * HttpRequest.cs: added set_ContentType, SetPathInfo and ValidateInput.
2614         * HttpRequestValidationException.cs: new class for 1.1
2615         * HttpResponse.cs: added RedirectLocation.
2616         * HttpRuntime.cs: added UnloadAppDomain.
2617         * HttpServerUtility.cs: Execute (s, t, b) is internal for < 1.2
2618         * HttpUtility.cs: copied UrlPathEncode from HttpServerUtility.
2619         * HttpWorkerRequest.cs: added [ComVisible] and made the ctor public.
2620
2621 2003-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2622
2623         * HttpContext.cs: implemented IsCustomErrorEnabled and
2624         IsDebuggingEnabled. Added internal ErrorPage property.
2625
2626         * HttpRuntime.cs: on error, check if we have a custom error page enabled
2627         to handle it and redirect.
2628
2629         * HttpResponse.cs: added RedirectCustomError (), which actually does
2630         the redirection to the error page.
2631         
2632 2003-12-16  Jackson Harper <jackson@ximian.com>
2633
2634         * TraceContext.cs: Render all the data, and the stylesheet.
2635         
2636 2003-12-16  Jackson Harper <jackson@ximian.com>
2637
2638         * TraceContext.cs: Add incomplete render method.
2639         
2640 2003-12-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2641
2642         * CapabilitiesLoader.cs: loads browser detection and capabilities data
2643         from browscap.ini file by Gary J. Keith.
2644
2645         * HttpBrowserCapabilities.cs: removed almost all TODOs.
2646
2647         * HttpRequest.cs: fixed Browser property.
2648
2649 2003-12-15  Jackson Harper <jackson@ximian.com>
2650
2651         * TraceContext.cs: Initial implementation of storing data.
2652         * HttpContext.cs: Create and expose a trace object.
2653         
2654 2003-12-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2655
2656         * HttpApplication.cs: ThreadAbortException is ok on Redirect.
2657         * HttpContext.cs: added TimeoutPossible property.
2658         * HttpResponse.cs: throw ThreadAbortException if End () is called within
2659         a step in which is possible to timeout.
2660
2661         Fixes bug #51703.
2662
2663 2003-12-04  Jackson Harper <jackson@ximian.com>
2664
2665         * HttpRequest.cs: Cleanup method.
2666         
2667 2003-12-04  Jackson Harper <jackson@ximian.com>
2668
2669         * HttpValueCollection.cs: Allow blank value names. Posting
2670         <blank>=SomeValue is valid. And occurs if a radio button does
2671         not have its name set.
2672         
2673 2003-12-03  Jackson Harper <jackson@ximian.com>
2674
2675         * HttpResponse.cs: Actually apply an app path modifier in
2676         ApplyAppPathModifer and add a method to set the app path modifier.
2677         * HttpRequest.cs: Add utility method for setting a request header.
2678         
2679 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2680
2681         * HttpApplication.cs: handle FileNotFound and DirectoryNotFound
2682         exceptions when creating the handler to generate a better error page.
2683
2684         * HttpException.cs: display the http_code if available.  Changed all
2685         \n by \r\n to make the hidden stack trace readable.
2686         
2687         * StaticFileHandler.cs: don't send the real path in th eerror.
2688
2689 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2690
2691         * HttpContext.cs: updated GetConfig and GetAppConfig to new API.
2692         
2693         * HttpResponse.cs: separate initialization of the HttpWriter, as it
2694         tries to read configuration settings while the config. system is not
2695         available (ie, before the first request).
2696         
2697         * HttpRuntime.cs: delayed queueManager and response writer
2698         initialization until the configuration system is working.
2699
2700 2003-11-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2701
2702         * HttpRuntime.cs: added request queue handling.
2703
2704         * QueueManager.cs: simple request queue.
2705         
2706         * TimeoutManager.cs: added some locks to prevent the enumerator used in
2707         CheckTimeouts to be out of synch.
2708
2709 2003-11-25  Jackson Harper <jackson@ximian.com>
2710
2711         * HttpStaticObjectsCollection.cs: Add methods for serialization
2712         and conversion to/from byte arrays.
2713         
2714 2003-11-21  Jackson Harper <jackson@ximian.com>
2715
2716         * HttpResponse.cs: When caching data set the content length in the
2717         cached repsonse so that only that amount will be written back to
2718         the client. Add method to write a range of binary data.
2719         * HttpCacheVaryByParams.cs: Add method to retrieve param names.
2720         
2721 2003-11-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2722
2723         * HttpApplication.cs:
2724         * HttpContext.cs:
2725         * HttpRuntime.cs: add timeout handling.
2726         * TimeoutManager.cs: new class that takes care of aborting threads on
2727         timeout.
2728
2729 2003-11-19  Jackson Harper <jackson@ximian.com>
2730
2731         * HttpWriter.cs: Use a constant for the buffer size so the cache
2732         can get the buffer size. Add method to get the buffer.
2733         * HttpResponse.cs: Methods for getting data to cache, and setting
2734         vars from the cache.
2735         * HttpCachePolicy.cs: Expose a pages cache expire time.
2736         
2737 2003-11-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2738
2739         * HttpResponse.cs: 
2740         * HttpWriter.cs: some fixes to allow closing a response stream without
2741         messing the rest.
2742
2743 2003-11-13  Jackson Harper  <jackson@ximian.com>
2744
2745         * HttpCachePolicy.cs: Make sure cacheability and maxage get
2746         set. Add method to set Http response header data
2747         * HttpCacheVaryByParams.cs: Add method to create a response header.
2748         * HttpCacheability.cs: Add ServerAndPrivate and ServerAndNoCache.
2749         * HttpResponse.cs: Set cache headers.
2750         
2751 2003-11-11 Ben Maurer  <bmaurer@users.sourceforge.net>
2752
2753         * HttpModuleCollection.cs (GetKey): Recursion, again!
2754
2755 2003-11-11 Ben Maurer  <bmaurer@users.sourceforge.net>
2756
2757         * HttpClientCertificate.cs (ValidUntil): recursion!
2758
2759 2003-11-08 Ben Maurer  <bmaurer@users.sourceforge.net>
2760
2761         * SiteMapNode.cs (GetDataSourceView): Implement.
2762         * SiteMapProvider.cs: Typo fixing.
2763         * XmlSiteMapProvider.cs: We shouldnt resolve here.
2764         
2765 2003-11-08 Ben Maurer  <bmaurer@users.sourceforge.net>
2766
2767         * SiteMap.cs (Init): implement a hack that doesnt need the config
2768         stuff. Should do that later.
2769         * SiteMapNodeCollection (OnValidate): Fix recursion.
2770         * SiteMapProvider.cs: We dont implement some culture stuff work
2771         around it. Fix typo.
2772         * XmlSiteMapProvider.cs: Added.
2773         
2774 2003-11-07 Ben Maurer  <bmaurer@users.sourceforge.net>
2775
2776         * ISiteMapProvider.cs:
2777         * SiteMap.cs:
2778         * SiteMapNode.cs:
2779         * SiteMapNodeCollection.cs:
2780         * SiteMapProvider.cs:
2781         * SiteMapProviderCollection.cs: V2 sitemap related stuff.
2782
2783 2003-11-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2784
2785         * HttpRequest.cs: don't attempt to read more bytes than specified
2786         content length.
2787
2788 2003-11-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2789
2790         * HttpRequest.cs:
2791         * HttpResponse.cs:
2792         * HttpUtility.cs:
2793         * HttpValueCollection.cs: encoding fixes/updates.
2794
2795         * HttpWriter.cs: when updating the encoding, flush the existing stream.
2796         Encoding updates.
2797
2798 2003-11-04 Ben Maurer  <bmaurer@users.sourceforge.net>
2799
2800         * HttpContext.cs (IsCustomErrorEnabled): dont throw exception, just
2801         return false (which makes sense, as the custom errors *arent* enabled;
2802         ie they dont work.
2803         * HttpResponseStream.cs: you actually can write with len = 0
2804
2805 2003-11-03 Jackson Harper <jackson@ximian.com>
2806
2807         * HttpResponse.cs (ContentEncoding): Throw
2808         ArgumentNullException. Patch by Yaron Shkop.
2809         
2810 2003-10-30  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2811
2812         * HttpMultipartContentParser.cs : Quick fix for cygwin build. 
2813           CSC complains that constant char cannot be casted as byte.
2814
2815 2003-10-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2816
2817         * HttpApplication.cs: added AssemblyLocation property.
2818
2819 2003-10-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2820
2821         * HttpApplicationFactory.cs: use NoParamsInvoker.
2822         * HttpRequest.cs: support request filters.
2823         * HttpRequestStream.cs: mono-stylized and added new Set method.
2824
2825         * NoParamsInvoker.cs: proxy class to invoke user-provided methods
2826         without parameters that are invoked by EventHandlers.
2827
2828 2003-10-13  Lluis Sanchez Gual <lluis@ximian.com>
2829
2830         * HttpResponse.cs: Changed harcoded switch to en-US culture to a switch
2831           to invariant culture.
2832
2833 2003-10-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2834
2835         * HttpResponse.cs:
2836         * HttpServerUtility.cs: change the response writer in Execute. Thanks
2837         to Rich Alimi <rich@velvetsea.net> for noticing this.
2838
2839 2003-10-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2840
2841         * HttpApplicationFactory.cs: support for wiring up events without
2842         parameters.
2843
2844 2003-10-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2845
2846         * HttpUtility.cs: small memory usage reduction.
2847
2848 2003-10-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2849
2850         * HttpApplication.cs: pass the Uri, not the file path to
2851         when looking for a handler.
2852
2853 2003-09-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2854
2855         * HttpRequest.cs: small fix needed when reading big POST data.
2856
2857 2003-09-04  Lluis Sanchez Gual <lluis@ximian.com>
2858
2859         * HttpRequest.cs: Url property: use GetLocalAddress() to get the address
2860           (this will get the address from the request headers).
2861
2862 2003-09-04  Lluis Sanchez Gual <lluis@ximian.com>
2863
2864         * HttpServerUtility.cs: In Transfer(), preserve the query string if
2865           told to do so.
2866
2867 2003-08-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2868
2869         * HttpApplication.cs: ensure we do all the EndRequest steps. Don't
2870         filter the output on error.
2871         
2872         * HttpResponse.cs: modified DoFilter to allow bypassing filtering.
2873
2874 2003-08-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2875
2876         * HttpApplication.cs: when the request is completed or an
2877         error happens, execute all the delegates attached to EndRequest, not
2878         only the last one. This makes xsp/test/authtest work again.
2879         
2880         * HttpMethodNotAllowedHandler.cs: fixed description for http
2881         status code.
2882
2883 2003-08-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2884
2885         * HttpRequest.cs: quick way of checking that the path is within the
2886         root for the application. Thanks to Johannes for reporting.
2887         
2888         * HttpRuntime.cs: use the status code from teh exception when it'ss a
2889         HttpException.
2890
2891         * StaticFileHandler.cs: forbidden is 403.
2892
2893 2003-08-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2894
2895         * HttpServerUtility.cs: fixed path and query. Path by Rich Alimi
2896         <rich@velvetsea.net>.
2897
2898 2003-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2899
2900         * HttpException.cs: make the unhandled error more like the MS one.
2901         * HttpRuntime.cs: set a 500 error code on unhandled exceptions.
2902
2903 2003-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2904
2905         * HttpResponse.cs: flush headers when the body length is 0.
2906         * StaticFileHandler.cs: added If-Modified-Since handling patch slightly
2907         modified from the original by Piers Haken <piersh@friskit.com>.
2908
2909 2003-08-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2910
2911         * HttpResponse.cs: another patch from totte and me. This one prevents
2912         writing output if the client have disconnected and filters the data
2913         when there's a non-final Flush in the middle of the process.
2914
2915 2003-08-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2916
2917         * HttpApplication.cs: fixed typos. Closes bug #44197.
2918
2919 2003-08-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2920
2921         * HttpApplication.cs:
2922         * HttpApplicationFactory.cs: fix duplicate application OnStart events.
2923
2924         Patch by Patrik Torstensson.
2925
2926 2003-08-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2927
2928         * HttpApplicationFactory.cs: use the correct Delegate.CreateDelegate
2929         overload. The previous one only admits static methods.
2930
2931 2003-08-01  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2932
2933         * ProcessModelInfo.cs: Fixed signature
2934
2935 2003-07-30  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2936
2937         * WebCategoryAttribute.cs: Implemented localization
2938         * WebSysDescriptionAttribute.cs: Implemented localization
2939
2940 2003-07-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2941
2942         * HttpRuntime.cs: also clear the headers that may have been set upon
2943         error processing the request.
2944
2945 2003-07-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2946
2947         * HttpResponseStreamProxy.cs: reformatted. Fixed infinite recursion in
2948         Write method.
2949
2950         * HttpWriter.cs: flush the filter after writing.
2951
2952 2003-07-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2953
2954         * HttpWriter.cs: avoid duplicating the MemoryStream byte buffer.
2955
2956 2003-07-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2957
2958         * HttpContext.cs: Session doesn't have a setter.
2959
2960         * HttpResponse.cs: Request is private.
2961
2962 2003-07-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2963
2964         * HttpRequest.cs: fixed Headers property. It was getting known headers
2965         values instead of known headers names.
2966
2967 2003-07-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2968
2969         * HttpApplication.cs: prevent nullref if an error happens before context
2970         is set.
2971         * HttpException.cs: small fix in the stack trace sent.
2972         * HttpUtility.cs: the lock is not needed.
2973
2974 2003-06-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2975
2976         * HttpRequest.cs: added REMOTE_PORT.
2977         * HttpValueCollection.cs: fixed bug #45490.
2978
2979 2003-05-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2980
2981         * HttpApplication.cs:
2982         * HttpApplicationFactory.cs: fire application start and session
2983         start/end events.
2984
2985 2003-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2986
2987         * HttpException.cs: encode as HTML the inner exception that
2988         is appended as a comment at the end of error pages.
2989
2990 2003-05-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2991
2992         * HttpWriter.cs: don't do anything in Flush. Fixes #42249.
2993
2994 2003-05-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2995
2996         * HtmlizedException.cs: added more virtual methods.
2997
2998         * HttpException.cs:  some work on the output when there's a source
2999         file present.
3000
3001 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3002
3003         * HtmlizedException.cs: simplified to cope with the new interface.
3004
3005         * HttpApplicationFactory.cs: use the application file parser to get the 
3006         application Type.
3007         
3008         * HttpException.cs: small changes. Needs some more work on
3009         ParseExceptions.
3010         
3011 2003-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3012
3013         * HttpRequest.cs: fixed Url property.
3014
3015 2003-03-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3016
3017         * HtmlizedException.cs:
3018         * HttpException.cs: display the correct line number in error messages.
3019
3020 2003-03-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3021
3022         * HttpCachePolicy.cs: implemented all TODOs.
3023         * HttpRequestStream.cs: make it internal.
3024
3025 2003-03-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3026
3027         * HttpContext.cs: implemented RewritePath in other way.
3028         * HttpRequest.cs: removed SetPhysicalPath and added SetForm.
3029         * HttpServerUtility.cs: implemented Transfer (string, bool).
3030
3031 2003-03-16  Daniel Lopez Ridruejo <daniel @ rawbyte.com>
3032         * HttpContext.cs : Implemented RewritePath
3033         * HttpRequest.cs : Added internal function SetPhysicalPath
3034
3035 2003-03-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3036
3037         * HttpServerUtility.cs: implemented Transfer ().
3038
3039 2003-03-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3040
3041         * HttpRuntime.cs: Cache no longer have a Dispose method.
3042
3043         * HttpServerUtility.cs: removed MonoTODO.
3044
3045 2003-03-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3046
3047         * HttpHelper.cs: store the values in an ArrayList to get them in correct
3048         order.
3049
3050 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3051
3052         * HttpApplicationFactory.cs: Global.asax takes precedence over
3053         global.asax if it exists.
3054
3055         * HttpRequest.cs: use allowCrossAppMapping in MapPath.
3056
3057 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3058
3059         * HttpApplication.cs: CreateHttpHandler is now internal.
3060
3061         * HttpRequest.cs: allow setting QueryStringRaw, which
3062         invalidates the data obtained from the previous value. Added internal
3063         SetFilePath method.
3064
3065         * HttpServerUtility.cs: implemented Execute and GetLastError.
3066
3067 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3068
3069         * HttpServerUtility.cs: style.
3070
3071 2003-02-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3072
3073         * HttpApplication.cs: only execute the EndRequest step on error
3074         condition or request marked as completed. This prevent page events from
3075         being called when, for example, the url authorization module forbids
3076         the request.
3077
3078 2003-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3079
3080         * HttpRequest.cs: implemented the indexer.
3081
3082 2003-02-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3083
3084         * HtmlizedException.cs: base class for exceptions that makes it easy to
3085         generate error pages.
3086
3087         * HttpException.cs: improved error displaying.
3088
3089         * HttpRuntime.cs: removed debugging output.
3090
3091 2003-02-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3092
3093         * HttpApplication.cs: display the error instead of hanging when we get
3094         any error before the last step of the request.
3095
3096 2003-02-04  Tim Haynes <thaynes@openlinksw.com>
3097
3098         * HttpApplicationFactory.cs: fixed HttpRuntime.Close() to decrement
3099         instance counter.
3100
3101 2003-01-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3102
3103         * HttpRequest.cs: added BaseVirtualDir property and use it in MapPath.
3104
3105 2003-01-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3106
3107         * HttpRequest.cs: implemented CurrentExecutionFilePath.
3108
3109 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3110
3111         * HttpApplication.cs: keep _lasterror if no context. Attach
3112         application events *after* modules initialization (if not, User is not
3113         set when the user handler is called).
3114         
3115         * HttpApplicationFactory.cs: made all methods related to
3116         AttachEvents static. I will fix OnStart/OnEnd for application and
3117         session later.
3118         
3119         * HttpRequest.cs: don't initialize cookies twice.
3120
3121 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3122
3123         * HttpResponse.cs:
3124         (ApplyAppPathModifiers): return the root directory for "".
3125
3126 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3127
3128         * HttpUtility.cs: fixed HtmlDecode to avoid ArgumentOutOfRangeException.
3129
3130 2003-01-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3131
3132         * HttpApplication.cs: added new state to handle default authentication.
3133
3134 2003-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3135
3136         * HttpContext.cs: removed hack to get the User.
3137
3138 2003-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3139
3140         * HttpUtility.cs: fixed bug #36038. Thanks to juancri@tagnet.org for
3141         reporting the bug and how to fix it.
3142
3143 2002-12-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3144
3145         * HttpCookie.cs: send 'expires' in the header.
3146
3147 2002-12-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3148
3149         * HttpValueCollection.cs: patch from Botjan Vizin 
3150         <bostjan.vizin@siol.net> that implements ToString (bool).
3151
3152 2002-12-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3153
3154         * HttpApplicationFactory.cs: add the context as parameter when building
3155         the application Type.
3156         
3157         * HttpCookie.cs: new internal constructor.
3158         * HttpCookieCollection.cs: new internal method to make a cookie expire.
3159
3160         * HttpRequest.cs: MapPath fixes.
3161         * HttpResponse.cs: implemented ApplyAppPathModifier.
3162         * HttpRuntime.cs: fixed typo in AppDomainAppVirtualPath.
3163
3164 2002-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3165
3166         * HttpContext.cs: hack to create a default user when there's no one.
3167         Implemented GetConfig (string).
3168
3169         * HttpRequest.cs: fixes to MapPath (string).
3170
3171 2002-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3172
3173         * HttpRuntime.cs: avoid nulls and exception when getting resource
3174         format strings.
3175
3176         * StaticFileHandler.cs: added file name to error message.
3177
3178 2002-12-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3179
3180         * HttpResponse.cs: avoid sending chunked content for HTTP/1.1.
3181
3182 2002-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3183
3184         * HttpApplicationFactory.cs: get the events from the application class,
3185         fire Application/Session Start/End and add the others as application
3186         events.
3187
3188 2002-11-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3189
3190         * HttpApplicationFactory.cs: compile global.asax file if it exists.
3191
3192 2002-11-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3193
3194         * HttpRequest.cs: provide a default Browser until we detect it.
3195         * HttpResponse.cs:
3196         (End): do not close the connection here.
3197         (Flush (bool)): send the headers when, for example, Redirect () is
3198         called.
3199
3200 2002-11-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3201
3202         * HttpException.cs: simple error output.
3203
3204 2002-11-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3205
3206         * HttpApplication.cs: style.
3207         * HttpException.cs: style.
3208         * HttpRuntime.cs: only flush the response if there are no errors.
3209         Otherwise, write an error output.
3210         * HttpWriter.cs: change Unicode to UTF8.
3211
3212 2002-11-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3213
3214         * HttpApplication.cs: don't begin the request using ExecuteNextAsync
3215         (it fails to work on NetServ).
3216
3217         * HttpWorkerRequest.cs: typo.
3218
3219 2002-11-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3220
3221         * HttpValueCollection.cs: the value may contain trailing '=' as it is
3222         UrlEncoded. Don't split name=value based on '='.
3223
3224 2002-11-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3225
3226         * HttpCookie.cs: made GetCookieHeader internal.
3227
3228         * HttpRequest.cs: get cookies from request.
3229
3230         * HttpResponse.cs: send cookies. Implemented
3231         AddFileDependencies (). Added check for _Writer == null in Flush
3232         (Patrik ;-). Clear the content if HEAD or SupressContent == true.
3233         Removed redirect hack used in old server.
3234
3235 2002-10-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3236
3237         * HttpRequest.cs: fixed GetRawContent (). Now it only tries to read at
3238         most ContentLength bytes.
3239
3240         * HttpResponse.cs: now it sends the headers. Added
3241         X-Powered-By header :-).
3242
3243         * HttpRuntime.cs: fixed typo.
3244
3245         * HttpValueCollection.cs: cosmetic changes.
3246
3247 2002-10-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3248
3249         * HttpApplication.cs: reenabled a few lines of code
3250         (ThreadPool already fixed). 
3251         
3252         * HttpRequest.cs:
3253         * HttpResponse.cs:
3254         * HttpUtility.cs:
3255         * HttpValueCollection.cs:
3256         * HttpWriter.cs: Use WebEncoding.Encoding.
3257
3258 2002-10-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3259
3260         * HttpWriter.cs: changed encoding of the writer from Unicode to UTF8.
3261         This fixes sending bytes and allows mixing byte with chars.
3262
3263 2002-10-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3264
3265         * HttpResponse.cs: implemented WriteFile methods.
3266         * MimeTypes.cs: removed duplicated entries.
3267
3268 2002-10-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3269
3270         * HttpResponse.cs: don't throw exception in a couple of
3271         methods not yet implemented.
3272
3273 2002-10-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3274
3275         * HttpApplication.cs: fixed type and handle factories when creating
3276         IHttpHandler for a request.
3277
3278 2002-10-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3279
3280         * HttpApplication.cs: use handlers from configuration.
3281         * HttpContext.cs: get handlers from ConfigurationSettings.
3282
3283 2002-10-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3284
3285         * HttpMethodNotAllowedHandler.cs:
3286         * HttpRuntime.cs:
3287         * StaticFileHandler.cs: Modified file.
3288
3289         * HttpUtility.cs: implemented all missing methods.
3290
3291
3292 2002-09-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3293
3294         * System.Web/HttpApplication.cs: use the static file handler.
3295         * System.Web/HttpForbiddenHandler.cs: handler to forbid access.
3296         * System.Web/HttpMethodNotAllowedHandler.cs: handler for method not
3297         allowed.
3298         
3299         * System.Web/HttpUtility.cs: finished all UrlDecode methods.
3300         * System.Web/MimeTypes.cs: map from file extension to MIME type.
3301         * System.Web/StaticFileHandler.cs: serves static files
3302
3303 2002-09-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3304
3305         * System.Web/HttpApplication.cs:
3306         * System.Web/HttpApplicationFactory.cs:
3307         * System.Web/HttpRequest.cs:
3308         * System.Web/HttpRuntime.cs: we are now able to compile pages and use
3309         HttpApplication, HttpRuntime and SimpleWorkerRequest.
3310
3311 2002-09-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3312
3313         * HttpApplication.cs: added some missing methods.
3314         * HttpApplicationFactory.cs: get event handlers for the application.
3315         * HttpAsyncResult.cs: little fixes.
3316         * HttpRequest.cs: make Encoding work even with no worker request.
3317
3318 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3319
3320         * HttpWorkerRequest.cs: mcs doesn't go crazy. It's just me, that forgot
3321         to add HttpMapPath to the list file...
3322
3323 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3324
3325         * HttpWorkerRequest.cs: fixes compilation with mcs. I will add a bug
3326         report when i get a test case.
3327
3328 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3329
3330         * HttpApplicationFactory.cs:
3331         * HttpCachePolicy.cs:
3332         * HttpResponseHeader.cs:
3333         * HttpResponseStream.cs:
3334         * HttpResponseStreamProxy.cs:
3335         * HttpValueCollection.cs: misc. fixes based on class status page.
3336
3337         * IHttpMapPath.cs: New file.
3338
3339         * HttpRequest.cs: implemented ContentEncoding.
3340         * HttpWorkerRequest.cs: mono-stylized and implemented
3341         SendResponseFromMemory.
3342
3343 2002-08-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3344
3345         * HttpContext.cs: reformatted.
3346         * HttpStaticObjectsCollection.cs: implemented GetEnumertor, CopyTo and
3347         the indexer.
3348
3349 2002-08-05  Patrik Torstensson <ptorsten@hotmail.com>
3350
3351         * HttpApplication.cs: Implemented a state machine to allow handling of
3352         HttpModules and HttpHandlers. Implementation of async handlers. 
3353                                                                  
3354         * HttpApplicationFactory.cs: Factory for creating HttpApplication
3355         instances, including caching.
3356         
3357         * HttpRuntime.cs: Usage of the new HttpApplicationFactory to get a
3358         application instance to execute requests in and implementation of 
3359         request execution (still no request queue). 
3360                                                          
3361         * HttpAsyncResult.cs: New file to handle async module results.                                          
3362                                                          
3363         * HttpRequest.cs: Change signature of Dispose
3364         * HttpResponse.cs: new internal method allowing filtering to happen
3365         during the request flow in the state machine.
3366
3367 2002-07-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3368
3369         * HttpApplication.cs: events were not being initialized.
3370
3371 2002-07-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3372
3373         * ProcessModelInfo.cs: fixed compilation.
3374
3375 2002-07-25  Tim Coleman <tim@timcoleman.com>
3376         * ProcessModelInfo.cs:
3377                 New class added
3378         * HttpParseException.cs:
3379         * HttpCompileException.cs:
3380         * HttpUnhandledException.cs:
3381                 Internal constructors added to these
3382
3383 2002-07-24  Tim Coleman <tim@timcoleman.com>
3384         * ProcessInfo.cs: 
3385                 Fix constructor, reference to shutdownreason.
3386
3387 2002-07-24  Tim Coleman <tim@timcoleman.com>
3388         * HttpCachePolicy.cs:
3389                 Added stubbs to this class.
3390         * HttpCacheability.cs:
3391         * HttpCacheRevalidation.cs:
3392         * HttpValidationStatus.cs:
3393         * ProcessShutdownReason.cs:
3394         * ProcessStatus.cs:
3395         * TraceMode.cs:
3396                 Reorder the enumerations (and in some cases make
3397                 one-based) in order to agree with the .NET 
3398                 implementation, based on the class status page.
3399         * ProcessInfo.cs:
3400                 Implementation of this class.
3401
3402 2002-07-23  Tim Coleman <tim@timcoleman.com>
3403         * HttpCompileException.cs:
3404         * HttpParseException.cs:
3405         * HttpUnhandledException.cs:
3406                 New stubbs created.
3407         * HttpApplication.cs:
3408         * HttpBrowserCapabilities.cs:
3409                 Added missing methods stubbs and attributes based
3410                 on the class status page.  Also reformatted some
3411                 source for consistency.
3412
3413 2002-07-23  Tim Coleman <tim@timcoleman.com>
3414         * HttpUtility.cs: Moved entities hashtable into main
3415                 class as a static object, so we don't instantiate
3416                 a new one every time.  Also put the hashtable
3417                 building into a lock block.
3418
3419 2002-07-22  Tim Coleman <tim@timcoleman.com>
3420         * HttpUtility.cs: Cleanup of the code, implementation
3421                 of HtmlDecode/HtmlEncode functions
3422
3423 2002-07-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3424
3425         * HttpResponse.cs: quick&dirty hack to make redirection work. Should
3426         be out of there once we have SimpleWorkerRequest.
3427
3428 2002-07-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3429
3430         * HttpUtility.cs: little typo, big headache.
3431
3432 2002-07-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3433
3434         * HttpRuntime.cs: don't throw NotImplemented in a couple of methods.
3435
3436 2002-06-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3437
3438         * System.Web/HttpResponse.cs: 
3439
3440         Fixes based on class status page:
3441         
3442                 - Add attributes (DefaultEvent, ParseChildren).
3443                 - Fix declarations.
3444                 - Explicitly implement some interfaces (IPostBackDataHandler
3445                 and IPostBackEventHandler).
3446                 - Implemented some missing methods.
3447
3448 2002-06-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3449
3450         * HttpContext.cs:
3451         (Session): return null instead of throwing an exception.
3452
3453         * HttpRequest.cs:
3454         (HttpMethod): return RequestType if not set.
3455         (GetRawContent): return QueryString if we don't have a
3456         HttpWorkerRequest.
3457
3458         * HttpUtility.cs: fixed Decode and Encode.
3459
3460 2002-06-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3461
3462         * HttpApplication.cs:
3463         * HttpContext.cs: added System.Web.SessionState namespace.
3464
3465         * HttpSessionState.cs: removed. It is under
3466         System.Web.SessionState.
3467
3468 2002-06-10  Duncan Mak  <duncan@ximian.com>
3469
3470         * HttpBrowserCapabilities.cs (BackgroundSounds): Fixed typo.
3471
3472 2002-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3473
3474         * HttpRequest.cs: implemented Browser property.
3475
3476 2002-06-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3477
3478         * HttpBrowserCapabilities.cs: stubbed out.
3479
3480 2002-05-18  Miguel de Icaza  <miguel@ximian.com>
3481
3482         * HttpRuntime.cs: Reformat file.
3483
3484 2002-05-07  Duncan Mak  <duncan@ximian.com>
3485
3486         * HttpBrowserCapabilities.cs: Added, replacing
3487         HttpBrowserCapabilites because of typo.
3488
3489         * HttpBrowserCapabilites.cs: Removed, replaced by above.
3490
3491         * HttpRequest.cs (Browser): Fixed typo.
3492
3493 2002-04-12  Patrik Torstensson <patrik.torstensson@labs2.com>
3494
3495         * HttpApplication.cs: Minor updates
3496         * HttpApplicationState.cs: Ready.
3497         * HttpClientCertificate.cs: Signature updates
3498         * HttpValueCollection.cs: ready
3499         * HttpStaticObjectsCollection.cs: ready
3500         * HttpResponseHeader.cs: made internal only
3501         * HttpResponse.cs: Signature updates
3502         * HttpPostedFile.cs: ready
3503         * HttpCacheVaryByHeaders.cs: ready (except communication to policy)
3504         * HttpCacheVaryByParams.cs: ready (except communication to policy)
3505         
3506         System.Web is now over 60% ready.. 
3507
3508 2002-04-11  Patrik Torstensson <patrik.torstensson@labs2.com>
3509
3510         * HttpException.cs: 95% ready, only windows dependent code left
3511         * HttpFileCollection.cs: Finished.
3512         * HttpRequest.cs: Minor fixes and fixed signature problems
3513         * HttpResponse.cs: Implementation of missing methods and signature problems
3514         * HttpResponseHeader.cs: Fixed signature problems
3515         * HttpRuntime.cs: Fixed signature problems
3516         * HttpServerUtility.cs: Added support for HttpApplication
3517         * HttpSessionState.cs: Fixed signature issues
3518         * HttpUtility.cs: fixed signature issues
3519         * HttpValueCollection.cs: Support for cookie parsing and fixed signature issues
3520         * HttpWorkerRequest.cs: Fixed small signature issue
3521         * HttpWriter.cs: Fixed signature issue
3522         * HttpApplication.cs: Basic implementation
3523         * HttpApplicationState.cs: Small fixes to support major change comming up
3524         * HttpBrowserCapabilities.cs: Added Type method
3525         * HttpClientCertificate.cs: Almost ready, needs to parse certificate.
3526         * HttpContext.cs: Fixed signature issues and added last methods.
3527         * HttpCookie.cs: Full implementation
3528         * HttpCookieCollection.cs: Full implementation
3529         * TraceContext.cs: Methods implemented.
3530         * HttpPostedFile.cs: Placeholder
3531         * HttpStaticObjectsCollection.cs: Placeholder
3532         * HttpModuleCollection.cs: Ready, will be used during the major revamp.
3533         
3534         * Fixed a number of other small signature problems also (class status page)
3535         
3536         
3537 2002-04-10  Patrik Torstensson <patrik.torstensson@labs2.com>
3538
3539     * HttpWorkerRequest.EndOfSendNotification.cs Removed (included in WorkerRequest)
3540     * Checkin of all new files (noted in last changenote)
3541
3542 2002-04-10  Patrik Torstensson <patrik.torstensson@labs2.com>
3543
3544     * HttpContext.cs: First implementation (basic support, few methods left to impl)
3545     * HttpException.cs: Partial implementation (basic support)
3546     * HttpHelper.cs: Header parse helper, used by runtime (non public)
3547     * HttpRequest.cs: Implementation (all methods there, not all fully impl)
3548     * HttpRequestStream.cs: Full implementation
3549     * HttpResponse.cs: Partial implementation(almost all methods)
3550     * HttpResponseHeader.cs: Header helper
3551     * HttpResponseStream.cs: Full implementation - Response stream support
3552     * HttpResponseStreamProxy.cs: Implementation - filter support
3553     * HttpRuntime.cs: Rewrite to support one IHttpModule (use for testing the runtime)
3554         * HttpServerUtility.cs: Implemented usage of HttpContext for methods
3555                                 and moved encoding functions to HttpUtility.
3556
3557     * HttpUtility.cs: Added encoding/decoding functions from HttpServerUtility and
3558                       added the Attribute encoding functions.
3559
3560     * HttpValueCollection.cs: Implementation.
3561     * HttpWorkerRequest.cs: Rewrite and implementation of all methods (ready)
3562     * HttpWriter.cs: Implementation (with filter support)    
3563
3564     * HttpFileCollection: Added dummy class (placeholder)
3565     * HttpApplication.cs: Added dummy class (placeholder)
3566     * HttpApplicationState.cs: Added dummy class (placeholder)
3567     * HttpBrowserCapabilities.cs: Added dummy class (placeholder)
3568     * HtttpCachePolicy.cs: Added dummy class (placeholder)
3569     * HttpClientCertificate.cs: Added dummy class (placeholder)
3570     * HttpSessionState.cs: Added dummy class (placeholder)
3571     * TraceContext.cs: Added dummy class (placeholder)
3572     
3573
3574 2002/04/10  Nick Drochak <ndrochak@gol.com>
3575
3576         * HttpServerUtility.cs: Fix build breaker.
3577
3578 2002-03-28  Wictor Wiln  <wictor@iBizkit.se>
3579
3580         * HttpServerUtils.cs : Added some more functionality
3581         
3582 2002-03-28  Martin Baulig  <martin@gnome.org>
3583
3584         * HttpServerUtils.cs (UrlDecode): You cannot implicitly cast a
3585         char to a string, use ToString() instead.
3586
3587 2002-03-16  Gaurav Vaish  <gavish@iitk.ac.in>
3588
3589         * WebCategoryAttribute.cs
3590                                : Added private attribute.
3591
3592 2002-03-16  Gaurav Vaish  <gavish@iitk.ac.in>
3593
3594         * HttpRuntime.cs       : Stubbed methods for
3595                   FormatStringResource(...) in agreement with the various
3596                   overloads available at String.Format(...)
3597
3598 2002-01-08  Gaurav Vaish  <gavish@iitk.ac.in>
3599
3600         * TODOAttribute.cs     : Added, as an internal class to the assembly
3601
3602 2002-01-03  Nick Drochak  <ndrochak@gol.com>
3603
3604         * HttpRuntime.cs: remove uneeded exception variable from catch and
3605         initialize remaining instance members to avoid compile warnings
3606
3607 2002-01-02  Nick Drochak  <ndrochak@gol.com>
3608
3609         * HttpRuntime.cs: fix spelling error/variable name change.
3610
3611 2001-12-18  Gaurav Vaish <gvaish@iitk.ac.in>
3612
3613         * HttpRuntime.cs       : Initial implementation
3614
3615 2001-08-29  Bob Smith  <bob@thestuff.net>
3616
3617         * HttpWorkerRequest.cs: Partial Implementation.
3618
3619 2001-08-16  Bob Smith  <bob@thestuff.net>
3620
3621          * HttpCookieCollection.cs, HttpCookie.cs: Bug fixes.
3622
3623 2001-08-09  Bob Smith  <bob@thestuff.net>
3624
3625          * BeginEventHandler.cs: Implemented.
3626          * EndEventHandler.cs: Implemented.
3627          * HttpCacheability.cs: Implemented.
3628          * HttpCacheRevalidation.cs: Implemented.
3629          * HttpCacheValidateHandler.cs: Implemented.
3630          * HttpCookieCollection.cs: Implemented.
3631          * HttpCookie.cs: Implemented.
3632          * HttpValidationStatus.cs: Implemented.
3633          * HttpWorkerRequest.EndOfSendNotification.cs: Implemented.
3634          * IHttpAsyncHandler.cs: Implemented.
3635          * IHttpHandler.cs: Implemented.
3636          * IHttpHandlerFactory.cs: Implemented.
3637          * IHttpModule.cs: Implemented.
3638          * ProcessShutdownReason.cs: Implemented.
3639          * ProcessStatus.cs: Implemented.
3640          * TraceMode.cs: Implemented.