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