svn path=/branches/mono-1-1-9/mcs/; revision=50439
[mono.git] / mcs / class / System.Web / System.Web / ChangeLog
1 2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2
3         * TraceData.cs: we have to change the method of getting a control render
4         size. MS does not do this or otherwise would run into the same bug
5         (#76051) that this patch fixes. This is temporarily setting the size
6         to 0.
7
8 2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9
10         * HttpResponseStream.cs: implemented Send(stream) for files. Fixes bug
11         #76145.
12
13 2005-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14
15         * HttpRuntime.cs: catch errors when compiling global.asax and
16         initializing the application. Fixes bug #76090.
17
18 2005-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19
20         * HttpRequest.cs: use GetServerName instead of GetLocalAddress when
21         building the Url.
22
23 2005-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24
25         * HttpRequest.cs: fix the indexer.
26
27 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28
29         * HttpPostedFile.cs: fixes in Seek and Position.
30
31 2005-09-08  Sebastien Pouliot  <sebastien@ximian.com>
32
33         * HttpRequest.cs: Make sure the MemoryStream created have their 
34         contents marked as public - or else you can't call GetBuffer on them!
35
36 2005-09-08  Miguel de Icaza  <miguel@novell.com>
37
38         * HttpRequest.cs: Patch from Juraj Skripsky <js@hotfeet.ch> that
39         fixes UrlReferrer. 
40
41 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
42
43         * HttpPostedFile.cs: Make this class actually work. Every time we read,
44         we have to position the underlying stream.
45
46 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
47
48         * HttpRequest.cs: reading multipart/form-data works again.
49
50 2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
51         * HttpRequest.cs: Under TARGET_JVM the input stream must allow GetBuffer.
52
53 2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
54         * HttpApplicationFactory.cs: TARGET_J2EE/JVM fix.
55
56 2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
57
58         * HttpRequest.cs: correctly detect multipart/form-data.
59
60 2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
61
62         * HttpApplicationFactory.cs: recycle after invoking session_end.
63
64 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
65
66         * HttpRuntime.cs: remove Console.
67
68         * HttpApplicationFactory.cs: don't hook Session_End, but keep
69         the MethodInfo around for later invocation if needed. Don't call
70         GetMethods() for every HttpApplication (or derived class) instances.
71         Added a method, used by SessionStateModule, that will create use an
72         application without context to invoke Session_End. Keep a pool of
73         applications that are meant to be used by this method only.
74
75         * HttpApplication.cs: add a SetSession method and do not
76         attach all the events if the application is for Session_End only.
77
78 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
79
80         * HttpRuntime.cs: actually unload the domain when requested. Reformatted
81         FinishUnavailable() and removed the 'Location' header form the error.
82
83         * HttpApplicationFactory.cs: set up the watcher for the bin directory.
84         This also prevents a nullref when global.asax is changed.
85
86 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
87
88         * HttpApplication.cs: fixed bug introduced when moving GetHandler call
89         around. Now we get error pages again.
90
91 2005-09-06  Miguel de Icaza  <miguel@novell.com>
92
93         * HttpApplication.cs: Catch EndRequest errors as well.
94
95 2005-09-05  Miguel de Icaza  <miguel@novell.com>
96
97         * HttpApplication.cs: Invoke EndRequest handler before OutputPage
98         as FormsAuthentication will issue a Redirect from the EndRequest 
99         handler. 
100
101 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
102
103         * HttpApplication.cs: when writing an error message, catch the possible
104         write error.
105
106 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
107
108         * HttpResponseStream.cs: prevent invalid cast exception if the first
109         thing written is a file.
110
111 2005-09-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
112
113         * HttpApplication.cs: fix invalid cast exception (bug #75926).
114
115 2005-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
116
117         * HttpApplicationFactory.cs: only trigger the Application_Start event
118         once. It was being invoked more than once when several clients were
119         hitting the server at the same time on startup.
120
121 2005-09-01 Eyal Alaluf <eyala@mainsoft.com>
122
123         * HttpContext.cs HttpResponse.cs HttpWorkerRequest.cs HttpRuntime.cs
124           HttpApplicationFactory.cs HttpApplication.cs: TARGET_J2EE/JVM fixes.
125           Mostly workaround limited AppModel in TARGET_J2EE.
126
127 2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
128
129         * HttpResponse.cs: if the request method is HEAD, that's equivalent to
130         SuppressContent. Added an internal TransmitFile that allows setting the
131         final_flush flag.
132         * StaticFileHandler.cs: use the new internal TransmitFile and remove
133         generation of Content-Length header, as now it's computed correctly.
134         * HttpApplication.cs: remove debugging stuff.
135         * HttpResponseStream.cs: suppress_content is checked in HttpResponse.
136
137 2005-08-31  Miguel de Icaza  <miguel@novell.com>
138
139         Removed debugging info.
140         
141         * HttpApplication.cs: Add support for async handlers. 
142
143         Add extra 2.x methods. 
144
145 2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
146
147         * BrowserCapabilities.cs: removed extra 'using'.
148
149         * HttpApplication.cs: use just the 'modcoll' to hold the collection of
150         modules instead of having a separate 'modules' one.
151
152 2005-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
153
154         * HttpApplication.cs: clone the module collection so that
155         it's not shared between HttpApplications. Call GetHandler() in the
156         right place.
157
158 2005-08-30  Miguel de Icaza  <miguel@novell.com>
159
160         * HttpApplication.cs: Add the new 2.x method overloads that take a
161         data object.
162
163         (RunHooks): Pass the extra data instead of null.
164
165         * HttpCookie.cs (HttpOnly): Add 2.x cookie header.
166
167         * BrowserCapabilities.cs: Move the core of the capabilities into a
168         separate file.  Use partial classes to choose what version to
169         compile against.
170
171         * HttpBrowserCapabilities.cs: Update to move the code elsewhere.
172
173 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
174
175         * HttpResponseStream.cs: Fix a bug introduced by last fix (thanks to
176         Ben)
177
178 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
179
180         * HttpResponseStream.cs: Compilation fixes for TARGET_JVM. TARGET_JVM
181         does not support unsafe code. I localized all unsafe code within Chunk
182         & Block and created a managed version of Chunk.
183
184 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
185         * HttpApplicationFactory.cs: Compilation fixes for TARGET_J2EE. Under
186         TARGET_J2EE static fields are shared by all app domains. We handle
187         this difference by explicitly getting/setting values from the app
188         domain.  Since HttpApplicationFactory has many static fields, I
189         refactored it to have one static instance and moved the static fields
190         into instance fields.
191
192 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
193
194         * HttpRequest.cs: Disable use of IntPtrStream for TARGET_JVM
195
196 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
197
198         * HttpContext.cs: Compilation fixes for TARGET_J2EE/JVM
199
200 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
201
202         * HttpResponse.cs: don't duplicate the 'charset=' and don't send a
203         charset for unknown MIME types.
204         * StaticFileHandler.cs: set the Content-Length header here.
205         * HttpRequest.cs: prevent nullrefs when we have no 'charset='.
206
207 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
208
209         * StaticFileHandler.cs: use TransmitFile instead of WriteFile. This way
210         xsp will use sendfile().
211
212 2005-08-28  Chris Toshok  <toshok@ximian.com>
213
214         * SiteMapNode.cs: fix IHierarchyData.GetParent.
215
216 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
217
218         * HttpRequest.cs:
219         * IntPtrStream.cs: now we only have a read-only MemoryStream or an
220         IntPtrStream. The copy is moved into HttpRequest.
221
222 2005-08-26  Sebastien Pouliot  <sebastien@ximian.com>
223
224         * WebCategoryAttribute.cs: New. Required internal attribute.
225         * WebSysDescriptionAttribute.cs: New. Required internal attribute.
226
227 2005-08-26  Jackson Harper  <jackson@ximian.com>
228
229         * HttpResponseStream.cs: Use GetBuffer so the memory isn't
230         duplicated.
231
232 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
233
234         * HttpApplication.cs: GetHandler might return null when, for example,
235         a web service fails, but that does not mean that returning a null
236         handler should throw another exception, as the web service code
237         serialized the error as a faultString. So if the handler is null, just
238         don't call ProcessRequest and keep going.
239
240 2005-08-26  Jackson Harper  <jackson@ximian.com>
241
242         * HttpResponse.cs: Send the cached headers if this is a cached
243         response. Save the headers, date header, and page data. Fix a typo.
244         * HttpResponseStream.cs: Add new accesor to get a byte [] of the
245         page data.
246
247 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
248
249         * HttpWorkerRequest.cs: SetEndOfSendNotification is a noop. No matter
250         what callback you use that never gets called. In XSP I actually
251         implement something for this method.
252         * HttpServerUtility.cs: unused variable.
253
254 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
255
256         * HttpInputStream.cs: new ctor that takes a byte [].
257         * IntPtrStream.cs: make it work on a byte [] too.
258
259         * HttpRequest.cs:
260         (ContentLength): return 0 for negative numbers or error parsing, but
261         keep content_length negative in those cases.
262         (MakeInputStream): when there's no content-length (or it's negative),
263         we still read the request into a MemoryStream. Use
264         IsEntireEntityIsPreloaded() as a fast path.
265
266 2005-08-25  Sebastien Pouliot  <sebastien@ximian.com>
267
268         * HttpClientCertificate.cs: On 1.x the .ctor throws a 
269         ArgumentNullException (but 2.0 throws a NRE).
270
271 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
272
273         * HttpRequest.cs: HttpMethod deserves its own field. Fix IsLocal.
274
275 2005-08-25  Chris Toshok  <toshok@ximian.com>
276
277         * HttpApplication.cs (IsReusable): return true.
278         (InitOnce): remove the initialization of handler_factory from
279         here.
280         (GetHandler) and move it here, so we make sure to load handlers
281         from all needed web.config files.
282
283 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
284
285         * HttpServerUtility.cs: use GetHandler().
286         * HttpApplication.cs: remove obsolete method. Now Transfe/Execute work.
287
288 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
289
290         * HttpApplication.cs: no need for the local var. here.
291
292 2005-08-25  Chris Toshok  <toshok@ximian.com>
293
294         * HttpApplication.cs (InitOnce): move the initialization of
295         modules above the call to HttpApplicationFactory.AttachEvents,
296         since that method accesses HttpApplication.Modules.  Fixes
297         nGallery.
298         (IsReusable): mark TODO.
299
300 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
301
302         * HttpResponseHeader.cs: removed obsolete class.
303         * HttpResponse.cs: no more 'obsolete' warnings.
304
305 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
306
307         * HttpRuntime.cs: implemeted some missing properties.
308
309 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
310
311         * HttpResponse.cs: implemented RemoveOutputCacheItem().
312
313 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
314
315         * HttpApplication.cs: implemented GetVaryByCustomString().
316
317 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
318
319         * HttpRequest.cs: implemented SetHeader (allows adding a header
320         circumventing the read-only protection of the collection) and SetForm,
321         which just assigns a value of the 'form' collection.
322         * HttpServerUtility.cs: NameValueCollection -> WebROCollection.
323
324 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
325
326         * HttpContext.cs:
327         * HttpRequest.cs: implemented RewritePath and supporting methods.
328
329 2005-08-22  Sebastien Pouliot  <sebastien@ximian.com>
330
331         * HttpRequest.cs: Avoid NRE if work_request if null in the ctor.
332         * HttpResponse.cs: Avoid NRE if work_request if null in the ctor.
333
334 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
335
336         * HttpApplication.cs: if there's any exception thrown when getting the
337         handler, don't add an extra error to the context, as we already have
338         one.
339
340 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
341
342         * HttpWriter.cs:
343         * HttpResponse.cs:
344         * HttpWorkerRequest.cs:
345         * HttpApplication.cs: added mising attributes and enabled methods
346         present in 1.1 SP1.
347
348 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
349
350         * WebROCollection.cs: a collection that allows setting IsReadOnly.
351         * HttpRequest.cs: implemented MapImageCoordinates(). Use WebROCollection
352         instead of a NameValueCollection in Form, Headers, Params, QueryString.
353
354 2005-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
355
356         * HttpInputStream.cs: new copy ctor.
357         * IntPtrStream.cs: getters for base_address and size.
358         * HttpRequest.cs: implemented SaveAs(). Use a wrapper on top of
359         InputStream so that reading POST form or files does not modify the state
360         if InputStream. Don't use uri_builder.Query in QueryStringRaw, as it
361         returns the '?'.
362
363 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
364
365         * HttpRequest.cs: implemented UserLanguages and reuse code from
366         AcceptTypes.
367
368 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
369
370         * HttpRequest.cs: implemented AcceptTypes.
371
372 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
373
374         * HttpRequest.cs: implemented this[] in terms of Params. Don't add the
375         header collection in Params.
376
377 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
378
379         * HttpRequest.cs: fix Files property.
380         * HttpApplication.cs: invoke the default authentication event after all 
381         the other auth. modules.
382
383 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
384
385         * ServerVariablesCollection.cs: mark the collection as read-only except
386         when we fill it. Add the HTTP_blah key/value pairs too.
387
388 2005-08-18  Chris Toshok  <toshok@ximian.com>
389
390         * HttpRequest.cs (get_Params): implement.
391
392 2005-08-17  Chris Toshok  <toshok@ximian.com>
393
394         * HttpResponse.cs: HttpResponse's Cookie's collection acts
395         differently than HttpRequests in that it never returns null from
396         the "this [string]" accessor.
397
398 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
399
400         * HttpRequest.cs: check length 0 case when reading a POST.
401
402 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
403
404         * HttpContext.cs: added security attributes for User and
405         SkipAuthorization properties.
406         * HttpApplicationFactory.cs: AttachEvents is now called form the
407         application .ctor. Recycle instead of dispose.
408         * HttpApplication.cs: attach events to the newly created application.
409
410 2005-08-15  Jackson Harper  <jackson@ximian.com>
411
412         * ApplicationShutdownReason.cs: make build
413
414 2005-08-15  Miguel de Icaza  <miguel@novell.com>
415
416         * HttpApplication.cs: Update comments
417
418         * HttpPostedFile.cs: Use a substream to read from the uploaded
419         multiparts. 
420
421         * HttpRequest.cs: use new code to read the uploaded files.
422
423 2005-08-12  Miguel de Icaza  <miguel@novell.com>
424
425         2.x API fixage and small additions:
426         
427         * HttpResponse.cs: Make constructor internal.
428
429         * HttpRequest.cs (IsLocal): Expose if NET_2.x
430
431         * HttpContext.cs: Remove internal routine.
432
433         * HttpApplication.cs: Add 2.x events. 
434
435         * HttpRequest.cs: Another iFolder issue: I was not setting up the
436         uri_builder here.
437
438         Fixes to get iFolder to work:
439         
440         * HttpApplicationFactory.cs: Set the context when we are initting
441         the application.
442
443         * HttpApplication.cs (SetContext): helper routine. 
444
445         * HttpResponse.cs: Implement the various cache operations:n
446         Expires, ExpiresAbsolute, CacheControl.
447
448         Actually produce the Cache-Control header, the "Cache" property
449         takes precedence over the compatibility settings (Expires,
450         ExpiresAbsolutely and CacheControl). 
451
452         * HttpCachePolicy.cs: Fix style.
453
454         Fix the generation of the headers, use lower-case values, do not
455         add the max-value if the value is zero.  
456
457         Allow for all possible values in SetCacheability. 
458
459         * HttpRuntime.cs (ClrInstallDirectory): Implement.
460
461         * HttpResponseStream.cs: Remove debugging stuff. 
462
463 2005-08-11  Miguel de Icaza  <miguel@novell.com>
464
465         Big chunked handling rewrite, and integration of Ben's unmanaged
466         output stream.
467
468         * HttpWriter.cs: Delegate chunked encoding writing to the
469         HttpResponse. 
470
471         * HttpResponse.cs: Rework the chunked encoding system, centralize
472         it all. 
473
474         * HttpResponseStream.cs: Deploy Ben's bucket-base unmanaged
475         buffers code. 
476
477         Changed the way that we handle chunked encoding, centralize it
478         all;  
479
480         Remove a lot of manual handling of buffering turned off, and
481         instead delegate it all to Flush, fixes several issues with the
482         new framework.
483
484         * HttpWorkerRequest.cs (SendResponseFromMemory (IntPtr, int)):
485         Provide a default implementation since currently XSP does not have
486         this method implemented. 
487
488 2005-08-11  Sebastien Pouliot  <sebastien@ximian.com> 
489  
490         * HttpClientCertificate.cs: Culture insensitive int parsing. Fixed
491         NET_2_0 build.
492
493 2005-08-10  Miguel de Icaza  <miguel@novell.com>
494
495         * ServerVariablesCollection.cs: For Ben.  Implement the header
496         fetching here, do not implement it in HttpRequest.cs.
497
498 2005-08-10  Sebastien Pouliot  <sebastien@ximian.com> 
499  
500         * HttpClientCertificate.cs: Changed IsPresent logic so that new unit
501         tests will work as expected.
502
503 2005-08-10  Sebastien Pouliot  <sebastien@ximian.com>
504
505         * HttpClientCertificate.cs: Implemented, except for validation. Note 
506         that the HttpWorkerRequest derived classes must be updated to supply 
507         the required informations.
508         * HttpRequest.cs: Create an HttpClientCertificate on first call to
509         ClientCertificate.
510
511 2005-08-09  Miguel de Icaza  <miguel@novell.com>
512
513         * HttpRuntime.cs (AspInstallDirectory): Implement.
514
515 2005-08-09  Sebastien Pouliot  <sebastien@ximian.com>
516
517         * HttpClientCertificate.cs: New. Stub. It won't be fun to test.
518
519 2005-08-04  Ben Maurer  <bmaurer@ximian.com>
520
521         * HttpContext.cs: Kill a NIE.
522
523 2005-08-04  Miguel de Icaza  <miguel@novell.com>
524
525         * HttpApplicationFactory.cs: Change "Start" event like the "End"
526         event, and only do this once, when we init the type.
527
528         Fire the "Application_Start" event after we create the type.
529
530 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
531
532         * HttpApplication.cs: catch a ThreadAbort (coming from Response.End)
533         here too.
534
535 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
536
537         * HttpResponse.cs: setting the Status property resets the
538         StatusDescription (see the tests) and the default value for the
539         description is the one provided by GetStatusDescription() in
540         HttpWorkerRequest.
541
542 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
543
544         * HttpRequest.cs: s/boundry/boundary/ and fix typo in array creation.
545
546 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
547
548         * HttpApplication.cs: add call to EndOfRequest when everything is said
549         and done.
550
551 2005-08-02  Miguel de Icaza  <miguel@novell.com>
552
553         * HttpResponse.cs: Stub for TransmitFile.
554
555         * HttpRequest.cs (IsAuthenticated): Implement.
556
557 2005-08-01  Miguel de Icaza  <miguel@novell.com>
558
559         * HttpRequest.cs: Cope with implementations of HttpWorkerRequest
560         (unpatched xsp) that do not send back the PreloadedEntityBody. 
561
562         * HttpApplication.cs: keep track of the factory. 
563         (Dispose): Only dispose once, clean up other variables, release
564         the ManualResetEvent.
565         Release the handler to the factory.
566
567         * HttpApplicationFactory.cs: Implement a stack to reuse the
568         applications. 
569
570         * HttpRequest.cs: On uploads, if the ContentLenght is zero, throw
571         a 411.
572
573         * HttpRuntime.cs: Recycle the application after using it.
574
575         * HttpPostedFile.cs: Implement SaveAs.
576
577         * HttpContext.cs: Return the "Server" property.
578
579 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
580
581         * HttpServerUtility.cs: implemented missing bits.
582
583 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
584
585         * HttpRequest.cs: query string was getting a '?' as the start of the
586         first variable name. This makes the asmx help page work again.
587
588 2005-08-01  Miguel de Icaza  <miguel@novell.com>
589
590         * HttpRequest.cs (Cookies, Forms): Add validation.
591         (Forms): Add application/x-www-form-urlencoded parsing and
592         multipart/form-data parsing.
593         
594         (HttpMultiPart): Implement new class to load multi-part data from
595         a stream since there is no longer a byte [] that holds the data
596         (currently we have an unmanaged IntPtr buffer wrapped as a
597         stream).  Also the 2.x framework will add support for large
598         uploads which are sent directly to disk, which will require the
599         FileStream interface. 
600         
601         (Path, PathInfo): Fill a couple more methods to avoid crashes.
602
603         * HttpContext.cs: Fill another one to get web services summary
604         page painting.  The page does not work though.
605         
606         * HttpApplication.cs: Rework the pipeline to not depend on
607         `finally', as `finally' would not be invoked if we choose not to
608         call the pipeline again (which happens if the `stop' variable is
609         set). 
610
611         Instead force the pipeline to go to the shutdown, and yield from
612         there after all the release-state callbacks have been invoked. 
613
614 2005-07-31  Miguel de Icaza  <miguel@novell.com>
615
616         * HttpApplication.cs: Remove debugging messages since the compiler
617         bug has been fixed.
618
619         You must use at least mcs from revision 47879 for the application
620         pipeline to work. 
621
622 2005-07-30  Miguel de Icaza  <miguel@novell.com>
623
624         * HttpContext.cs: Error handling methods.
625
626         * HttpResponse.cs: Trigger the last event.
627
628         * HttpRuntime.cs: Add queueing of the next request. 
629
630         * HttpApplication.cs: Deploy the new yield-based application
631         pipeline, add error handling to the pipeline.
632         
633         * HttpApplication.cs (AsyncRequestState): Just use the done event
634         from the parent.
635
636 2005-07-29  Miguel de Icaza  <miguel@novell.com>
637
638         * HttpResponseStream.cs, HttpRequest.cs: Fix bugs found by nunit.
639
640         * HttpApplication.cs: Fix a race condition. 
641
642         * HttpResponseStream.cs: Fix bug, send the size of the buffer that
643         we have so far instead of the internal size of the buffer.   This
644         will need work later to ensure we enforce the Content-Length
645         maximum output size if set.
646
647         * ServerVariablesCollection.cs: This class now inherits from
648         NameValueCollection, we should probably review what the middle
649         class did, there are no dependencies on it.
650
651         I need to write tests to investigate if something is missing or
652         has changed in this implementation. 
653
654 2005-07-27  Miguel de Icaza  <miguel@novell.com>
655
656         * HttpRequest.cs: No happy replies here, send a 411.
657
658 2005-07-27  Chris Toshok  <toshok@ximian.com>
659
660         * HttpResponseHeader.cs: remove spew.
661         
662 2005-07-27  Chris Toshok  <toshok@ximian.com>
663
664         * HttpResponseHeader.cs (HttpResponseHandler..ctor): use
665         HttpWorkerRequest.GetKnownResponseHeaderName instead of
666         GetKnownRequestHeaderName.  Fixes Response.Redirect until miguel's
667         new HttpReponse is online.
668
669 2005-07-26  Miguel de Icaza  <miguel@novell.com>
670
671         * HttpResponse.cs: use_chunked is now a byte-array, if not null,
672         we use it to hold the size of the chunked so we do not have to
673         allocate many of these. 
674         (SendSize): Helper routine to send the chunked headers.
675         (BinaryWrite): First user of the chunked writer.
676
677         * HttpApplication.cs: Do not crash if they request a Server
678         instance, but throw a NotImplementedException.
679
680         * HttpRequest.cs: fix a few problems exposed by the regression
681         test suite.
682
683         * HttpRequest.cs (Cookies): use Chris' new constructor to get the
684         cookies parsed.
685
686         : The big Uri rework: instead of using QueryString
687         as the population mechanism, populate an UriBuilder from the
688         various HttpWorkerRequest methods.
689
690         * HttpWorkerRequest.cs (GetProtocol): Implement in terms of
691         IsSecure().
692
693         * HttpResponse.cs: Pointed by Ben, Write (null) is a nop instead
694         of a crash.
695
696         * HttpContext.cs: Add a couple of properties to help the 2.x
697         build.
698         
699         * HttpResponse.cs: Make ContentLength a long, add back support for
700         session's app_path_mod.
701         (ApplyAppPathmodifier): put back.
702         (End): Pass a flag to abort so we can tell the exceptions appart
703         in HttpApplication.
704         (WriteHeaders): Send the HTTP status.
705         (Redirect): Implement.
706         (Write): Use the Output property to load writer when needed.
707         
708         * HttpRequest.cs (ctor): Temporary use of InitFromWR, will fix
709         later. 
710         (MakeInputStream): check content-length size, use routines to load
711         the preloaded data, handle incomplete transfers.
712         (Query): Do not insert null keys into the collection.
713         (Url): implement.
714         (UrlReferer): implement.
715
716         * HttpApplication.cs (RunHooks): Catch Thread.Abort, and call
717         Thread.ResetAbort after each step.
718
719         Ensure that ReleaseState is called if we ever succeed in acquiring
720         the state even if we have stopped the request pipeline.
721
722         Report file not found, directory not found.
723
724 2005-07-25  Miguel de Icaza  <miguel@novell.com>
725
726         * HttpCookieCollection.cs: Add expiration of the cookie. 
727
728         * HttpRequest.cs: Add check for ContentLength, use
729         GetPreloadedEntityBody, correct number of bytes uploaded.
730
731 2005-07-21  Miguel de Icaza  <miguel@novell.com>
732
733         * HttpResponseHeader.cs: Our implementation of HttpResponse only
734         uses the text headers, does not use any constants as XSP would go
735         through a slower code path anyways.
736
737 2005-07-21  Chris Toshok  <toshok@ximian.com>
738
739         * HttpBrowserCapabilities.cs: enable support for the W3CDomVersion
740         and EcmaScriptVersion properties.
741
742 2005-07-21  Chris Toshok  <toshok@ximian.com>
743
744         * HttpResponseHeader.cs: hi, i'm stupid and missed String.Replace.
745         
746 2005-07-21  Chris Toshok  <toshok@ximian.com>
747
748         * HttpResponseHeader.cs: url encode just \r and \n if they're
749         present in the value.
750
751 2005-07-20  Chris Toshok  <toshok@ximian.com>
752
753         * HttpPostedFile.cs: add missing ContentLength property.
754
755 2005-07-20  Chris Toshok  <toshok@ximian.com>
756
757         * HttpCookieCollection.cs: add a new ctor that takes a string (the
758         contents of the Cookies: header).
759
760 2005-07-20  Chris Toshok  <toshok@ximian.com>
761
762         * HttpCookieCollection.cs: add another ctor (internal, but not
763         obsolete, so we aren't passing a stupid HttpResponse in in order
764         to change the behavior of the collection.)
765
766         * HttpCookie.cs: init this.values in the internal ctor.
767
768 2005-07-20  Chris Toshok  <toshok@ximian.com>
769
770         * HttpCookieCollection.cs: use "auto-fill mode" when we're dealing
771         with an HttpResponse's cookie collection.  That is, create the
772         cookie if the consumer looks it up.
773
774 2005-07-20  Miguel de Icaza  <miguel@novell.com>
775
776         * HttpApplication.cs: Ongoing work on pipeline, I will need to
777         redo this later.
778
779 2005-07-19  Miguel de Icaza  <miguel@novell.com>
780
781         * HttpContext.cs (GetService): Implement.  Return all of the
782         properties that we have access to.  Make HttpWorkerRequest the
783         first match as this is the only likely reason people need to use
784         this. 
785
786         * IntPtrStream.cs: Bring from corlib.
787
788         * MultiPartContentParser.cs: use a MemoryStream as HttpInputStream
789         will now be using IntPtrStream. 
790
791         * HttpRequest.cs (MakeInputStream): move code that loads the
792         request here
793         (CloseInputStream): Helper method that we will call later to
794         ensure that we dispose properly the malloced() block. 
795         (BinaryRead): Implemented.
796
797         * HttpInputStream.cs: Rewrite to be a descendant of
798         IntPtrStream.cs 
799
800 2005-07-18  Miguel de Icaza  <miguel@novell.com>
801
802         * HttpApplication.cs (Modules): Add modules support and
803         AsyncResult.
804
805 2005-07-18  Chris Toshok  <toshok@ximian.com>
806
807         * HttpResponseHeader.cs: initial implementation.
808
809 2005-07-18  Chris Toshok  <toshok@ximian.com>
810
811         * HttpModuleCollection.cs (HttpModuleCollection.GetKey): add
812         missing method.
813
814         * HttpFileCollection.cs: initial implementation.
815
816 2005-07-18  Chris Toshok  <toshok@ximian.com>
817
818         * HttpModuleCollection.cs (HttpModuleCollection.CopyTo): implement
819         missing method.
820
821 2005-07-18  Chris Toshok  <toshok@ximian.com>
822
823         * HttpModuleCollection.cs: initial implementation.
824
825 2005-07-18  Chris Toshok  <toshok@ximian.com>
826
827         * HttpCacheVaryByHeaders.cs: only add the header if it's not
828         already in the hash.
829
830         * HttpCacheVaryByParams.cs: only add the param if it's not already
831         in the hash.
832
833 2005-07-18  Chris Toshok  <toshok@ximian.com>
834
835         * HttpCookie.cs (HttpCookie+CookieNVC.Set): new override to fix an
836         MS quirk.
837
838 2005-07-17  Miguel de Icaza  <miguel@novell.com>
839
840         * HttpRequest.cs (Headers, InputStream): implemented two more
841         properties.
842
843         * HttpInputStream.cs: All we need is a MemoryStream with writable
844         set to false.
845
846         * HttpPostedFile.cs: Use a Stream.
847
848 2005-07-16  Chris Toshok  <toshok@ximian.com>
849
850         * HttpCacheVaryByHeaders.cs: make sure we set vary_by_unspecified
851         = false in the custom setter.
852
853 2005-07-16  Chris Toshok  <toshok@ximian.com>
854
855         * HttpCacheVaryByParams.cs: initial implementation.
856
857 2005-07-16  Chris Toshok  <toshok@ximian.com>
858
859         * HttpCacheVaryByHeaders.cs: initial implementation.
860
861 2005-07-15  Chris Toshok  <toshok@ximian.com>
862
863         * HttpCookie.cs: one more time.
864
865 2005-07-15  Chris Toshok  <toshok@ximian.com>
866
867         * HttpCookie.cs (HttpCookie.GetCookieHeader): use
868         expires.ToString().
869         
870 2005-07-15  Chris Toshok  <toshok@ximian.com>
871
872         * HttpCookie.cs (HttpCookie.GetCookieHeader): implement to fix
873         ben's bug.
874
875 2005-07-15  Chris Toshok  <toshok@ximian.com>
876
877         * HttpCookieCollection.cs: initial implementation (with a couple
878         of labeled inefficiencies.)
879
880 2005-07-15  Chris Toshok  <toshok@ximian.com>
881
882         * HttpCookie.cs (HttpCookie.get_HasKeys): use values.HasKeys()
883         instead of trying to be smart about it ourselves.
884
885 2005-07-15  Chris Toshok  <toshok@ximian.com>
886
887         * HttpCookie.cs: initial implementation.  we fail one unit test,
888         but it might be due to a bug in NameValueCollection.
889
890 2005-07-15  Miguel de Icaza  <miguel@novell.com>
891
892         * HttpRequest.cs: 
893
894 2005-07-14  Miguel de Icaza  <miguel@novell.com>
895
896         * HttpRuntime.cs: Return a few of the values from the AppDomain
897         data. 
898
899         Put the application shutdown process.
900
901         * HttpApplicationFactory.cs (AddEvent): Fixed bug when more than
902         one method existed.
903         
904         (FireEvent): Do not ignore errors.
905
906         * HttpContext.cs (GetAppConfig, GetConfig): First success, use
907         ConfigurationSettings.GetConfig to get the value that QueueManager
908         needed.
909
910 2005-07-14  Dick Porter  <dick@ximian.com>
911
912         * HttpPostedFile.cs: New basic implementation; needs someone to
913         figure out what a HttpRequestStream does
914
915 2005-07-13  Miguel de Icaza  <miguel@novell.com>
916
917         * HttpRequest.cs: More work on this file
918
919         * HttpRequest.cs, HttpApplication.cs, HttpContext.cs,
920         HttpRuntime.cs: New from scratch implementation.
921
922 2005-07-01  Lluis Sanchez Gual <lluis@novell.com>
923
924         * SiteMap.cs: Read provider info from the configuration files.
925
926 2005-06-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
927
928         * HttpResponseHeader.cs: URL encode \r and \n in header values. Fixes
929         bug #75392.
930
931 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
932
933         * HttpUtility.cs: fix another stupid buglet in htmldecode.
934
935 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
936
937         * HttpContext.cs:
938         * HttpResponse.cs:
939         * HttpRequest.cs: use StrUtils (invariant culture).
940
941 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
942
943         * HttpRequest.cs: use StartsWith when looking for 'multipart/form-data'.
944         File uploading was broken since a few commits ago.
945
946 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
947
948         * HttpResponse.cs: ensure that the last chunk ('0\r\n\r\n') is sent
949         even if response.Close is called before a final flush. MS/IIS fails to
950         do this.
951
952 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
953
954         * HttpRequest.cs: don't print anything for unknown content types in
955         ParseFormData. Use lowercase compare.
956
957 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
958
959         * HttpResponse.cs: invariant love.
960
961 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
962
963         * HttpResponse.cs: avoid 1 string concat.
964         * HttpRequest.cs: fix BinaryRead. It was totally wrong.
965
966 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
967
968         * HttpUtility.cs: don't append an extra 0 when no digits seen. Fixes
969         bug #75370.
970
971 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
972
973         * HttpUtility.cs: the lower limit for using &#xx; encoding is 160, not
974         128. Reset number back to 0 after use. Fixes bug #75365.
975
976 2005-06-19  Svetlana Zholkovsky <svetlanaz-at-mainsoft.com>
977                 * In following classes added TARGET_J2EE or/and TARGET_JVM
978                   directives:
979                         - HttpResponse.cs
980                         - HttpRuntime.cs
981                         - HttpUtility.cs
982                         - CapabilitiesLoader.cs
983                         - HttpApplication.cs
984                         - HttpApplicationFactory.cs
985                         - HttpContext.cs
986                         - HttpException.cs
987                         - HttpRequest.cs
988                 * Added Mainsoft's specific files :
989                         - GhHttpAsyncResult.jvm.cs
990
991 2005-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
992
993         * HttpRequest.cs: avoid one intermediate buffer when reading the request
994         body and fail for over limit content length when the content type is
995         not handled as form or multipart data.
996
997 2005-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
998
999         * HttpResponse.cs: fix the check in Close() so that CloseConnection is
1000         called even if there has been no final Flush. Fixes bug #75176.
1001
1002 2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1003
1004         * HttpParseException.cs:
1005         * HttpResponse.cs:
1006         * HttpApplication.cs: updates for 1.1 service pack.
1007
1008 2005-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1009
1010         * HttpUtility.cs: fix InvalidCastException.
1011
1012 2005-06-05  Kornél Pál <kornelpal@hotmail.com>
1013
1014         * HttpWriter.cs: Fixed: _OutputFilter.Close () was called twice.
1015
1016 2005-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1017
1018         * HttpUtility.cs: modified HtmlDecode so that it does not need to call
1019         Int32.Parse and handles improper &# sequences. Fixes bug #74907.
1020
1021 2005-05-26  Lluis Sanchez Gual <lluis@novell.com>
1022
1023         * SiteMapNodeCollection.cs: Implemented missing methods. The collection
1024         does not inherit from CollectionBase any more.
1025         * SiteMapNode.cs: Track api changes.
1026         * SiteMapProvider.cs: Moved several methods to the new
1027         StaticSiteMapProvider class. Other fixes.
1028         * XmlSiteMapProvider.cs: Watch changes in the xml files. Other fixes.
1029         * SiteMapProviderCollection.cs: Minor fixes.
1030         * SiteMap.cs: Added missing event. Avoid double check lock.
1031         * StaticSiteMapProvider.cs: New class that implements some of the
1032         funtionality of SiteMapProvider.
1033
1034 2005-05-25  Ben Maurer  <bmaurer@ximian.com>
1035
1036         * MimeTypes.cs: Remove extra spaces, they were typos. Fixes 75049.
1037
1038 2005-05-13 Atsushi Enomoto <atsishi@ximian.com>
1039
1040         * HttpUtility.cs : UrlDecodeToBytes() incorrectly decoded escaped 
1041           characters. Patch by Kazuki Oikawa.
1042
1043 2005-05-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1044
1045         * HttpRuntime.cs: PlatformID.Unix.
1046
1047 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1048
1049         * HttpResponse.cs: cleaned up the .ctors, fix IsClientConnected and just
1050         Clear the _Headers array instead of creating a new ArrayList in
1051         ClearHeaders().
1052
1053 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1054
1055         * HttpResponse.cs: we had 2 variables to track client connection status.
1056         Use only one. Increase the buffer size to 28KB when writing from a file.
1057
1058         * StaticFileHandler.cs: set the Content-Type before writing the file.
1059         This allows flushing before all the content is written.
1060
1061         * HttpApplication.cs: use the variable instead of the property when
1062         setting the Principal for the current process.
1063
1064 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1065
1066         * ReusableMemoryStream.cs:
1067         * HttpWriter.cs: keep a pool of buffers to avoid allocations.
1068
1069 2005-05-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1070
1071         * HttpResponse.cs: no need to save/restore the thread culture when
1072         getting the Date header. According to Ben's profiling, this is a big
1073         deal in performance.
1074
1075         * HttpRuntime.cs: ignore exceptions that might be thrown when unloading 
1076         a domain.
1077
1078 2005-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1079
1080         * HttpApplicationFactory.cs: ignore any exception thrown when invoking
1081         an application event.
1082
1083 2005-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1084
1085         * HttpBrowserCapabilities.cs: fix Win32 property.
1086
1087 2005-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1088
1089         * HttpResponse.cs: only add the charset when explicitly set or for
1090         well-known content types.
1091
1092 2005-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1093
1094         * HttpCachePolicy.cs:
1095         * HttpAsyncResult.cs:
1096         * HttpClientCertificate.cs:
1097         * HttpException.cs:
1098         * HttpRuntime.cs:
1099         * HttpCacheVaryByHeaders.cs:
1100         * HttpBrowserCapabilities.cs:
1101         * HttpUtility.cs:
1102         * HttpCacheVaryByParams.cs: no more warnings.
1103
1104         * QueueManager.cs: check for local connections with minLocalFreeThreads.
1105
1106 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1107
1108         * ServerVariablesCollection.cs: shuffled variables, added missing ones
1109         and call a method in HttpRequest to set the HTTP_ variables.
1110
1111         * HttpRequest.cs: new method to add HTTP_ variables to a collection.
1112
1113 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1114
1115         * HttpRequest.cs: GetAllHeaders was returning the value twice instead
1116         of 'name: value'. When HTTP_ is requested on the output, don't include
1117         unknown headers.
1118
1119 2005-03-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1120
1121         * HttpCookieCollection.cs: when adding more than one cookie with the
1122         same name, the last one is the winner.
1123
1124 2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1125
1126         * HttpRequest.cs: correctly store the value cookies in Params. Fixes
1127         bug #73345.
1128
1129 2005-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1130
1131         * HttpRequest.cs: Path and FilePath also change when RewritePath is
1132         called. Fixes bug #73055.
1133
1134 2005-02-23  Sebastien Pouliot  <sebastien@ximian.com>
1135
1136         * HttpRequest.cs: Make sure that any access after a ValidateInput 
1137         throws an exception if the data isn't safe.
1138
1139 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1140
1141         * CapabilitiesLoader.cs: fix the path, as machine.config is now in a
1142         x.x/ directory below $PREFIX/etc/mono.
1143
1144 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1145
1146         * HttpRequest.cs: fail on unicode full-width '<' and '>' too. Fixes
1147         a security report (http://secunia.com/advisories/14325) that wan't
1148         reported to us before public disclosure.
1149
1150 2005-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1151
1152         * HttpResponse.cs: send the calculated content length even when it's 0.
1153         Fixes bug #72655.
1154
1155 2005-02-04  Lluis Sanchez Gual <lluis@novell.com>
1156
1157         * HttpContext.cs: Added internal property to keep a reference to
1158         the last accessed page. Page uses this to implement PreviousPage.
1159
1160 2005-02-02  Lluis Sanchez Gual <lluis@novell.com>
1161
1162         * ProcessModelInfo.cs: Fixed warning.
1163
1164 2005-02-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1165
1166         * TraceContext.cs: writing a message without any other argument is not
1167         a warniing. Fixes bug #72017.
1168
1169 2005-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1170
1171         * HttpApplication.cs: if there are no more handlers, finish the
1172         request and ensure we call Complete on it. Now FreeTextBox 3.0 works.
1173
1174 2004-12-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1175
1176         * HttpRequest.cs: honor the maxRequestSize limit from machine.config.
1177
1178 2004-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1179
1180         * HttpApplication.cs: reread application CultureInfo as web.config
1181         might have changed. Fixes bug #62539.
1182
1183 2004-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1184
1185         * HttpResponse.cs: fixed ApplyAppPathModifier to insert the session ID.
1186
1187 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1188
1189         * HttpApplicationFactory.cs: monitor changes in global.asax and bin
1190         directory and shutdown the application when that happens. Fixes bug
1191         #49651.
1192
1193 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1194
1195         * ReusableMemoryStream.cs: copied from System.IO.MemoryStream and
1196         slightly modified to allow expanding the buffer for cases on which the
1197         regular MemoryStream don't allow it.
1198
1199         * HttpWriter.cs: use the new ReusableMemoryStream and fix bug #59841.
1200         Otherwise we would have to allocate a new MemoryStream...
1201
1202 2004-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1203
1204         * HttpApplication.cs: Create() is now GetInstance().
1205
1206 2004-11-18 Lluis Sanchez Gual <lluis@novell.com>
1207
1208         * SiteMapNodeCollection.cs: Added missing properties.
1209         * HttpParseException.cs: Added 2.0 methods and properties.
1210         * SiteMapNode.cs: Added missing methods and properties.
1211         * SiteMapProvider.cs, XmlSiteMapProvider.cs, 
1212         SiteMapProviderCollection.cs: IProvider does not exist any
1213         more, it is now ProviderBase.
1214         * ISiteMapProvider.cs: Deleted.
1215         * ParserErrorCollection.cs, ParserError.cs, SiteMapResolveEventArgs.cs:
1216           Implemented.
1217         * SiteMap.cs: Minor fixes.      
1218
1219 2004-11-15 Lluis Sanchez Gual <lluis@novell.com>
1220
1221         * SiteMapProviderCollection.cs: Fixed warning.
1222         * HttpApplication.cs: Added new 2.0 events.
1223
1224 2004-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1225
1226         * HttpResponse.cs: added internl SetHeadersSent.
1227         * HttpRuntime.cs: don't throw the 'headers already sent' exception
1228         if we're sending a runtime error.
1229
1230 2004-11-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1231
1232         * HttpApplication.cs: undo the TimeoutManager.(Add|Remove) shuffling.
1233         It causes troubles under heavy load.
1234
1235 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1236
1237         * SiteMap.cs: don't lock on Type.
1238         * CapabilitiesLoader.cs: avoid 2 locks when loading data.
1239
1240 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1241
1242         * HttpRequest.cs: patch by Dennis Gervalle that fixes PhysicalPath in
1243         presence of rewriting.
1244
1245 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1246
1247         * HttpApplication.cs: don't hang if a sync step is aborted. Fixes the
1248         system.web portion of bug #68270.
1249
1250 2004-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1251
1252         * TraceContext.cs: don't cast to Page is the handler it's
1253         not a page.
1254
1255 2004-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1256
1257         * HttpRequest.cs: CurrentExecutionFilePath is the one that
1258         changes when Transfer or Execute are used, not FilePath.
1259
1260         * HttpServerUtility.cs: moved form saving/restoring from
1261         Transfer to Execute, as it's needed there too. the query string is
1262         correctly set now. Fixes bug #67388.
1263
1264         * HttpContext.cs: use SetCurrentExePath instead of SetFilePath.
1265
1266 2004-10-03 Ben Maurer  <bmaurer@ximian.com>
1267
1268         * HttpResponse.cs: use UtcNow
1269
1270 2004-10-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1271
1272         * HttpResponse.cs: SuppressContent does not throw and clears all the
1273         buffered output. Fixes bug #67213.
1274
1275 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1276
1277         * HttpUtility.cs: UrlPathEncode is static. Fixes bug #67155.
1278
1279 2004-09-29 Ben Maurer  <bmaurer@ximian.com>
1280
1281         * HttpContext.cs, TimeoutManager: Use DateTime.UtcNow.
1282
1283 2004-09-25 Ben Maurer  <bmaurer@ximian.com>
1284
1285         * HttpApplication.cs: Make sure requests are removed from
1286         the timeout manager. Fixes a major leak. #66751.
1287
1288 2004-09-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1289
1290         * HttpApplicationFactory.cs:
1291         * HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
1292         unloading.
1293
1294 2004-09-12 Ben Maurer  <bmaurer@ximian.com>
1295
1296         * HttpContext.cs: use CallContext. It is a little bit faster.
1297
1298 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1299
1300         * HttpStaticObjectsCollection.cs: don't share static session objects
1301         declared in the application file across the application, but on a
1302         per-session basis. Fixes bug #65446.
1303
1304 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1305
1306         * HttpServerUtility.cs: in Transfer(path), don't keep form data if
1307         the transfer is done from inside a page that received a postback.
1308         Fixes bug #65613.
1309
1310 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1311
1312         * HttpValueCollection.cs: fixed signature of ToString (). Closes bug
1313         #65392.
1314
1315 2004-09-06 Ben Maurer  <bmaurer@users.sourceforge.net>
1316
1317         * HttpWriter.cs (.ctor): Dont create teh StreamWriter twice
1318         (Clear): Don't recreate the MemoryStream and StreamWriter
1319
1320 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1321
1322         * HttpApplication.cs: only add/remove to/from the timeout
1323         manager when we're in a interruptible step.
1324
1325 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1326
1327         * TraceContext.cs: when IsEnabled has not been set, return the value
1328         from the TraceManager. Fixes bug #63469.
1329
1330 2004-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1331
1332         * HttpRuntime.cs: initialize the response writer when finishing a
1333         request because it cannot be queued. Under heavy load we made new
1334         requests be processed before the ones that might be queued. This is
1335         no longer the case.
1336
1337         * QueueManager.cs: instead of queueing/dequeuing separately, we now
1338         have a single method that does everything needed to decide which one
1339         will be the next request processed.
1340
1341 2004-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1342
1343         * HttpRuntime.cs: removed initializations to null in .cctor. Prevent
1344         other requests from avoiding the lock if they are received before the
1345         configuration system is inited. Ensure that the queue manager is not
1346         null before using it (it can be null while the first request is being
1347         processed).
1348
1349 2004-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1350
1351         * HttpServerUtility.cs: ensure we have a full virtual path for the
1352         request being executed.
1353
1354 2004-08-02  Duncan Mak  <duncan@ximian.com>
1355
1356         * ApplicationShutdownReason.cs: Fixed typos.
1357
1358         * HttpCookieMode.cs:
1359         * HttpDataTransferMode.cs:
1360         * HttpRequestPriority.cs: Added [Serializable] attribute.
1361         
1362 2004-08-02  Duncan Mak  <duncan@ximian.com>
1363
1364         * ApplicationShutdownReason.cs:
1365         * HttpCookieMode.cs:
1366         * HttpDataTransferMode.cs:
1367         * HttpRequestPriority.cs: Added 2.0 enumerations.
1368         
1369 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1370
1371         * HttpApplication.cs: the file not found might be a dependency.
1372
1373 2004-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1374
1375         * HttpCookie.cs: use invariant when formatting expires date. Fixes bug
1376         #61690.
1377
1378 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1379
1380         * HttpApplication.cs: don't keep the session around if we got it from
1381         the context. Fixes bug #61232.
1382
1383 2004-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1384
1385         * HttpUtility.cs: fixed stupid bug in UrlDecode from bytes. Closes bug
1386         #61181.
1387
1388 2004-07-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1389
1390         * TraceContext.cs: added internal HaveTrace property whose
1391         value is true when the page has a Trace attribute.
1392
1393 2004-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1394
1395         * TraceData.cs: fixed <br> output. Closes bug #60181.
1396
1397 2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1398
1399         * HttpUtility.cs: check for control characters in the string to encode
1400         or decode and return the same string if there are none.
1401
1402 2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1403
1404         * HttpApplication.cs: change/restore the IPrincipal in their own methods
1405         and make them internal.
1406
1407 2004-06-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1408
1409         * HttpContext.cs: reverting Pedro's patch and sending mail with test
1410         to mono-devel.
1411
1412 2004-06-09  Pedro Martnez Juli  <yoros@wanadoo.es>
1413
1414         * HttpContext: User property returns its own "user" value because
1415         the context can walk through different Threads. When "User" property
1416         is changed, change "Thread.CurrentPrincipal" too.
1417
1418 2004-06-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1419
1420         * HttpRequest.cs: removed extra ^Ms and fixed style of last patch.
1421
1422 2004-06-08  Alon Gazit  <along@mainsoft.com>
1423
1424         * HttpRequest.cs: Add a patch for HttpRequest.ServerVariables.
1425
1426 2004-06-07  Sebastien Pouliot  <sebastien@ximian.com>
1427
1428         * HttpContext.cs: User property now get/set Thread.CurrentPrincipal.
1429         Fix (at least partially) #59683.
1430
1431 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1432
1433         * HttpRequest.cs: reverting patch from Alon Gazit. Uses the above file
1434         that doesn't compile.
1435
1436 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1437
1438         * TraceData.cs: fixes nullref in an application that relies on
1439         r ["Message"] not being null. Closes bug #59679.
1440
1441 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1442
1443         * HttpCachePolicy.cs: implemented SetAllowResponseInBrowserHistory.
1444
1445 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1446
1447         * HttpRuntime.cs: implemented a 5 simple properties that were TODOs.
1448
1449 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1450
1451         * HttpBrowserCapabilities.cs: implemented ClrVersion and GetClrVersions.
1452         * HttpException.cs: removed MonoTODO.
1453
1454 2004-06-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1455
1456         * TraceContext.cs: don't check if HttpRuntime.TraceManager
1457         is enabled when writing.
1458
1459 2004-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1460
1461         * HttpRequest.cs: added ClientTarget internal property.
1462
1463 2004-06-03  Lluis Sanchez Gual <lluis@ximian.com>
1464
1465         * HttpApplication.cs: Clear the http handler list after releasing the
1466           handlers.
1467
1468 2004-06-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1469
1470         * TraceData.cs: html-encode the messages written to the trace. Fixes
1471         bug #59431.
1472
1473 2004-06-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1474
1475         * HttpWorkerRequest.cs: the hashtables are now case-insensitive. Thanks
1476         to Markus Krutner.
1477
1478 2004-05-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1479
1480         * HttpRequest.cs: nullify _sRequestRootVirtualDir and baseVirtualDir
1481         when SetFilePath is called. This way the cached values are reset and
1482         get the right value in case someone (namely SessionStateModule + 
1483         cookieless session) changes the FilePath after the property cached its
1484         value. Fixes bug #59364.
1485
1486 2004-05-27      Patrik Torstensson <totte@hiddenpeaks.com>
1487
1488         * HttpApplicationFactory.cs: Added SignalError (still todo)
1489
1490 2004-05-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1491
1492         * HttpResponse.cs: remove hardcoded "HTTP/1.0" version that kept
1493         chunked encoding disabled. Fixed chunked suffix and end. Send the
1494         'lastchunk' marked when in the final Flush even if the content length
1495         is 0. This makes mod-mono-server work fine with chunked encoding.
1496          
1497         * HttpRuntime.cs: Set the _firstRequest* variables to true
1498         earlier. TraceContext don't take any parameter now.
1499
1500         * TraceManager.cs: don't need a context. Use GetAppConfig.
1501
1502 2004-05-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1503
1504         * HttpApplication.cs: set culture/uiculture from configuration and
1505         restore it after each step. Fixes bug #52851.
1506
1507 2004-05-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1508
1509         * HttpUtility.cs: use lower case in UrlEncode like MS does. Delay
1510         entities hashtable creation until it's really needed.
1511
1512 2004-05-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1513
1514         * HttpApplicationFactory.cs: if no module matches the name found for a
1515         possible event, ignore it. Fixes bug #58542.
1516
1517 2004-05-16      Patrik Torstensson <totte@hiddenpeaks.com>
1518
1519         * HttpRuntime (Init): Removed old todo
1520         * HttApplication : Implemented IHttpHandlerFactory recycling
1521         
1522 2004-04-28      Patrik Torstensson
1523
1524         * HttpApplicationState.cs: Performance, usage of ReaderWriter lock,
1525         removed MonoTodo
1526
1527 2004-04-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1528
1529         * HttpUtility.cs: return null in HtmlDecode for null input instead of
1530         throwing an exception. Patch by Jan Jaros (bug #57083).
1531
1532 2004-04-10  Vladimir Vukicevic  <vladimir@pobox.com>
1533
1534         * TimeoutManager.cs: Swap the order of initialization of contexts
1535         and the Timer, to avoid race condition of CheckTimeouts being called
1536         before contexts gets initialized.
1537
1538 2004-03-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1539
1540         * HttpRequestStream.cs: patch from Jan Jaros that fixes bug #56080.
1541         Now the posted file content does not have the boundaries and headers
1542         included.
1543
1544 2004-03-25  Alon Gazit <along@mainsoft.com>
1545
1546         * HttpRequest.cs: fix ValidateCookieCollection() to prevent
1547         InvalidCastException.
1548
1549 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1550
1551         * HttpValueCollection.cs: don't UrlDecode cookies. Fixes bug #55254.
1552
1553 2004-03-01  Larry Ewing  <lewing@ximian.com>
1554
1555         * HttpUtility.cs: fix UrlEncodeToBytes count check.
1556
1557 2004-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1558
1559         * HttpServerUtility.cs:
1560         * HttpUtility.cs: added some checks for null. Fixed UrlPathEncode (bug
1561         #53670).
1562
1563 2004-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1564
1565         * HttpUtility.cs: fixed length check. Closes bug #54201.
1566         Thanks to Michal Moskal. Use MemoryStream instead of an ArrayList when
1567         decoding.
1568
1569 2004-02-11  Jackson Harper <jackson@ximian.com>
1570
1571         * TraceData.cs: Use ToString for cookie/header/var name values so
1572         null is handled properly.
1573         
1574 2004-02-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1575
1576         * HttpApplication.cs: ApplicationState is inited by the factory so,
1577         return that value in the property. when we use the context Session,
1578         cache it in the instance field.
1579
1580         * HttpApplicationFactory.cs: fixed target Type for the event when
1581         hooking application and module events. Initialize application
1582         and session scope objects. Fixes non-aplication events hook up.
1583
1584         * HttpStaticObjectsCollection.cs: added StaticItem and delay the
1585         creation of the objects until they are requested.
1586
1587 2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1588
1589         * HttpApplicationFactory.cs: fixlet for session events hook.
1590
1591 2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1592
1593         * HttpApplicationFactory.cs: attach all events from Type and BaseType
1594         at the same time. Fixes bug #53454.
1595
1596 2004-01-27  Jackson Harper <jackson@ximian.com>
1597
1598         * HttpCachePolicy.cs: varybyparams::GetResponseHeader can return
1599         null now, dont hadd the header if it does.
1600         * HttpCacheVaryByParams.cs: Return null if there are no items.
1601
1602 2004-01-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1603
1604         * HttpCachePolicy.cs: it's not public.
1605         * HttpRuntime.cs: wait for requests before disposing the queue.
1606
1607 2004-01-15  Jackson Harper <jackson@ximian.com>
1608
1609         * HttpCachePolicy.cs: Fix typo causing varyby params headers to be
1610         created when they shouldn't be.
1611         
1612 2004-01-14  Jackson Harper <jackson@ximian.com>
1613
1614         * TraceData.cs: Fix some typos in the output text. Fix control
1615         position when adding controls recursively.
1616         
1617 2004-01-14  Jackson Harper <jackson@ximian.com>
1618
1619         * HttpCachePolicy.cs: Expose duration and sliding properties.
1620         
1621 2004-01-14  Jackson Harper <jackson@ximian.com>
1622
1623         * HttpCachePolicy.cs: Add an event that is fired when the
1624         cacheability is updated. The response uses this to determine
1625         whether or not it needs to cache itself.
1626         * HttpResponse.cs: When the cacheability is updated either create
1627         or dispose of the cached raw response based on whether or not we
1628         wil need it. This allows output caching to be controlled
1629         programatically.
1630         
1631 2004-01-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1632
1633         * HttpContext.cs: add setter for ConfigTimeout.
1634         * HttpException.cs: added Description property and HTML encode some
1635         unescaped values.
1636
1637         * HttpRequest.cs: support request validation.
1638
1639         * HttpRequestValidationException.cs: added message and description.
1640
1641         * HttpServerUtility.cs: implemented ScriptTimeout.
1642
1643 2004-01-11  Jackson Harper <jackson@ximian.com>
1644
1645         * TraceManager.cs: Dont crash if there is no trace config element.
1646         
1647 2004-01-11  Jackson Harper <jackson@ximian.com>
1648
1649         * HttpRequest.cs: Add property for determining if the request is
1650         local or not.
1651         
1652 2004-01-10  Jackson Harper <jackson@ximian.com>
1653
1654         * TraceContext.cs: Handle tracing when it is enabled in the config
1655         file but not on the page.
1656         * TraceManager.cs: Get settings from the configuration object.
1657         * HttpRuntime.cs: Create trace manager in the first request start
1658         so it can get configuration settings.
1659         
1660 2004-01-10  Jackson Harper <jackson@ximian.com>
1661
1662         * TraceContext.cs: Save the request path in the trace data.
1663         * TraceData.cs: Add RequestPath property, make some rendering
1664         methods internal static so the TraceHandler can use them.
1665         * TraceManager.cs: Expose trace data, add a method for clearing
1666         trace data.
1667         
1668 2004-01-10  Jackson Harper <jackson@ximian.com>
1669
1670         * HttpRuntime.cs: Add trace manager
1671         * TraceManager.cs: New class for handling trace configuration and
1672         storing trace data objects.
1673         * TraceContext.cs: Save trace data to the trace manager. Fix typo.
1674         
1675 2004-01-10  Jackson Harper <jackson@ximian.com>
1676
1677         * TraceData.cs: New class for storing trace data. Data is stored
1678         here instead of the trace context so it can be saved and accessed
1679         from the trace handler.
1680         * TraceContext.cs: Save data in the TraceData object, let the
1681         trace data object handle the rendering.
1682         
1683 2004-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1684
1685         * HttpRequest.cs: use ContentEncoding for QueryString. Fixes bug #52577.
1686         Thanks to Jan Jaros (mono-bug@jerryweb.info).
1687
1688         * HttpRequestValidationException.cs: fix comment.
1689
1690 2004-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1691
1692         * HttpException.cs: default to error 500. Fixes bug #52623.
1693
1694 2004-01-04  Jackson Harper <jackson@ximian.com>
1695
1696         * TraceContext.cs: Store and render trace info times. Also render
1697         cookie sizes. Remove debug code.
1698         
1699 2004-01-04  Jackson Harper <jackson@ximian.com>
1700
1701         * HttpResponse.cs: Set the cached response date header so it can
1702         be updated.
1703         * HttpResponseHeader.cs: Let values be set so we can update cached 
1704         response header values.
1705         
1706 2004-01-04  Jackson Harper <jackson@ximian.com>
1707
1708         * HttpResponse.cs: Implement RemoveOutputCacheItem.
1709         
1710 2004-01-04  Jackson Harper <jackson@ximian.com>
1711
1712         * HttpCachePolicy.cs: Add internal method to get the vary by custom string
1713         * HttpCacheVaryByHeaders.cs: Add internal method to get the header names.
1714         
1715 2004-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1716
1717         * HttpRuntime.cs: implemented MachineConfigurationDirectory,
1718
1719 2004-1-1  Alon Gazit <along@mainsoft.com>
1720         * HttpWriter.cs: add check in Write() in order to prevent
1721         NullReferenceException.
1722
1723 2004-1-1  Alon Gazit <along@mainsoft.com>
1724         * HttpResponse.cs: implemented ExpiresAbsolute and Expires.
1725
1726 2003-12-18  Jackson Harper <jackson@ximian.com>
1727
1728         * TraceContext.cs: Write () methods are not warnings.
1729         
1730 2003-12-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1731
1732         * HttpBrowserCapabilities.cs: added GetClrVersions ().
1733         * HttpCachePolicy.cs: added SetAllowResponseInBrowserHistory ().
1734         * HttpContext.cs: added set_Current and RewritePath (s, s, s) for 1.1.
1735         * HttpRequest.cs: added set_ContentType, SetPathInfo and ValidateInput.
1736         * HttpRequestValidationException.cs: new class for 1.1
1737         * HttpResponse.cs: added RedirectLocation.
1738         * HttpRuntime.cs: added UnloadAppDomain.
1739         * HttpServerUtility.cs: Execute (s, t, b) is internal for < 1.2
1740         * HttpUtility.cs: copied UrlPathEncode from HttpServerUtility.
1741         * HttpWorkerRequest.cs: added [ComVisible] and made the ctor public.
1742
1743 2003-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1744
1745         * HttpContext.cs: implemented IsCustomErrorEnabled and
1746         IsDebuggingEnabled. Added internal ErrorPage property.
1747
1748         * HttpRuntime.cs: on error, check if we have a custom error page enabled
1749         to handle it and redirect.
1750
1751         * HttpResponse.cs: added RedirectCustomError (), which actually does
1752         the redirection to the error page.
1753         
1754 2003-12-16  Jackson Harper <jackson@ximian.com>
1755
1756         * TraceContext.cs: Render all the data, and the stylesheet.
1757         
1758 2003-12-16  Jackson Harper <jackson@ximian.com>
1759
1760         * TraceContext.cs: Add incomplete render method.
1761         
1762 2003-12-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1763
1764         * CapabilitiesLoader.cs: loads browser detection and capabilities data
1765         from browscap.ini file by Gary J. Keith.
1766
1767         * HttpBrowserCapabilities.cs: removed almost all TODOs.
1768
1769         * HttpRequest.cs: fixed Browser property.
1770
1771 2003-12-15  Jackson Harper <jackson@ximian.com>
1772
1773         * TraceContext.cs: Initial implementation of storing data.
1774         * HttpContext.cs: Create and expose a trace object.
1775         
1776 2003-12-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1777
1778         * HttpApplication.cs: ThreadAbortException is ok on Redirect.
1779         * HttpContext.cs: added TimeoutPossible property.
1780         * HttpResponse.cs: throw ThreadAbortException if End () is called within
1781         a step in which is possible to timeout.
1782
1783         Fixes bug #51703.
1784
1785 2003-12-04  Jackson Harper <jackson@ximian.com>
1786
1787         * HttpRequest.cs: Cleanup method.
1788         
1789 2003-12-04  Jackson Harper <jackson@ximian.com>
1790
1791         * HttpValueCollection.cs: Allow blank value names. Posting
1792         <blank>=SomeValue is valid. And occurs if a radio button does
1793         not have its name set.
1794         
1795 2003-12-03  Jackson Harper <jackson@ximian.com>
1796
1797         * HttpResponse.cs: Actually apply an app path modifier in
1798         ApplyAppPathModifer and add a method to set the app path modifier.
1799         * HttpRequest.cs: Add utility method for setting a request header.
1800         
1801 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1802
1803         * HttpApplication.cs: handle FileNotFound and DirectoryNotFound
1804         exceptions when creating the handler to generate a better error page.
1805
1806         * HttpException.cs: display the http_code if available.  Changed all
1807         \n by \r\n to make the hidden stack trace readable.
1808         
1809         * StaticFileHandler.cs: don't send the real path in th eerror.
1810
1811 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1812
1813         * HttpContext.cs: updated GetConfig and GetAppConfig to new API.
1814         
1815         * HttpResponse.cs: separate initialization of the HttpWriter, as it
1816         tries to read configuration settings while the config. system is not
1817         available (ie, before the first request).
1818         
1819         * HttpRuntime.cs: delayed queueManager and response writer
1820         initialization until the configuration system is working.
1821
1822 2003-11-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1823
1824         * HttpRuntime.cs: added request queue handling.
1825
1826         * QueueManager.cs: simple request queue.
1827         
1828         * TimeoutManager.cs: added some locks to prevent the enumerator used in
1829         CheckTimeouts to be out of synch.
1830
1831 2003-11-25  Jackson Harper <jackson@ximian.com>
1832
1833         * HttpStaticObjectsCollection.cs: Add methods for serialization
1834         and conversion to/from byte arrays.
1835         
1836 2003-11-21  Jackson Harper <jackson@ximian.com>
1837
1838         * HttpResponse.cs: When caching data set the content length in the
1839         cached repsonse so that only that amount will be written back to
1840         the client. Add method to write a range of binary data.
1841         * HttpCacheVaryByParams.cs: Add method to retrieve param names.
1842         
1843 2003-11-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1844
1845         * HttpApplication.cs:
1846         * HttpContext.cs:
1847         * HttpRuntime.cs: add timeout handling.
1848         * TimeoutManager.cs: new class that takes care of aborting threads on
1849         timeout.
1850
1851 2003-11-19  Jackson Harper <jackson@ximian.com>
1852
1853         * HttpWriter.cs: Use a constant for the buffer size so the cache
1854         can get the buffer size. Add method to get the buffer.
1855         * HttpResponse.cs: Methods for getting data to cache, and setting
1856         vars from the cache.
1857         * HttpCachePolicy.cs: Expose a pages cache expire time.
1858         
1859 2003-11-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1860
1861         * HttpResponse.cs: 
1862         * HttpWriter.cs: some fixes to allow closing a response stream without
1863         messing the rest.
1864
1865 2003-11-13  Jackson Harper  <jackson@ximian.com>
1866
1867         * HttpCachePolicy.cs: Make sure cacheability and maxage get
1868         set. Add method to set Http response header data
1869         * HttpCacheVaryByParams.cs: Add method to create a response header.
1870         * HttpCacheability.cs: Add ServerAndPrivate and ServerAndNoCache.
1871         * HttpResponse.cs: Set cache headers.
1872         
1873 2003-11-11 Ben Maurer  <bmaurer@users.sourceforge.net>
1874
1875         * HttpModuleCollection.cs (GetKey): Recursion, again!
1876
1877 2003-11-11 Ben Maurer  <bmaurer@users.sourceforge.net>
1878
1879         * HttpClientCertificate.cs (ValidUntil): recursion!
1880
1881 2003-11-08 Ben Maurer  <bmaurer@users.sourceforge.net>
1882
1883         * SiteMapNode.cs (GetDataSourceView): Implement.
1884         * SiteMapProvider.cs: Typo fixing.
1885         * XmlSiteMapProvider.cs: We shouldnt resolve here.
1886         
1887 2003-11-08 Ben Maurer  <bmaurer@users.sourceforge.net>
1888
1889         * SiteMap.cs (Init): implement a hack that doesnt need the config
1890         stuff. Should do that later.
1891         * SiteMapNodeCollection (OnValidate): Fix recursion.
1892         * SiteMapProvider.cs: We dont implement some culture stuff work
1893         around it. Fix typo.
1894         * XmlSiteMapProvider.cs: Added.
1895         
1896 2003-11-07 Ben Maurer  <bmaurer@users.sourceforge.net>
1897
1898         * ISiteMapProvider.cs:
1899         * SiteMap.cs:
1900         * SiteMapNode.cs:
1901         * SiteMapNodeCollection.cs:
1902         * SiteMapProvider.cs:
1903         * SiteMapProviderCollection.cs: V2 sitemap related stuff.
1904
1905 2003-11-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1906
1907         * HttpRequest.cs: don't attempt to read more bytes than specified
1908         content length.
1909
1910 2003-11-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1911
1912         * HttpRequest.cs:
1913         * HttpResponse.cs:
1914         * HttpUtility.cs:
1915         * HttpValueCollection.cs: encoding fixes/updates.
1916
1917         * HttpWriter.cs: when updating the encoding, flush the existing stream.
1918         Encoding updates.
1919
1920 2003-11-04 Ben Maurer  <bmaurer@users.sourceforge.net>
1921
1922         * HttpContext.cs (IsCustomErrorEnabled): dont throw exception, just
1923         return false (which makes sense, as the custom errors *arent* enabled;
1924         ie they dont work.
1925         * HttpResponseStream.cs: you actually can write with len = 0
1926
1927 2003-11-03 Jackson Harper <jackson@ximian.com>
1928
1929         * HttpResponse.cs (ContentEncoding): Throw
1930         ArgumentNullException. Patch by Yaron Shkop.
1931         
1932 2003-10-30  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1933
1934         * HttpMultipartContentParser.cs : Quick fix for cygwin build. 
1935           CSC complains that constant char cannot be casted as byte.
1936
1937 2003-10-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1938
1939         * HttpApplication.cs: added AssemblyLocation property.
1940
1941 2003-10-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1942
1943         * HttpApplicationFactory.cs: use NoParamsInvoker.
1944         * HttpRequest.cs: support request filters.
1945         * HttpRequestStream.cs: mono-stylized and added new Set method.
1946
1947         * NoParamsInvoker.cs: proxy class to invoke user-provided methods
1948         without parameters that are invoked by EventHandlers.
1949
1950 2003-10-13  Lluis Sanchez Gual <lluis@ximian.com>
1951
1952         * HttpResponse.cs: Changed harcoded switch to en-US culture to a switch
1953           to invariant culture.
1954
1955 2003-10-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1956
1957         * HttpResponse.cs:
1958         * HttpServerUtility.cs: change the response writer in Execute. Thanks
1959         to Rich Alimi <rich@velvetsea.net> for noticing this.
1960
1961 2003-10-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1962
1963         * HttpApplicationFactory.cs: support for wiring up events without
1964         parameters.
1965
1966 2003-10-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1967
1968         * HttpUtility.cs: small memory usage reduction.
1969
1970 2003-10-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1971
1972         * HttpApplication.cs: pass the Uri, not the file path to
1973         when looking for a handler.
1974
1975 2003-09-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1976
1977         * HttpRequest.cs: small fix needed when reading big POST data.
1978
1979 2003-09-04  Lluis Sanchez Gual <lluis@ximian.com>
1980
1981         * HttpRequest.cs: Url property: use GetLocalAddress() to get the address
1982           (this will get the address from the request headers).
1983
1984 2003-09-04  Lluis Sanchez Gual <lluis@ximian.com>
1985
1986         * HttpServerUtility.cs: In Transfer(), preserve the query string if
1987           told to do so.
1988
1989 2003-08-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1990
1991         * HttpApplication.cs: ensure we do all the EndRequest steps. Don't
1992         filter the output on error.
1993         
1994         * HttpResponse.cs: modified DoFilter to allow bypassing filtering.
1995
1996 2003-08-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1997
1998         * HttpApplication.cs: when the request is completed or an
1999         error happens, execute all the delegates attached to EndRequest, not
2000         only the last one. This makes xsp/test/authtest work again.
2001         
2002         * HttpMethodNotAllowedHandler.cs: fixed description for http
2003         status code.
2004
2005 2003-08-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2006
2007         * HttpRequest.cs: quick way of checking that the path is within the
2008         root for the application. Thanks to Johannes for reporting.
2009         
2010         * HttpRuntime.cs: use the status code from teh exception when it'ss a
2011         HttpException.
2012
2013         * StaticFileHandler.cs: forbidden is 403.
2014
2015 2003-08-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2016
2017         * HttpServerUtility.cs: fixed path and query. Path by Rich Alimi
2018         <rich@velvetsea.net>.
2019
2020 2003-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2021
2022         * HttpException.cs: make the unhandled error more like the MS one.
2023         * HttpRuntime.cs: set a 500 error code on unhandled exceptions.
2024
2025 2003-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2026
2027         * HttpResponse.cs: flush headers when the body length is 0.
2028         * StaticFileHandler.cs: added If-Modified-Since handling patch slightly
2029         modified from the original by Piers Haken <piersh@friskit.com>.
2030
2031 2003-08-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2032
2033         * HttpResponse.cs: another patch from totte and me. This one prevents
2034         writing output if the client have disconnected and filters the data
2035         when there's a non-final Flush in the middle of the process.
2036
2037 2003-08-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2038
2039         * HttpApplication.cs: fixed typos. Closes bug #44197.
2040
2041 2003-08-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2042
2043         * HttpApplication.cs:
2044         * HttpApplicationFactory.cs: fix duplicate application OnStart events.
2045
2046         Patch by Patrik Torstensson.
2047
2048 2003-08-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2049
2050         * HttpApplicationFactory.cs: use the correct Delegate.CreateDelegate
2051         overload. The previous one only admits static methods.
2052
2053 2003-08-01  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2054
2055         * ProcessModelInfo.cs: Fixed signature
2056
2057 2003-07-30  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2058
2059         * WebCategoryAttribute.cs: Implemented localization
2060         * WebSysDescriptionAttribute.cs: Implemented localization
2061
2062 2003-07-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2063
2064         * HttpRuntime.cs: also clear the headers that may have been set upon
2065         error processing the request.
2066
2067 2003-07-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2068
2069         * HttpResponseStreamProxy.cs: reformatted. Fixed infinite recursion in
2070         Write method.
2071
2072         * HttpWriter.cs: flush the filter after writing.
2073
2074 2003-07-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2075
2076         * HttpWriter.cs: avoid duplicating the MemoryStream byte buffer.
2077
2078 2003-07-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2079
2080         * HttpContext.cs: Session doesn't have a setter.
2081
2082         * HttpResponse.cs: Request is private.
2083
2084 2003-07-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2085
2086         * HttpRequest.cs: fixed Headers property. It was getting known headers
2087         values instead of known headers names.
2088
2089 2003-07-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2090
2091         * HttpApplication.cs: prevent nullref if an error happens before context
2092         is set.
2093         * HttpException.cs: small fix in the stack trace sent.
2094         * HttpUtility.cs: the lock is not needed.
2095
2096 2003-06-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2097
2098         * HttpRequest.cs: added REMOTE_PORT.
2099         * HttpValueCollection.cs: fixed bug #45490.
2100
2101 2003-05-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2102
2103         * HttpApplication.cs:
2104         * HttpApplicationFactory.cs: fire application start and session
2105         start/end events.
2106
2107 2003-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2108
2109         * HttpException.cs: encode as HTML the inner exception that
2110         is appended as a comment at the end of error pages.
2111
2112 2003-05-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2113
2114         * HttpWriter.cs: don't do anything in Flush. Fixes #42249.
2115
2116 2003-05-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2117
2118         * HtmlizedException.cs: added more virtual methods.
2119
2120         * HttpException.cs:  some work on the output when there's a source
2121         file present.
2122
2123 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2124
2125         * HtmlizedException.cs: simplified to cope with the new interface.
2126
2127         * HttpApplicationFactory.cs: use the application file parser to get the 
2128         application Type.
2129         
2130         * HttpException.cs: small changes. Needs some more work on
2131         ParseExceptions.
2132         
2133 2003-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2134
2135         * HttpRequest.cs: fixed Url property.
2136
2137 2003-03-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2138
2139         * HtmlizedException.cs:
2140         * HttpException.cs: display the correct line number in error messages.
2141
2142 2003-03-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2143
2144         * HttpCachePolicy.cs: implemented all TODOs.
2145         * HttpRequestStream.cs: make it internal.
2146
2147 2003-03-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2148
2149         * HttpContext.cs: implemented RewritePath in other way.
2150         * HttpRequest.cs: removed SetPhysicalPath and added SetForm.
2151         * HttpServerUtility.cs: implemented Transfer (string, bool).
2152
2153 2003-03-16  Daniel Lopez Ridruejo <daniel @ rawbyte.com>
2154         * HttpContext.cs : Implemented RewritePath
2155         * HttpRequest.cs : Added internal function SetPhysicalPath
2156
2157 2003-03-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2158
2159         * HttpServerUtility.cs: implemented Transfer ().
2160
2161 2003-03-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2162
2163         * HttpRuntime.cs: Cache no longer have a Dispose method.
2164
2165         * HttpServerUtility.cs: removed MonoTODO.
2166
2167 2003-03-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2168
2169         * HttpHelper.cs: store the values in an ArrayList to get them in correct
2170         order.
2171
2172 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2173
2174         * HttpApplicationFactory.cs: Global.asax takes precedence over
2175         global.asax if it exists.
2176
2177         * HttpRequest.cs: use allowCrossAppMapping in MapPath.
2178
2179 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2180
2181         * HttpApplication.cs: CreateHttpHandler is now internal.
2182
2183         * HttpRequest.cs: allow setting QueryStringRaw, which
2184         invalidates the data obtained from the previous value. Added internal
2185         SetFilePath method.
2186
2187         * HttpServerUtility.cs: implemented Execute and GetLastError.
2188
2189 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2190
2191         * HttpServerUtility.cs: style.
2192
2193 2003-02-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2194
2195         * HttpApplication.cs: only execute the EndRequest step on error
2196         condition or request marked as completed. This prevent page events from
2197         being called when, for example, the url authorization module forbids
2198         the request.
2199
2200 2003-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2201
2202         * HttpRequest.cs: implemented the indexer.
2203
2204 2003-02-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2205
2206         * HtmlizedException.cs: base class for exceptions that makes it easy to
2207         generate error pages.
2208
2209         * HttpException.cs: improved error displaying.
2210
2211         * HttpRuntime.cs: removed debugging output.
2212
2213 2003-02-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2214
2215         * HttpApplication.cs: display the error instead of hanging when we get
2216         any error before the last step of the request.
2217
2218 2003-02-04  Tim Haynes <thaynes@openlinksw.com>
2219
2220         * HttpApplicationFactory.cs: fixed HttpRuntime.Close() to decrement
2221         instance counter.
2222
2223 2003-01-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2224
2225         * HttpRequest.cs: added BaseVirtualDir property and use it in MapPath.
2226
2227 2003-01-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2228
2229         * HttpRequest.cs: implemented CurrentExecutionFilePath.
2230
2231 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2232
2233         * HttpApplication.cs: keep _lasterror if no context. Attach
2234         application events *after* modules initialization (if not, User is not
2235         set when the user handler is called).
2236         
2237         * HttpApplicationFactory.cs: made all methods related to
2238         AttachEvents static. I will fix OnStart/OnEnd for application and
2239         session later.
2240         
2241         * HttpRequest.cs: don't initialize cookies twice.
2242
2243 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2244
2245         * HttpResponse.cs:
2246         (ApplyAppPathModifiers): return the root directory for "".
2247
2248 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2249
2250         * HttpUtility.cs: fixed HtmlDecode to avoid ArgumentOutOfRangeException.
2251
2252 2003-01-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2253
2254         * HttpApplication.cs: added new state to handle default authentication.
2255
2256 2003-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2257
2258         * HttpContext.cs: removed hack to get the User.
2259
2260 2003-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2261
2262         * HttpUtility.cs: fixed bug #36038. Thanks to juancri@tagnet.org for
2263         reporting the bug and how to fix it.
2264
2265 2002-12-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2266
2267         * HttpCookie.cs: send 'expires' in the header.
2268
2269 2002-12-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2270
2271         * HttpValueCollection.cs: patch from Botjan Vizin 
2272         <bostjan.vizin@siol.net> that implements ToString (bool).
2273
2274 2002-12-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2275
2276         * HttpApplicationFactory.cs: add the context as parameter when building
2277         the application Type.
2278         
2279         * HttpCookie.cs: new internal constructor.
2280         * HttpCookieCollection.cs: new internal method to make a cookie expire.
2281
2282         * HttpRequest.cs: MapPath fixes.
2283         * HttpResponse.cs: implemented ApplyAppPathModifier.
2284         * HttpRuntime.cs: fixed typo in AppDomainAppVirtualPath.
2285
2286 2002-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2287
2288         * HttpContext.cs: hack to create a default user when there's no one.
2289         Implemented GetConfig (string).
2290
2291         * HttpRequest.cs: fixes to MapPath (string).
2292
2293 2002-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2294
2295         * HttpRuntime.cs: avoid nulls and exception when getting resource
2296         format strings.
2297
2298         * StaticFileHandler.cs: added file name to error message.
2299
2300 2002-12-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2301
2302         * HttpResponse.cs: avoid sending chunked content for HTTP/1.1.
2303
2304 2002-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2305
2306         * HttpApplicationFactory.cs: get the events from the application class,
2307         fire Application/Session Start/End and add the others as application
2308         events.
2309
2310 2002-11-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2311
2312         * HttpApplicationFactory.cs: compile global.asax file if it exists.
2313
2314 2002-11-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2315
2316         * HttpRequest.cs: provide a default Browser until we detect it.
2317         * HttpResponse.cs:
2318         (End): do not close the connection here.
2319         (Flush (bool)): send the headers when, for example, Redirect () is
2320         called.
2321
2322 2002-11-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2323
2324         * HttpException.cs: simple error output.
2325
2326 2002-11-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2327
2328         * HttpApplication.cs: style.
2329         * HttpException.cs: style.
2330         * HttpRuntime.cs: only flush the response if there are no errors.
2331         Otherwise, write an error output.
2332         * HttpWriter.cs: change Unicode to UTF8.
2333
2334 2002-11-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2335
2336         * HttpApplication.cs: don't begin the request using ExecuteNextAsync
2337         (it fails to work on NetServ).
2338
2339         * HttpWorkerRequest.cs: typo.
2340
2341 2002-11-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2342
2343         * HttpValueCollection.cs: the value may contain trailing '=' as it is
2344         UrlEncoded. Don't split name=value based on '='.
2345
2346 2002-11-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2347
2348         * HttpCookie.cs: made GetCookieHeader internal.
2349
2350         * HttpRequest.cs: get cookies from request.
2351
2352         * HttpResponse.cs: send cookies. Implemented
2353         AddFileDependencies (). Added check for _Writer == null in Flush
2354         (Patrik ;-). Clear the content if HEAD or SupressContent == true.
2355         Removed redirect hack used in old server.
2356
2357 2002-10-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2358
2359         * HttpRequest.cs: fixed GetRawContent (). Now it only tries to read at
2360         most ContentLength bytes.
2361
2362         * HttpResponse.cs: now it sends the headers. Added
2363         X-Powered-By header :-).
2364
2365         * HttpRuntime.cs: fixed typo.
2366
2367         * HttpValueCollection.cs: cosmetic changes.
2368
2369 2002-10-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2370
2371         * HttpApplication.cs: reenabled a few lines of code
2372         (ThreadPool already fixed). 
2373         
2374         * HttpRequest.cs:
2375         * HttpResponse.cs:
2376         * HttpUtility.cs:
2377         * HttpValueCollection.cs:
2378         * HttpWriter.cs: Use WebEncoding.Encoding.
2379
2380 2002-10-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2381
2382         * HttpWriter.cs: changed encoding of the writer from Unicode to UTF8.
2383         This fixes sending bytes and allows mixing byte with chars.
2384
2385 2002-10-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2386
2387         * HttpResponse.cs: implemented WriteFile methods.
2388         * MimeTypes.cs: removed duplicated entries.
2389
2390 2002-10-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2391
2392         * HttpResponse.cs: don't throw exception in a couple of
2393         methods not yet implemented.
2394
2395 2002-10-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2396
2397         * HttpApplication.cs: fixed type and handle factories when creating
2398         IHttpHandler for a request.
2399
2400 2002-10-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2401
2402         * HttpApplication.cs: use handlers from configuration.
2403         * HttpContext.cs: get handlers from ConfigurationSettings.
2404
2405 2002-10-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2406
2407         * HttpMethodNotAllowedHandler.cs:
2408         * HttpRuntime.cs:
2409         * StaticFileHandler.cs: Modified file.
2410
2411         * HttpUtility.cs: implemented all missing methods.
2412
2413
2414 2002-09-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2415
2416         * System.Web/HttpApplication.cs: use the static file handler.
2417         * System.Web/HttpForbiddenHandler.cs: handler to forbid access.
2418         * System.Web/HttpMethodNotAllowedHandler.cs: handler for method not
2419         allowed.
2420         
2421         * System.Web/HttpUtility.cs: finished all UrlDecode methods.
2422         * System.Web/MimeTypes.cs: map from file extension to MIME type.
2423         * System.Web/StaticFileHandler.cs: serves static files
2424
2425 2002-09-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2426
2427         * System.Web/HttpApplication.cs:
2428         * System.Web/HttpApplicationFactory.cs:
2429         * System.Web/HttpRequest.cs:
2430         * System.Web/HttpRuntime.cs: we are now able to compile pages and use
2431         HttpApplication, HttpRuntime and SimpleWorkerRequest.
2432
2433 2002-09-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2434
2435         * HttpApplication.cs: added some missing methods.
2436         * HttpApplicationFactory.cs: get event handlers for the application.
2437         * HttpAsyncResult.cs: little fixes.
2438         * HttpRequest.cs: make Encoding work even with no worker request.
2439
2440 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2441
2442         * HttpWorkerRequest.cs: mcs doesn't go crazy. It's just me, that forgot
2443         to add HttpMapPath to the list file...
2444
2445 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2446
2447         * HttpWorkerRequest.cs: fixes compilation with mcs. I will add a bug
2448         report when i get a test case.
2449
2450 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2451
2452         * HttpApplicationFactory.cs:
2453         * HttpCachePolicy.cs:
2454         * HttpResponseHeader.cs:
2455         * HttpResponseStream.cs:
2456         * HttpResponseStreamProxy.cs:
2457         * HttpValueCollection.cs: misc. fixes based on class status page.
2458
2459         * IHttpMapPath.cs: New file.
2460
2461         * HttpRequest.cs: implemented ContentEncoding.
2462         * HttpWorkerRequest.cs: mono-stylized and implemented
2463         SendResponseFromMemory.
2464
2465 2002-08-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2466
2467         * HttpContext.cs: reformatted.
2468         * HttpStaticObjectsCollection.cs: implemented GetEnumertor, CopyTo and
2469         the indexer.
2470
2471 2002-08-05  Patrik Torstensson <ptorsten@hotmail.com>
2472
2473         * HttpApplication.cs: Implemented a state machine to allow handling of
2474         HttpModules and HttpHandlers. Implementation of async handlers. 
2475                                                                  
2476         * HttpApplicationFactory.cs: Factory for creating HttpApplication
2477         instances, including caching.
2478         
2479         * HttpRuntime.cs: Usage of the new HttpApplicationFactory to get a
2480         application instance to execute requests in and implementation of 
2481         request execution (still no request queue). 
2482                                                          
2483         * HttpAsyncResult.cs: New file to handle async module results.                                          
2484                                                          
2485         * HttpRequest.cs: Change signature of Dispose
2486         * HttpResponse.cs: new internal method allowing filtering to happen
2487         during the request flow in the state machine.
2488
2489 2002-07-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2490
2491         * HttpApplication.cs: events were not being initialized.
2492
2493 2002-07-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2494
2495         * ProcessModelInfo.cs: fixed compilation.
2496
2497 2002-07-25  Tim Coleman <tim@timcoleman.com>
2498         * ProcessModelInfo.cs:
2499                 New class added
2500         * HttpParseException.cs:
2501         * HttpCompileException.cs:
2502         * HttpUnhandledException.cs:
2503                 Internal constructors added to these
2504
2505 2002-07-24  Tim Coleman <tim@timcoleman.com>
2506         * ProcessInfo.cs: 
2507                 Fix constructor, reference to shutdownreason.
2508
2509 2002-07-24  Tim Coleman <tim@timcoleman.com>
2510         * HttpCachePolicy.cs:
2511                 Added stubbs to this class.
2512         * HttpCacheability.cs:
2513         * HttpCacheRevalidation.cs:
2514         * HttpValidationStatus.cs:
2515         * ProcessShutdownReason.cs:
2516         * ProcessStatus.cs:
2517         * TraceMode.cs:
2518                 Reorder the enumerations (and in some cases make
2519                 one-based) in order to agree with the .NET 
2520                 implementation, based on the class status page.
2521         * ProcessInfo.cs:
2522                 Implementation of this class.
2523
2524 2002-07-23  Tim Coleman <tim@timcoleman.com>
2525         * HttpCompileException.cs:
2526         * HttpParseException.cs:
2527         * HttpUnhandledException.cs:
2528                 New stubbs created.
2529         * HttpApplication.cs:
2530         * HttpBrowserCapabilities.cs:
2531                 Added missing methods stubbs and attributes based
2532                 on the class status page.  Also reformatted some
2533                 source for consistency.
2534
2535 2002-07-23  Tim Coleman <tim@timcoleman.com>
2536         * HttpUtility.cs: Moved entities hashtable into main
2537                 class as a static object, so we don't instantiate
2538                 a new one every time.  Also put the hashtable
2539                 building into a lock block.
2540
2541 2002-07-22  Tim Coleman <tim@timcoleman.com>
2542         * HttpUtility.cs: Cleanup of the code, implementation
2543                 of HtmlDecode/HtmlEncode functions
2544
2545 2002-07-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2546
2547         * HttpResponse.cs: quick&dirty hack to make redirection work. Should
2548         be out of there once we have SimpleWorkerRequest.
2549
2550 2002-07-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2551
2552         * HttpUtility.cs: little typo, big headache.
2553
2554 2002-07-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2555
2556         * HttpRuntime.cs: don't throw NotImplemented in a couple of methods.
2557
2558 2002-06-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2559
2560         * System.Web/HttpResponse.cs: 
2561
2562         Fixes based on class status page:
2563         
2564                 - Add attributes (DefaultEvent, ParseChildren).
2565                 - Fix declarations.
2566                 - Explicitly implement some interfaces (IPostBackDataHandler
2567                 and IPostBackEventHandler).
2568                 - Implemented some missing methods.
2569
2570 2002-06-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2571
2572         * HttpContext.cs:
2573         (Session): return null instead of throwing an exception.
2574
2575         * HttpRequest.cs:
2576         (HttpMethod): return RequestType if not set.
2577         (GetRawContent): return QueryString if we don't have a
2578         HttpWorkerRequest.
2579
2580         * HttpUtility.cs: fixed Decode and Encode.
2581
2582 2002-06-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2583
2584         * HttpApplication.cs:
2585         * HttpContext.cs: added System.Web.SessionState namespace.
2586
2587         * HttpSessionState.cs: removed. It is under
2588         System.Web.SessionState.
2589
2590 2002-06-10  Duncan Mak  <duncan@ximian.com>
2591
2592         * HttpBrowserCapabilities.cs (BackgroundSounds): Fixed typo.
2593
2594 2002-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2595
2596         * HttpRequest.cs: implemented Browser property.
2597
2598 2002-06-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
2599
2600         * HttpBrowserCapabilities.cs: stubbed out.
2601
2602 2002-05-18  Miguel de Icaza  <miguel@ximian.com>
2603
2604         * HttpRuntime.cs: Reformat file.
2605
2606 2002-05-07  Duncan Mak  <duncan@ximian.com>
2607
2608         * HttpBrowserCapabilities.cs: Added, replacing
2609         HttpBrowserCapabilites because of typo.
2610
2611         * HttpBrowserCapabilites.cs: Removed, replaced by above.
2612
2613         * HttpRequest.cs (Browser): Fixed typo.
2614
2615 2002-04-12  Patrik Torstensson <patrik.torstensson@labs2.com>
2616
2617         * HttpApplication.cs: Minor updates
2618         * HttpApplicationState.cs: Ready.
2619         * HttpClientCertificate.cs: Signature updates
2620         * HttpValueCollection.cs: ready
2621         * HttpStaticObjectsCollection.cs: ready
2622         * HttpResponseHeader.cs: made internal only
2623         * HttpResponse.cs: Signature updates
2624         * HttpPostedFile.cs: ready
2625         * HttpCacheVaryByHeaders.cs: ready (except communication to policy)
2626         * HttpCacheVaryByParams.cs: ready (except communication to policy)
2627         
2628         System.Web is now over 60% ready.. 
2629
2630 2002-04-11  Patrik Torstensson <patrik.torstensson@labs2.com>
2631
2632         * HttpException.cs: 95% ready, only windows dependent code left
2633         * HttpFileCollection.cs: Finished.
2634         * HttpRequest.cs: Minor fixes and fixed signature problems
2635         * HttpResponse.cs: Implementation of missing methods and signature problems
2636         * HttpResponseHeader.cs: Fixed signature problems
2637         * HttpRuntime.cs: Fixed signature problems
2638         * HttpServerUtility.cs: Added support for HttpApplication
2639         * HttpSessionState.cs: Fixed signature issues
2640         * HttpUtility.cs: fixed signature issues
2641         * HttpValueCollection.cs: Support for cookie parsing and fixed signature issues
2642         * HttpWorkerRequest.cs: Fixed small signature issue
2643         * HttpWriter.cs: Fixed signature issue
2644         * HttpApplication.cs: Basic implementation
2645         * HttpApplicationState.cs: Small fixes to support major change comming up
2646         * HttpBrowserCapabilities.cs: Added Type method
2647         * HttpClientCertificate.cs: Almost ready, needs to parse certificate.
2648         * HttpContext.cs: Fixed signature issues and added last methods.
2649         * HttpCookie.cs: Full implementation
2650         * HttpCookieCollection.cs: Full implementation
2651         * TraceContext.cs: Methods implemented.
2652         * HttpPostedFile.cs: Placeholder
2653         * HttpStaticObjectsCollection.cs: Placeholder
2654         * HttpModuleCollection.cs: Ready, will be used during the major revamp.
2655         
2656         * Fixed a number of other small signature problems also (class status page)
2657         
2658         
2659 2002-04-10  Patrik Torstensson <patrik.torstensson@labs2.com>
2660
2661     * HttpWorkerRequest.EndOfSendNotification.cs Removed (included in WorkerRequest)
2662     * Checkin of all new files (noted in last changenote)
2663
2664 2002-04-10  Patrik Torstensson <patrik.torstensson@labs2.com>
2665
2666     * HttpContext.cs: First implementation (basic support, few methods left to impl)
2667     * HttpException.cs: Partial implementation (basic support)
2668     * HttpHelper.cs: Header parse helper, used by runtime (non public)
2669     * HttpRequest.cs: Implementation (all methods there, not all fully impl)
2670     * HttpRequestStream.cs: Full implementation
2671     * HttpResponse.cs: Partial implementation(almost all methods)
2672     * HttpResponseHeader.cs: Header helper
2673     * HttpResponseStream.cs: Full implementation - Response stream support
2674     * HttpResponseStreamProxy.cs: Implementation - filter support
2675     * HttpRuntime.cs: Rewrite to support one IHttpModule (use for testing the runtime)
2676         * HttpServerUtility.cs: Implemented usage of HttpContext for methods
2677                                 and moved encoding functions to HttpUtility.
2678
2679     * HttpUtility.cs: Added encoding/decoding functions from HttpServerUtility and
2680                       added the Attribute encoding functions.
2681
2682     * HttpValueCollection.cs: Implementation.
2683     * HttpWorkerRequest.cs: Rewrite and implementation of all methods (ready)
2684     * HttpWriter.cs: Implementation (with filter support)    
2685
2686     * HttpFileCollection: Added dummy class (placeholder)
2687     * HttpApplication.cs: Added dummy class (placeholder)
2688     * HttpApplicationState.cs: Added dummy class (placeholder)
2689     * HttpBrowserCapabilities.cs: Added dummy class (placeholder)
2690     * HtttpCachePolicy.cs: Added dummy class (placeholder)
2691     * HttpClientCertificate.cs: Added dummy class (placeholder)
2692     * HttpSessionState.cs: Added dummy class (placeholder)
2693     * TraceContext.cs: Added dummy class (placeholder)
2694     
2695
2696 2002/04/10  Nick Drochak <ndrochak@gol.com>
2697
2698         * HttpServerUtility.cs: Fix build breaker.
2699
2700 2002-03-28  Wictor Wiln  <wictor@iBizkit.se>
2701
2702         * HttpServerUtils.cs : Added some more functionality
2703         
2704 2002-03-28  Martin Baulig  <martin@gnome.org>
2705
2706         * HttpServerUtils.cs (UrlDecode): You cannot implicitly cast a
2707         char to a string, use ToString() instead.
2708
2709 2002-03-16  Gaurav Vaish  <gavish@iitk.ac.in>
2710
2711         * WebCategoryAttribute.cs
2712                                : Added private attribute.
2713
2714 2002-03-16  Gaurav Vaish  <gavish@iitk.ac.in>
2715
2716         * HttpRuntime.cs       : Stubbed methods for
2717                   FormatStringResource(...) in agreement with the various
2718                   overloads available at String.Format(...)
2719
2720 2002-01-08  Gaurav Vaish  <gavish@iitk.ac.in>
2721
2722         * TODOAttribute.cs     : Added, as an internal class to the assembly
2723
2724 2002-01-03  Nick Drochak  <ndrochak@gol.com>
2725
2726         * HttpRuntime.cs: remove uneeded exception variable from catch and
2727         initialize remaining instance members to avoid compile warnings
2728
2729 2002-01-02  Nick Drochak  <ndrochak@gol.com>
2730
2731         * HttpRuntime.cs: fix spelling error/variable name change.
2732
2733 2001-12-18  Gaurav Vaish <gvaish@iitk.ac.in>
2734
2735         * HttpRuntime.cs       : Initial implementation
2736
2737 2001-08-29  Bob Smith  <bob@thestuff.net>
2738
2739         * HttpWorkerRequest.cs: Partial Implementation.
2740
2741 2001-08-16  Bob Smith  <bob@thestuff.net>
2742
2743          * HttpCookieCollection.cs, HttpCookie.cs: Bug fixes.
2744
2745 2001-08-09  Bob Smith  <bob@thestuff.net>
2746
2747          * BeginEventHandler.cs: Implemented.
2748          * EndEventHandler.cs: Implemented.
2749          * HttpCacheability.cs: Implemented.
2750          * HttpCacheRevalidation.cs: Implemented.
2751          * HttpCacheValidateHandler.cs: Implemented.
2752          * HttpCookieCollection.cs: Implemented.
2753          * HttpCookie.cs: Implemented.
2754          * HttpValidationStatus.cs: Implemented.
2755          * HttpWorkerRequest.EndOfSendNotification.cs: Implemented.
2756          * IHttpAsyncHandler.cs: Implemented.
2757          * IHttpHandler.cs: Implemented.
2758          * IHttpHandlerFactory.cs: Implemented.
2759          * IHttpModule.cs: Implemented.
2760          * ProcessShutdownReason.cs: Implemented.
2761          * ProcessStatus.cs: Implemented.
2762          * TraceMode.cs: Implemented.