2008-01-23 Olivier Dufour <olivier.duff@gmail.com>
[mono.git] / mcs / class / System.Web / System.Web / ChangeLog
1 2008-01-22  Konstantin Triger <kostat@mainsoft.com>
2
3         * HttpResponse.cs: move headers_sent initialization up to prevent additional
4                 trial to send headers if an exception is thrown.
5
6 2008-01-21  Konstantin Triger <kostat@mainsoft.com>
7
8         * HttpRequest.cs: Form validation: ensure the collection is accessible after
9                 validation failed.
10
11 2008-01-16  Juraj Skripsky  <js@hotfeet.ch>
12
13         * HttpRequest.cs (get_UrlReferrer): Handle case when headers contain
14         invalid Url for referer.
15
16 2008-01-16  Juraj Skripsky  <js@hotfeet.ch>
17
18         * HttpCookieCollection.cs (AllKeys): Use Keys.CopyTo().
19
20 2008-01-14  Sebastien Pouliot  <sebastien@ximian.com>
21
22         * HttpCookie.cs: Fix HttpOnly setter. Found using Gendarme.
23
24 2008-01-02  Vladimir Krasnov  <vladimirk@mainsoft.com>
25
26         * HttpContext.cs: added resource manager caching in GetResourceObject
27         * HttpContext.jvm.cs: added resourceManagerCache storing in appdomain
28
29 2007-12-31  Vladimir Krasnov  <vladimirk@mainsoft.com>
30
31         * HttpContext.cs: added HasError method
32         * HttpApplication.cs: refactored thread abort handling
33
34 2007-12-31  Vladimir Krasnov  <vladimirk@mainsoft.com>
35
36         * HttpRuntime.cs: fixed HttpRuntime, added Cache.DependencyCache
37         initialization
38
39 2007-12-26 Igor Zelmanovich <igorz@mainsoft.com>
40         
41         * TraceContext.cs:
42         * TraceData.cs:
43         make trace considers control state info.                
44
45 2007-12-25 Igor Zelmanovich <igorz@mainsoft.com>
46         
47         * HttpApplication.cs: initialize culture each request.
48         makes it consider culture settings from nested web.config               
49
50 2007-12-19  Juraj Skripsky <js@hotfeet.ch>
51
52         * HttpContext.cs, HttpApplication.cs: Move timeout tracking from
53         TimeoutManager into HttpContext. Replace periodic timeout checks with
54         separate per-context timeout timers.  
55         * HttpRuntime.cs: remove TimeoutManager.
56
57 2007-12-18  Miguel de Icaza  <miguel@novell.com>
58
59         * HttpCookieCollection.cs (Get): implement using the indexer to
60         share some code.   Should fix #349564.
61
62 2007-12-16 Igor Zelmanovich <igorz@mainsoft.com>
63         
64         * HttpContext.cs: added IsProcessingInclude property.
65         * HttpServerUtility.cs: set IsProcessingInclude value within Execute.
66
67 2007-12-13  Marek Habersack  <mhabersack@novell.com>
68
69         * HttpRequest.cs, HttpResponse.cs, SiteMapNode.cs, HttpRuntime.cs,
70         HttpResponseStream.cs, HttpApplication.cs, HttpCachePolicy.cs:
71         speed optimization - use String.Concat instead of String.Format in
72         some cases.
73
74 2007-12-13 Igor Zelmanovich <igorz@mainsoft.com>
75         
76         * HttpApplication.cs:
77         * HttpContext.cs:
78         * HttpRequest.cs:
79         * HttpServerUtility.cs:
80         - When Transfer/Execute is called with preserveForm=true, transferred 
81         page is not processed as PostBack but form collection is preserved.
82         - When Execute is called more than once, PreviousPage property is set 
83         correct.
84
85 2007-12-09  Vladimir Krasnov  <vladimirk@mainsoft.com>
86
87         * HttpApplication.cs: added TARGET_JVM to LoadType method
88
89 2007-12-08  Marek Habersack  <mhabersack@novell.com>
90
91         * HttpRuntime.cs: initialize the Settings Mapping Manager once per
92         application, just after initalizing the WebConfigurationManager.
93
94 2007-11-28  Marek Habersack  <mhabersack@novell.com>
95
96         * HttpApplication.cs: peform the check of whether we're running on
97         Windows from within a static constructor.
98
99 2007-11-23  Marek Habersack  <mhabersack@novell.com>
100
101         * RequestNotificationStatus.cs: fix the order of enum members.
102
103         * RequestNotification.cs: assign correct values to the enum
104         members.
105
106         * StaticSiteMapProvider.cs: change visibility of the constructor.
107
108         * HttpRequest.cs: added missing property LogonUserIdentity.
109
110         * HttpCacheVaryByContentEncodings.cs: this constructor should not
111         be public.
112
113 2007-11-23  Daniel Nauck  <dna@mono-project.de>
114
115         * TraceContextRecord.cs: implemented
116
117 2007-11-23  Marek Habersack  <mhabersack@novell.com>
118
119         * BrowserCapabilities.cs: the JavaScript property is obsolete in
120         2.0sp1.
121
122 2007-11-22  Daniel Nauck  <dna@mono-project.de>
123
124         * IPartitionResolver.cs: implemented
125
126 2007-11-22  Daniel Nauck  <dna@mono-project.de>
127
128         * WebPageTraceListener.cs: implemented
129
130 2007-11-22  Marek Habersack  <mhabersack@novell.com>
131
132         * RequestNotificationStatus.cs: added
133
134         * RequestNotification.cs: added
135
136         * HttpCacheVaryByContentEncodings.cs: added
137
138         * HttpCachePolicy.cs: added the HttpCacheVaryByContentEncodings
139         property.
140
141         * HttpApplication.cs: added 3 new events to the pipeline (for
142         compatibility with the 2.0sp1/3.5 version of System.Web)
143
144 2007-11-22  Daniel Nauck  <dna@mono-project.de>
145
146         * WebPageTraceListener.cs: initial checkin (stubs).
147
148 2007-11-17  Marek Habersack  <mhabersack@novell.com>
149
150         * HttpResponse.cs: make sure fileDependencies is not null before
151         attempting to use it. Fixes bug #342511.
152
153 2007-11-07 Igor Zelmanovich <igorz@mainsoft.com>
154
155         * TraceContext.cs:
156         * TraceData.cs: implemented TraceMode feature.  
157
158 2007-11-07 Igor Zelmanovich <igorz@mainsoft.com>
159
160         * BaseParamsCollection.cs:
161         ensure collection will not be changed during enumeration.
162
163 2007-11-06  Marek Habersack  <mhabersack@novell.com>
164
165         * HttpResponse.cs: trigger the PreSendRequestHeaders event before
166         setting the output headers. Fixes bugs #334521, #339538
167
168         * TraceData.cs: do not use DataTable for trace data storage
169         anymore. Instead, a set of classes is used to hold data and a
170         Queue container (generic version in 2.0) is used to hold the data
171         rows. Fixes bug #325267.
172
173 2007-11-05  Marek Habersack  <mhabersack@novell.com>
174
175         * HttpRequest.cs: cope with UriBuilder.Query being null.
176
177 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
178
179         * HttpRuntime.cs: Always return a path with trailing directory
180         separator character. Spaces to tabs.
181
182 2007-11-03  Marek Habersack  <mhabersack@novell.com>
183
184         * HttpApplication.cs: removed unused internal PrivateBinPath
185         property.
186
187         * HttpRuntime.cs: BinDirectory returns a path that ends with the
188         directory separator character.
189
190 2007-11-02  Marek Habersack  <mhabersack@novell.com>
191
192         * HttpServerUtility.cs: in 2.0, Transfer is allowed only from
193         pages. Fixes bug #334931
194         Also, according to MSDN docs, transfer in 2.0+ is possible only to
195         other pages.
196
197         * HttpRuntime.cs: BinDirectory returns a full path to the actual
198         bin directory in the application root. If no bin directory is
199         found, it defaults to returning <applicationPath>/bin. Fixes bug
200         338116.
201
202         * HttpApplication.cs: introduced HTTP handler cache to save time
203         on repetitive handler collection traversals. On busy sites the
204         traversal of the default 26 handlers may account for thousands of
205         unnecessary calls to configsystem.LocateHandler method, which may
206         also involve executing a regex. The cache is cleared whenever the
207         HTTP handler collection is modified.
208
209 2007-10-30 Igor Zelmanovich <igorz@mainsoft.com>
210
211         * HttpUtility.cs: fixed HtmlEncode for TARGET_JVM.
212
213 2007-10-30 Igor Zelmanovich <igorz@mainsoft.com>
214
215         * HttpUtility.cs: fixed UrlPathEncode.
216
217 2007-10-24  Gert Driesen  <drieseng@users.sourceforge.net>
218
219         * StaticFileHandler.cs: Modified 404 message to match MS.
220
221 2007-10-24  Marek Habersack  <mhabersack@novell.com>
222
223         * HttpUtility.cs: MS.NET does not support the ';' query parameter
224         separator. Fixes bug #335615
225
226 2007-10-18  Juraj Skripsky  <js@hotfeet.ch>
227
228         * StaticSiteMapProvider.cs: Replace Hashtables by Dictionaries,
229         don't allocate them on-demand, there will never be many
230         Provider instances around.
231         AddNode(): Check for duplicate keys before adding any item to
232         hashtables.
233         RemoveNode(): Use fact that Hashtable.Remove() never throws,
234         remove item from keyToNode as well, make symmetric to AddNode().
235         MapUrl(): Use VirtualPathUtility, allow for full urls
236         (e.g. http://www.google.com).
237         
238 2007-10-17  Marek Habersack  <mhabersack@novell.com>
239
240         * StaticFileHandler.cs: fixed an bug with Mono running under
241         Windows operating systems which caused XSP to return source of the
242         requested page if the file name used in the request ended in any
243         number of spaces or dots. The problem lies in the way the Win32
244         subsystem treats such file names - it ignores the trailing
245         characters and allows the calling application to open a file on
246         disk even when its name does not contain the trailing characters
247         used in the open request. Such file names may be supported by the
248         underlying filesystem (e.g. NTFS) but they are not supported by
249         the I/O Win32 subsystem. The security issue is reported in
250         CVE security report CVE-2007-5473. Fixes bug #332401
251         
252 2007-10-17  Igor Zelmanovich <igorz@mainsoft.com>
253
254         * HttpResponse.cs:
255         response status is sent after PreSendRequestHeaders invoked.
256         Redirect method set RedirectLocation property
257         fixes bug #334521
258                 
259 2007-10-15  Marek Habersack  <mhabersack@novell.com>
260
261         * HttpApplication.cs: do not return a non-existing bin directory
262         from BinDirectories. Patch from Atsushi Enomoto
263         <atsushi@ximian.com>, thanks! Fixes bug #332434. 
264
265 2007-10-04  Marek Habersack  <mhabersack@novell.com>
266
267         * HttpApplication.cs: call the Init method after loading the
268         modules and hooking up application events. Fixes bug #330416.
269
270 2007-10-01  Marek Habersack  <mhabersack@novell.com>
271
272         * HttpServerUtility.cs: set a flag when transferring control to
273         another page.
274
275         * HttpContext.cs: added an internal InTransit property to carry
276         information that HttpServerUtility.Transfer has been used, over to
277         the target page.
278
279 2007-09-12  Juraj Skripsky <js@hotfeet.ch>
280
281         * StaticSiteMapProvider.cs (AddNode): Add message text to
282         InvalidOperationException (duplicate url case).
283
284 2007-09-06  Marek Habersack  <mhabersack@novell.com>
285
286         * HttpCachePolicy.cs: implemented setting the ETag and
287         Last-Modified headers from file dependencies.
288
289         * HttpResponse.cs: implemented file dependency methods.
290
291 2007-09-01  Marek Habersack  <mhabersack@novell.com>
292
293         * HttpRuntime.cs: rewrote the app_offline.htm support. It now uses
294         filesystem watchers instead of checking for existence of the
295         file(s) at the beginning of every request. No performance penalty
296         that way.
297
298 2007-08-31  Marek Habersack  <mhabersack@novell.com>
299
300         * HttpApplicationFactory.cs: added methods to enable/disable
301         watchers.
302
303         * HttpRuntime.cs: implemented handling of app_offline.htm file in
304         the application root directory. Fixes bug #81127.
305
306         * HttpResponse.cs: make sure neither context or
307         context.ApplicationInstance are null in End ().
308
309 2007-08-27  Marek Habersack  <mhabersack@novell.com>
310
311         * HttpCookie.cs: make sure a key is output even if it has no
312         values set. Fixes bug #81333.
313
314 2007-08-23  Marek Habersack  <mhabersack@novell.com>
315
316         * HttpApplication.cs: added a static array BinDirs which contains
317         the common bin directory names we can encounter.
318         Added internal static property IsRunningOnWindows.
319         Added internal enumerable property BinDirectories to iterate over
320         the full paths of the available binary directories.
321         Added internal enumerable property BinDirectoryAssemblies to
322         iterate over .dll files in the bin directories.
323         LoadTypeFromPrivateBin renamed to LoadTypeFromBin.
324         LoadTypeFromBin uses BinDirectoryAssemblies.
325         
326         * HttpApplicationFactory.cs: use HttpApplication.BinDirectories to
327         interate over the list of bin dirs.
328
329 2007-08-21  Marek Habersack  <mhabersack@novell.com>
330
331         * HttpApplicationFactory.cs: watch for changes in all the
332         private binary directories for the current application domain.
333
334         * HttpApplication.cs: turn the PrivateBinPath property into an
335         internal enumerable, so that code throughout the assembly can
336         iterate over the list of private bin directories configured for
337         the application domain.
338         Added a new internal method LoadTypeFromPrivateBin, for sharing
339         with other parts of the assembly.
340
341 2007-08-18  Juraj Skripsky <js@hotfeet.ch>
342
343         * HttpRequest.cs (StripPath): Fix off-by-one error, make static.
344
345 2007-08-18  Marek Habersack  <mhabersack@novell.com>
346
347         * HttpRequest.cs: IE sends the full input file path when uploading
348         a file via the upload input control. Detect the situation and
349         strip the leading path. Fixes bug #82059.
350
351         * HttpServerUtility.cs: set the current context's path(s) to the
352         Transfer/Execute target only to retrieve the new handler, and
353         restore them immediately afterwards. It has a two-fold effect:
354         first it avoids an extra round trip to the original page which
355         called Transfer/Execute, second it makes FilePath etc. return
356         information about the original page (that is the one which called
357         Transfer/Execute). Fixes bug #82439.
358
359 2007-08-14  Marek Habersack  <mhabersack@novell.com>
360
361         * XmlSiteMapProvider.cs: do not hide this_lock.
362
363 2007-08-09  Marek Habersack  <mhabersack@novell.com>
364
365         * HttpApplicationFactory.cs: unconditionally watch for changes
366         (including creation) to Global.asax, global.asax, Web.config,
367         web.config and Web.Config. This makes the application restart once
368         any of those is created. Patch from Juraj Skripsky
369         <juraj@hotfeet.ch>, thanks! Fixes bug #82380.
370
371 2007-08-08  Marek Habersack  <mhabersack@novell.com>
372
373         * StaticSiteMapProvider.cs, HttpApplicationFactory.cs,
374         HttpStaticObjectsCollection.cs, SiteMapProvider.cs,
375         XmlSiteMapProvider.cs, HttpApplication.cs, CapabilitiesLoader.cs,
376         TimeoutManager.cs: do not use lock (this), replace it with lock
377         (this_object), where this_object is an instance variable. Prevents
378         deadlocks in situation when external code locks on the class
379         instance.
380
381 2007-08-05  Vladimir Krasnov  <vladimirk@mainsoft.com>
382
383         * HttpUtility.cs: performance refactoring, optimized UrlEncode
384
385 2007-08-05 Igor Zelmanovich <igorz@mainsoft.com>
386
387         * SiteMapNode.cs: refactoring + typo fix: 
388         variable is declared in scope where is used.
389
390 2007-07-31  Vladimir Krasnov  <vladimirk@mainsoft.com>
391
392         * VirtualPathUtility.cs: refactored GetDirectory, ToAbsolute, added
393         internal api to skip path normalizing
394
395 2007-07-30  Vladimir Krasnov  <vladimirk@mainsoft.com>
396
397         * HttpResponseStream.jvm.cs: optimized CharBucket
398
399 2007-07-22  Vladimir Krasnov  <vladimirk@mainsoft.com>
400
401         * HttpServerUtility.cs: fixed Execute, SetCurrentExePath should be 
402         called after ApplicationInstance.GetHandler call in case of GetHandler
403         fails for some reason
404
405 2007-07-21  Marek Habersack  <mhabersack@novell.com>
406
407         * HttpRuntime.cs: clean up the dynamic base directory on domain
408         shutdown.
409
410 2007-07-10  Vladimir Krasnov  <vladimirk@mainsoft.com>
411
412         * HttpUtility.cs: optimized HtmlEncode and HtmlAttributeEncode methods
413
414 2007-07-05  Miguel de Icaza  <miguel@novell.com>
415
416         * HttpApplication.cs (AsyncRequestState.Complete): Add the
417         try/catch for the callback here to ensure that we only call
418         complete_event.Set once. 
419
420         (PipelineDone): This is where the core of the bug fix is: do not
421         call Complete() or call done.Set() (depending on the invocation
422         case) until we are actually done cleaning up the request.
423
424         The problem was that we signaled that we were done, but we had not
425         completed the shut down, so another thread could have been
426         scheduled on the same HttpApplication and had its variables be
427         modified as we completed the shutdown on the first thread. 
428
429         This fixes #81400 which was a very long standing bug.  
430
431         (Tick): Remove the pipeline check against null, this is not
432         necessary and it will help us find problems like this one in the
433         future.
434
435         Reverts patch r66072 which was a described as:
436
437                 band-aid patch to help debugging hang running 2.0
438                 tests.
439
440 2007-07-02  Marek Habersack  <mhabersack@novell.com>
441
442         * CapabilitiesLoader.cs: provide default capability values for all
443         the 2.0+ capabilities which are not defined in our
444         browscap.ini. The default values have been assigned as per
445         MSDN. Fixes bug #81927
446
447 2007-06-28  Vladimir Krasnov  <vladimirk@mainsoft.com>
448
449         * HttpResponse.cs: fixed AddHeadersNoCache, removed content-length
450         header for TARGET_JVM
451         * HttpWorkerRequest.cs: made this class partial, moved TARGET_JVM stuff
452         to .jvm part
453         * HttpWriter.cs: fixed write methods, output_stream can write char[]
454         and string in TARGET_JVM
455         added HttpWorkerRequest.jvm.cs, HttpResponseStream.jvm.cs
456
457 2007-06-25 Juraj Skripsky <js@hotfeet.ch>
458
459         * HttpRuntime.cs (ShutdownAppDomain): Re-introduce call to
460         "Cache.InvokePrivateCallbacks".
461
462 2007-06-24  Vladimir Krasnov  <vladimirk@mainsoft.com>
463
464         * HttpUtility.cs: fixed HtmlAttributeEncode, performance improvement
465
466 2007-06-20  Marek Habersack  <mhabersack@novell.com>
467
468         * HttpRuntime.cs: added new internal property, InternalCache, to
469         keep all the internal cache entries instead of mixing them with
470         the public cache ones.
471         Do not invoke Cache.InvokePrivateCallbacks - this method no longer
472         exists.
473
474         * HttpResponse.cs: private entries are now kept in
475         Context.InternalCache.
476
477         * HttpContext.cs: added new internal property, InternalCache,
478         which returns the HttpRuntime.InternalCache value.
479
480         * HttpApplication.cs: check all the loaded assemblies for the type
481         being looked up. Patch from Juraj Skripsky <juraj@hotfeet.ch>,
482         thanks! Fixes bug #81697.
483
484 2007-06-18 Igor Zelmanovich <igorz@mainsoft.com>
485
486         * HttpUtility.cs: refactoring:
487         removed constants to another class.     
488
489 2007-06-18 Igor Zelmanovich <igorz@mainsoft.com>
490
491         * AssemblyResourceLoader.cs: refactoring:
492         make the code reusable in System.Web.Extenssions.       
493
494 2007-05-31  Marek Habersack  <mhabersack@novell.com>
495
496         * SiteMapProvider.cs: implemented proper logic of authorizing
497         user's access to a sitemap node, as per MSDN2 docs. Patch from
498         Dumitru Ban <dban@dako.ro>, thanks!
499
500 2007-05-30  Marek Habersack  <mhabersack@novell.com>
501
502         * TraceManager.cs: Catch all the possible exceptions in the
503         constructor - the object MUST be created successfully (even if
504         there are errors).
505
506         * HttpRequest.cs: do not attempt to apply url mappings if the
507         configuration manager has errors.
508
509         * HttpRuntime.cs: handle static constructor exceptions later on,
510         during the first call to ReallyProcessRequest.
511
512         * QueueManager.cs: provide defaults for the parameters to be read
513         from the config file(s).
514         Catch all the possible exceptions in the constructor - the object
515         MUST be created successfully (even if there are errors).
516
517 2007-05-29  Marek Habersack  <mhabersack@novell.com>
518
519         * SiteMapProvider.cs: updated the node accessibility comments.
520         If Roles not null and user is not in at least one of the
521         specified roles, return false.
522         If there Url is null or empty, return false.
523
524 2007-05-28  Marek Habersack  <mhabersack@novell.com>
525
526         * HttpRequest.cs: since Path is used from within
527         WebConfigurationManager, under some conditions it may lead to
528         endless recursion if the UrlComponents is not instantiated when
529         Path_get is called.
530
531 2007-05-21  Vladimir Krasnov  <vladimirk@mainsoft.com>
532
533         * HttpContext.cs: added ProfileInitialized boolean property
534
535 2007-05-16  Vladimir Krasnov  <vladimirk@mainsoft.com>
536
537         * VirtualPathUtility.cs: Normalize method check more carefully if need
538         to normalize, performance fix
539
540 2007-05-16  Konstantin Triger <kostat@mainsoft.com>
541
542         * HttpContext.cs: correctly check for request locality.
543
544 2007-05-15  Marek Habersack  <mhabersack@novell.com>
545
546         * HttpApplication.cs: refactoring - moved LoadType from
547         WebConfigurationHost here and made it internal static, in order to
548         make the code avaliable from all the places where extended type
549         loading is required.
550
551 2007-05-14  Marek Habersack  <mhabersack@novell.com>
552  
553         * HttpUtility.cs: when parsing query strings, skip the leading ?
554         for the first parameter name.
555
556         * HttpRequest.cs: added support for mapping urls, as defined in
557         the system.web/urlMappings section.
558
559 2007-05-14  Vladimir Krasnov  <vladimirk@mainsoft.com>
560         
561         * HttpWriter.cs: GetMaxByteCount was used in Write and WriteString
562         methods to improve performance of HttpWriter
563
564 2007-05-14 Igor Zelmanovich <igorz@mainsoft.com>
565
566         * HttpApplication.cs:
567         prevent DOS attack: remove configuration from the cache in case 
568         of invalid resource not exists  
569
570 2007-05-14  Vladimir Krasnov  <vladimirk@mainsoft.com>
571
572         * TraceContext.cs: refactoring, cached TraceManager
573
574 2007-05-03 Igor Zelmanovich <igorz@mainsoft.com>
575
576         * HttpApplication.cs:
577         * HttpContext.cs:
578         handling exceptions occurred if  <system.web/customError> 
579         section is not valid.   
580
581 2007-05-08  Vladimir Krasnov  <vladimirk@mainsoft.com>
582
583         * BaseParamsCollection.cs: fixed Get(string) property, fixed collection
584         lazy initialization
585
586 2007-05-07  Marek Habersack  <mhabersack@novell.com>
587
588         * HttpResponseStream.cs: use BufferOutput
589
590         * HttpResponse.cs: support Buffer, but use BufferOutput
591
592 2007-05-03 Igor Zelmanovich <igorz@mainsoft.com>
593
594         * BrowserCapabilities.cs:
595         added missing API.      
596
597 2007-04-30 Igor Zelmanovich <igorz@mainsoft.com>
598
599         * HttpApplication.cs: reverted r74717.
600
601 2007-04-29 Igor Zelmanovich <igorz@mainsoft.com>
602
603         * HttpContext.jvm.cs: Response.End() must abort thread if not async.    
604
605 2007-04-29 Igor Zelmanovich <igorz@mainsoft.com>
606
607         * HttpApplication.cs: doesn't cache httpHandlersSection in instance, 
608         that allows to consider httpHandlers section in nested web.config.      
609
610 2007-04-27  Marek Habersack  <mhabersack@novell.com>
611
612         * XmlSiteMapProvider.cs: add support for siteMapFile attribute.
613
614 2007-04-24  Marek Habersack  <mhabersack@novell.com>
615
616         * CapabilitiesLoader.cs: Hashtables used as property containers
617         should not be case-insensitive as we now preload the property
618         hashes with default properties, to make the code work in case
619         browscap.ini is broken or missing. Instead, the keys are
620         lower-cased and trimmed before indexing the Hashtable.
621         Added all the missing capabilities to the defaultCaps Hashtable.
622         The returned Hashtable is not reversed in GetCapabilities anymore
623         - it might make the code faster, but it also makes it mismatch
624         browsers (e.g. Firefox 2.0 is mismatched for Mozilla 1.8).
625         All of the above fixes bug #81437.
626
627         * HttpRequest.cs: MS.NET throws HttpException for invalid paths,
628         not ArgumentNullException.
629
630         * HttpException.cs: wrap GetHtmlErrorMessage internals in
631         try/catch to capture possible exceptions in HttpContext.
632
633         * HttpContext.cs: IsCustomErrorEnabled is used from within
634         HttpException, make sure it gets the section in a safe way and
635         resorts to the default settings.
636         
637         * HttpResponse.cs: HeaderEncoding is used in the same context as
638         above. Take the same precautions.
639         
640 2007-04-22 Joshua Tauberer <jit@occams.info>
641  
642         * HttpParamsCollection.cs: Fix IndexOutOfRangeException.
643
644 2007-04-19  Miguel de Icaza  <miguel@novell.com>
645
646         * BaseParamsCollection.cs (Get (string)): Call LoadInfo here to
647         fix #81385
648
649 2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>
650
651         * HttpException.cs: used GetBaseException() instead InnerException.
652
653 2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>
654
655         * HttpException.cs: shows message of InnerException in head of Page.
656
657 2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>
658
659         * HttpException.cs: fixed generated HTML formating.
660
661 2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>
662
663         * HttpContext.cs: GetGlobalResourceObject, GetLocalResourceObject
664         use case-insensitive ResourceManager
665
666 2007-04-15  Marek Habersack  <mhabersack@novell.com>
667
668         * VirtualPathUtility.cs: converted to LF line endings and set the
669         svn:eol-style property to 'native'
670
671 2007-04-13  Marek Habersack  <mhabersack@novell.com>
672
673         * SiteMap.cs: try to look up the current map node in providers
674         other than the current one. Patch from Mike Morano
675         <mmorano@mikeandwan.us>. Fixes bug #81366. 
676
677 2007-04-12  Vladimir Krasnov  <vladimirk@mainsoft.com>
678
679         * HttpRequest.cs: fixed Params property to be lazy initialzation
680         collection
681         * added HttpParamsCollection.cs
682
683 2007-04-11  Konstantin Triger <kostat@mainsoft.com>
684
685         * HttpRequest.cs: IsLocal should return true for loopback addresses.
686
687 2007-04-10  Marek Habersack  <mhabersack@novell.com>
688
689         * HttpCookie.cs: format the output of HttpCookie.Values.ToString()
690         in the same way MS.NET does. Fixes bug #81333. Patch from Mike
691         Morano <mmorano@mikeandwan.us>.
692
693         * XmlSiteMapProvider.cs: add the NotifyFilters.Size to the
694         watcher flags, so that we watch for modifications to a file when
695         using Linux inotify.
696
697         * HttpApplicationFactory.cs: add the NotifyFilters.Size to the
698         watcher flags, so that we watch for modifications to a file when
699         using Linux inotify.
700         App_Code, App_Browsers and App_GlobalResources watchers must watch
701         for events with the '*' mask so that they can notice events
702         related to subdirectory creation/deletion.
703         Watch for subdirectory events with the App_Code watcher.
704
705 2007-04-07  Marek Habersack  <mhabersack@novell.com>
706
707         * HttpException.cs: show a default custom error message if custom
708         errors are enabled.
709         Cleaned up the errors HTML, made it XHTML-compliant. Generated
710         HTML now uses inline CSS styles.
711
712 2007-04-06  Marek Habersack  <mhabersack@novell.com>
713
714         * HttpUtility.cs: added a constant that contains the default query
715         parameter character.
716         ParseQueryString supports queries with both '&' and ';' parameter
717         separators.
718
719 2007-04-05  Marek Habersack  <mhabersack@novell.com>
720
721         * CapabilitiesLoader.cs: Make sure that the capability names
722         (keys) are stored in lowercase.
723
724 2007-04-05 Igor Zelmanovich <igorz@mainsoft.com>
725
726         * XmlSiteMapProvider.cs: 
727         custom attributes of siteMapNode are loaded properly.
728
729 2007-04-05  Marek Habersack  <mhabersack@novell.com>
730
731         * CapabilitiesLoader.cs: add a full default set of capabilities
732         for cases when browscap.ini is broken, missing or doesn't contain
733         definition for the client's User-Agent. Makes it possible to surf
734         asp.net sites from unsupported clients.
735
736 2007-04-04 Juraj Skripsky <js@hotfeet.ch>
737
738         * HttpApplicationFactory.cs: Make sure an web application is
739         shutdown only once (and Application_End in global.asax is called
740         only once as well). This is necessary because FileSystemWatcher
741         emits multiple events when e.g. global.asax is changed.
742
743 2007-04-01  Vladimir Krasnov  <vladimirk@mainsoft.com>
744
745         * HttpRequest.cs: fixed Headers property to use optimized
746         HeadersCollection
747         * WebROCollection.cs: used StringComparer.OrdinalIgnoreCase for
748         NET_2_0
749         * ServerVariablesCollection.cs: used lazy collection fill optimization
750         * added: HeadersCollection.cs, BaseParamsCollection.cs
751
752 2007-04-01  Konstantin Triger <kostat@mainsoft.com>
753
754         * HttpContext.cs: 
755                 GetLocalResourceObject - should not prefix resources with 'Resources.'.
756
757 2007-04-01  Konstantin Triger <kostat@mainsoft.com>
758
759         * BrowserCapabilities.cs: Default Browser (userAgent) property to 'Unknown'.
760
761 2007-03-29  Vladimir Krasnov  <vladimirk@mainsoft.com>
762
763         * HttpContext.cs: timeout methods removed from TARGET_J2EE compilation
764         * HttpContext.jvm.cs: added stubs for timeout methods
765
766 2007-03-28 Igor Zelmanovich <igorz@mainsoft.com>
767
768         * StaticSiteMapProvider.cs:
769         GetChildNodes does not return null but SiteMapNodeCollection.EmptyCollection.
770
771 2007-03-28  Konstantin Triger <kostat@mainsoft.com>
772
773         * BrowserCapabilities.cs: 
774                 1. refactoring.
775                 2. Break recoursion in case 'browser' capability is not found.
776
777 2007-03-28 Igor Zelmanovich <igorz@mainsoft.com>
778
779         * SiteMapNode.cs: fixed GetAllNodes method.
780
781 2007-03-27 Igor Zelmanovich <igorz@mainsoft.com>
782
783         * XmlSiteMapProvider.cs: fixed:
784         resolve app-relative path from config such siteMapFile="~/Web.sitemap".
785
786 2007-03-27 Igor Zelmanovich <igorz@mainsoft.com>
787
788         * SiteMapNode.cs:
789         * XmlSiteMapProvider.cs: fixed: Localize Site-Map Data.
790
791 2007-03-26  Konstantin Triger <kostat@mainsoft.com>
792
793         * HttpRequest.cs: correctly handle null and empty virtual pathes in MapPath.
794
795 2007-03-25  Vladimir Krasnov  <vladimirk@mainsoft.com>
796
797         * HttpContext.cs: AppGlobalResourcesAssembly static member stored in
798         AppDomain for TARGET_JVM
799
800 2007-03-24  Marek Habersack  <mhabersack@novell.com>
801
802         * HttpRuntime.cs: use ICalls.GetMachineConfigPath instead of
803         opening the machine.config file and getting its path.
804
805         * CapabilitiesLoader.cs: use HttpRuntime.MachineConfigurationDirectory 
806         instead of opening the machine config file and getting its path.
807
808 2007-03-23  Konstantin Triger <kostat@mainsoft.com>
809
810         * HttpApplication.cs: complete the pipeline in case of exception during
811                 InitOnce() to avoid a deadlock.
812
813 2007-03-22  Adar Wesley <adarw@mainsoft.com>
814
815         * BrowserCapabilities.cs: Added implementation for all capabilities.
816         changed implementation to throw when capability is not defined in browscaps.ini.
817
818         * CapabilitiesLoader.cs: fixed parent resultion bug.  added internal support for
819         browser and browsers capabilities.
820
821 2007-03-21  Vladimir Krasnov  <vladimirk@mainsoft.com>
822
823         * HttpContext.jvm.cs, HttpRuntime.cs: cached instance of HttpRuntime
824         in context in addition to AppDomain
825
826 2007-03-21  Vladimir Krasnov  <vladimirk@mainsoft.com>
827         
828         * HttpCookie.cs, HttpCookieCollection.cs: used OrdinalIgnoreCase
829         StringComparer for cookies and values collections 
830
831 2007-03-21  Vladimir Krasnov  <vladimirk@mainsoft.com>
832
833         * HttpApplication.cs: refactred handlers configuration section as
834         member of class
835
836 2007-03-20  Marek Habersack  <mhabersack@novell.com>
837
838         * HttpRequest.cs: implement AppRelativeCurrentExecutionFilePath.
839
840 2007-03-18 Igor Zelmanovich <igorz@mainsoft.com>
841
842         * VirtualPathUtility.cs: fixed GetFileName(), GetExtension() methods.
843
844 2007-03-18 Igor Zelmanovich <igorz@mainsoft.com>
845
846         * VirtualPathUtility.cs: fixed GetDirectory() method.
847
848 2007-03-15  Marek Habersack  <mhabersack@novell.com>
849
850         * XmlSiteMapProvider.cs: handle cases with no default for the
851         reskey properly.
852
853 2007-03-15 Igor Zelmanovich <igorz@mainsoft.com>
854
855         * HttpRequest.cs: fixed MapPath () method.
856
857 2007-03-15 Igor Zelmanovich <igorz@mainsoft.com>
858
859         * VirtualPathUtility.cs: fixed ToAbsolute() method.
860
861 2007-03-15 Igor Zelmanovich <igorz@mainsoft.com>
862
863         * VirtualPathUtility.cs: refactoring: class is shared with 1.x.
864
865 2007-03-15  Marek Habersack  <mhabersack@novell.com>
866
867         * XmlSiteMapProvider.cs: add support for the enableLocalization
868         <siteMap> attribute and handle per-node localization resource
869         strings for explicit localization as well as the resourceKey
870         attribute to <siteMapNode> for implicit localization (closes bug
871         #81103).
872
873         * SiteMapNode.cs: add support for the resource keys and foreign
874         attributes.
875         Implement GetImplicitResourceString.
876         Add support for translation of the Title and Description
877         attributes (closes bug #81103) as well as foreign attributes.
878
879 2007-03-15 Igor Zelmanovich <igorz@mainsoft.com>
880
881         * VirtualPathUtility.cs: fixed: works properly with appRelative path.
882
883 2007-03-13  Marek Habersack  <mhabersack@novell.com>
884
885         * HttpApplicationFactory.cs: resources compiler no longer accepts
886         a boolean parameter.
887
888         * HttpRuntime.cs: Do not compile local resources here anymore.
889
890         * HttpContext.cs: if App_LocalResources assembly corresponding to
891         the virtual path is not found, compile it here.
892         Look up resources in the "Resources." class path.
893
894 2007-03-13 Igor Zelmanovich <igorz@mainsoft.com>
895
896         * HttpUtility.cs: fixed HttpUtillity.HtmlAttributeEncode
897          '<' char must be encoded.      
898
899 2007-03-12  Vladimir Krasnov  <vladimirk@mainsoft.com>
900
901         * CapabilitiesLoader.cs: added TARGET_JVM part of static members,
902         added caching to GetCapabilities method for performance improvement
903
904 2007-03-12  Marek Habersack  <mhabersack@novell.com>
905
906         * XmlSiteMapProvider.cs: support custom site map providers. Fixes
907         bug #81115
908
909 2007-03-06  Vladimir Krasnov  <vladimirk@mainsoft.com>
910
911         * StaticFileHandler.cs: fixed ProcessRequest TARGET_JVM path,
912         if_modified_since fixed in WAR mode
913
914 2007-02-25  Vladimir Krasnov  <vladimirk@mainsoft.com>
915
916         * HttpRequest.jvm.cs: fixed LoadWwwForm, should distinguish between
917         query string and form values
918
919 2007-02-21  Marek Habersack  <grendello@gmail.com>
920
921         * HttpRuntime.cs: BinDirectory returns the bin directory
922         determined by the application host on the application startup.
923
924         * HttpApplicationFactory.cs: Watch the bin directory determined by
925         the application host on the application startup.
926
927 2007-02-20  Vladimir Krasnov  <vladimirk@mainsoft.com>
928
929         * HttpRequest.cs: fixed MapPath, removed TARGET_J2EE block that checks
930         war root symbol
931
932 2007-02-19  Marek Habersack  <grendello@gmail.com>
933
934         * HttpContext.cs: Make sure all the global resource objects are
935         sought in the Resources. namespace.
936
937 2007-02-18  Eyal Alaluf  <eyala@mainsoft.com>
938
939         * HttpContext.jvm.cs, HttpRequest.jvm.cs: Adapt for tunning under test
940           harness where we don't have a SevletRequest/Response.
941
942 2007-02-13  Vladimir Krasnov  <vladimirk@mainsoft.com>
943
944         * HttpApplication.cs: fixed InitOnce, httpModules section is global and
945         taken from the root web.config
946
947 2007-02-12  Robert Jordan  <robertj@gmx.net>
948
949         * HttpResponseStream.cs (BlockManager.EnsureCapacity):
950         don't call Marshal.ReAllocHGlobal on NULL because, unlike
951         realloc(3) and g_realloc, it doesn't support this semantic.
952         Fixes a part of bug #77075.
953
954 2007-02-12  Marek Habersack  <grendello@gmail.com>
955
956         * HttpRuntime.cs: support for preservation (.compiled) assembly
957         mapping files.
958
959 2007-02-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
960
961         * HttpApplication.cs: added exception pass through from processAction
962         in j2ee portal
963
964 2007-02-02  Marek Habersack  <grendello@gmail.com>
965
966         * HttpApplicationFactory.cs: make code a bit more compact.
967
968 2007-01-30  Vladimir Krasnov  <vladimirk@mainsoft.com>
969
970         * HttpResponse.cs: fixed TARGET_J2EE part of Redirect for portlet
971
972 2007-01-30  Adar Wesley <adarw@mainsoft.com>
973
974         * VirtualPathUtility.cs: fixed exceptions thrown from Combine
975         so they are compatible with MS.
976
977 2007-01-25  Marek Habersack  <grendello@gmail.com>
978
979         * HttpApplication.cs: Make sure that a specific culture is used
980         when setting the current thread culture.
981
982 2007-01-21 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
983
984         * HttpServerUtility.cs: implement Execute/Transfer overloads that take
985         an IHttpHandler. Still missing the documented check for page IsCallback.
986         Also, on MS when i derive from Page for my IHttpHandler, it works fine,
987         but if I just implement IHttpHandler, an exception is thrown. This needs
988         to be researched but, by now, the IHttpHandler version works on mono
989         and fails on MS.
990
991 2007-01-20  Miguel de Icaza  <miguel@novell.com>
992
993         * SiteMapNode.cs (GetExplicitResourceString): implement.
994
995         * HttpContext.cs (GetGlobalResourceObject): remove unused variable.
996
997         * StaticFileHandler.cs (ProcessRequest): remove unused variable.
998
999         * HttpApplication.cs (ProcessError): Remove unused variable. 
1000
1001         * HttpServerUtility.cs (Execute): Add new overload and rename
1002         parameter to match MS (as they are normative).
1003
1004 2007-01-17  Marek Habersack  <grendello@gmail.com>
1005
1006         * HttpApplicationFactory.cs: Implement code and framework to
1007         enable automatic application restarts on changes to folders/files
1008         in a generic way. Patch from Damien Churchill
1009         <damien.churchill@ukplc.net>, thanks!
1010         Make sure the top-level assemblies (App_Code, resources) are not
1011         referenced twice should a compilation error occur.
1012
1013 2007-01-16  Atsushi Enomoto  <atsushi@ximian.com>
1014
1015         * TraceData.cs : page could be null. Fixed bug #80480.
1016
1017 2007-01-15  Ilya Kharmatsky   <ilya -at- decode-systems.com>
1018
1019         * VirtualPathUtility.cs: fixed bugs in methods - GetDirectory and
1020         GetExtension, according to the VirtualPathUtilityTest
1021
1022 2007-01-15  Vladimir Krasnov  <vladimirk@mainsoft.com>
1023
1024         * SiteMapProvider.cs: fixed IsAccessibleToUser, true if
1025         SecurityTrimmingEnabled not enabled, true if Roles exists on node and
1026         rolename is '*'
1027
1028 2007-01-14  Eyal Alaluf  <eyala@mainsoft.com>
1029
1030         * HttpRequest.jvm.cs, HttpContext.jvm.cs: Added TARGET_J2EE specific files.
1031         * HttpContext.cs, HttpResponse.cs, HttpRequest.cs, HttpCookie.cs:
1032           Add J2EE Portal support for TARGET_J2EE.
1033
1034 2007-01-04  Vladimir Krasnov  <vladimirk@mainsoft.com>
1035
1036         * HttpRequest.cs: fixed IsLocal, should check all ip addresses of host
1037
1038 2007-01-05  Marek Habersack  <grendello@gmail.com>
1039
1040         * HttpApplicationFactory.cs: Use the new app resources compiler.
1041
1042         * HttpRuntime.cs: Use the new app resources compiler.
1043
1044         * HttpContext.cs: Reimplement the GetGlobalResourceObject
1045         methods, implement the GetLocalResourceObject methods.
1046
1047         * HttpResponse.cs: Implement the HeaderEncoding property.
1048
1049 2007-01-04  Andreia Gaita  <avidigal@novell.com>
1050
1051         * HttpRuntime.cs: Add check for NET_2_0 when initializing
1052         WebConfigurationManager, build failing on 1.1 profile
1053         
1054 2007-01-04  Vladimir Krasnov  <vladimirk@mainsoft.com>
1055
1056         * HttpApplicationFactory.cs, HttpRuntime.cs: WebConfigurationManager
1057         should be initializaed before any possible access to it
1058
1059 2007-01-04  Vladimir Krasnov  <vladimirk@mainsoft.com>
1060
1061         * HttpRequest.cs: fixed Path property, add call of
1062         Uri.UnescapeDataString in net_2_0
1063
1064 2007-01-04  Vladimir Krasnov  <vladimirk@mainsoft.com>
1065
1066         * HttpApplication.cs: fixed PreStart, should not set thread culture
1067         to invariant
1068
1069 2007-01-03  Vladimir Krasnov  <vladimirk@mainsoft.com>
1070
1071         * HttpRequest.cs: fixed jvm version of MakeInputStream, should not
1072         throw exception on zero content length
1073
1074 2007-01-03  Vladimir Krasnov  <vladimirk@mainsoft.com>
1075
1076         * SiteMap.cs, SiteMapNodeCollection.cs: TARGET_JVM of static members
1077
1078 2006-12-20  Marek Habersack  <grendello@gmail.com>
1079
1080         * HttpContext.cs: add internal setter for the Profile property.
1081
1082         * HttpApplicationFactory.cs: Added a shortcut version of
1083         InvokeSessionEnd for use from the 2.0 SessionState code.
1084
1085 2006-12-18  Vladimir Krasnov  <vladimirk@mainsoft.com>
1086
1087         * HttpRequest.cs: fixed Path property, returns unescaped url
1088
1089 2006-12-16  Marek Habersack  <grendello@gmail.com>
1090
1091         * HttpRequest.cs: Fix for http exception during first visit to an
1092         application when the visit path is not the app's virtual root.
1093
1094 2006-12-12 Igor Zelmanovich <igorz@mainsoft.com>
1095
1096         * SiteMapProvider.cs.cs:
1097         * XmlSiteMapProvider.cs: fixed: because more then one node with empty url
1098         is allowed unique key is generated for each node.               
1099
1100 2006-12-12 Igor Zelmanovich <igorz@mainsoft.com>
1101
1102         * SiteMapProvider.cs.cs: fixed: IsAccessibleToUser resolvs relative url.
1103         * StaticSiteMapProvider.cs: fixed: RemoveNode   
1104
1105 2006-12-12 Igor Zelmanovich <igorz@mainsoft.com>
1106
1107         * VirtualPathUtility.cs: fixed: Combine(), ToAbsolute() methods.
1108
1109 2006-12-12 Igor Zelmanovich <igorz@mainsoft.com>
1110
1111         * VirtualPathUtility.cs: fixed: IsAppRelative() method.
1112
1113 2006-12-07  Vladimir Krasnov  <vladimirk@mainsoft.com>
1114
1115         * BrowserCapabilities.cs: fixed MSDomVersion property
1116
1117 2006-12-05 Igor Zelmanovich <igorz@mainsoft.com>
1118
1119         * VirtualPathUtility.cs: fixed: ToAbsolute() method.
1120
1121 2006-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1122
1123         * HttpRequest.cs: call MapPath on the HttpWorkerRequest so that if
1124         FilePath is changed we get the new physical path, not the one of the
1125         original request. Fixes bug #80152.
1126
1127 2006-12-03 Igor Zelmanovich <igorz@mainsoft.com>
1128
1129         * HttpWriter.cs: reverted r38835.
1130
1131 2006-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1132
1133         * HttpWriter.cs: remove unused WriteBytes method.
1134
1135 2006-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1136
1137         * HttpRequest.cs: physical path comes from GetFilePathTranslated to
1138         avoid trimming in HttpRequest.MapPath.
1139
1140 2006-11-29  Marek Habersack  <grendello@gmail.com>
1141
1142         * HttpApplication.cs: Make use of the handler stack implemented
1143         in HttpContext.
1144
1145         * HttpCacheVaryByHeaders.cs: Optionally omit the vary:* header
1146         value in the 2.0 profile.
1147
1148         * HttpServerUtility.cs: Make use of the handler stack implemented
1149         in HttpContext.
1150         Implemented the UrlToken{Encode,Decode} 2.0 methods.
1151
1152         * HttpResponse.cs: Implemented the IsRequestBeingRedirected
1153         property.
1154
1155         * HttpContext.cs: Implemented the CurrentHandler and PreviousHandler
1156         methods, together with helper functions to handle the handler
1157         stack.
1158         GetSection(string) should be present only in the 2.0 profile.
1159
1160         * HttpCachePolicy.cs: implement the SetNoServerCaching,
1161         SetNoStore, SetNoTransforms, SetValidUntilExpires and
1162         SetOmitVaryStar methods.
1163         Added code to set the no-store and no-transform options of the
1164         Cache-Control header.
1165
1166 2006-11-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1167
1168         * HttpServerUtility.cs: don't prepend extra '?' when the original url
1169         already has a query string. Fixes bug #80042.
1170
1171 2006-11-24  Miguel de Icaza  <miguel@novell.com>
1172
1173         * HttpApplicationFactory.cs (InitType): Also look for "Web.Config"
1174         casing here.
1175
1176 2006-11-20  Marek Habersack  <grendello@gmail.com>
1177
1178         * HttpApplication.cs: Added support for automatic detection of
1179         user's preferred language.
1180
1181 2006-11-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1182
1183         * HttpApplication.cs: don't leak the directory name for non-local
1184         connections.
1185
1186 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1187
1188         * CapabilitiesLoader.cs: made the hasstable that contains the properties
1189         for the brower case insensitive. Fixes bug #79795.
1190
1191 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1192
1193         * HttpResponse.cs: fix typo that prevented Server.Execute from restoring
1194         the initial output stream used. Closes bug #79916.
1195
1196 2006-11-12  Marek Habersack  <grendello@gmail.com>
1197
1198         * HttpContext.cs: Implemented the 2.0 RewritePath overloads.
1199
1200 2006-11-08  Marek Habersack  <grendello@gmail.com>
1201
1202         * HttpRuntime.cs: Moved the resource compiler results handling to
1203         the resource compiler itself.
1204
1205         * HttpApplicationFactory.cs: Add invocation of the App_Code
1206         compiler. Moved the resource compiler results handling to the
1207         resource compiler itself. Removed compilation of the local
1208         resources from here - it should be done only when a request
1209         determines that the App_LocalResources directory exists.
1210         
1211
1212 2006-11-07  Andrew Skiba  <andrews@mainsoft.com>
1213
1214         * HttpRuntime.cs: TARGET_JVM ifdef
1215
1216 2006-11-05  Andrew Skiba  <andrews@mainsoft.com>
1217
1218         * SiteMapProvider.cs: don't iterate through Roles when they are null.
1219
1220 2006-11-05  Vladimir Krasnov  <vladimirk@mainsoft.com>
1221
1222         * HttpContext.cs: implemented Profile property
1223
1224 2006-11-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1225
1226         * HttpApplication.cs: the unexpected 'tick' exceptions can be an abort
1227         exception due to timeout or end of the request.
1228
1229 2006-10-18  Marek Habersack  <grendello@gmail.com>
1230
1231         * HttpRuntime.cs: add support for compilation of local resources
1232         at the start of request.
1233
1234         * HttpContext.cs: implement the GetGlobalResourceObject APIs
1235
1236         * HttpApplicationFactory.cs: include the bootstrap code for the
1237         global/local resources compiler.
1238
1239 2006-10-09  Marek Habersack  <grendello@gmail.com>
1240
1241         * HttpApplication.cs: change the pipeline order for ASP.NET 2.0 to
1242         comply with the Microsoft documentation.
1243
1244 2006-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1245
1246         * HttpApplication.cs: this makes the test run successfully. Still need
1247         to figure out why that is null.
1248
1249 2006-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1250
1251         * HttpApplication.cs: band-aid patch to help debugging hang running 2.0
1252         tests.
1253
1254 2006-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1255
1256         * HttpServerUtility.cs: 1.1 Execute(s) preserves the query string.
1257         Thanks to Hubert Fongarnand. Fixes bug #79506.
1258
1259 2006-09-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1260
1261         * QueueManager.cs: if disposed, always return null for next request.
1262         * HttpRuntime.cs: dispose the queue manager when shutting down the
1263         domain. This will close pending requests with a 503.
1264         * HttpApplication.cs: release the handler before marking the request
1265         as completed. If in PipelineDone context is null, use
1266         HttpContext.Current. Fixes some of those "Tick detected an unhandled
1267         exception" errors printed out.
1268
1269 2006-09-11  Andrew Skiba <andrews@mainsoft.com>
1270
1271         * XmlSiteMapProvider.cs: ifdef TARGET_JVM
1272
1273 2006-09-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
1274
1275         * HttpWriter.cs: fixed WriteLine to work correctly in utf-16 encoding
1276
1277 2006-09-08  Robert Jordan  <robertj@gmx.net>
1278
1279         * TraceData.cs: fixed NRE if `sizes' is null, which may happen
1280         if a page was unable to save its viewstate and size.
1281
1282 2006-09-07 Andrew Skiba <andrews@mainsoft.com>
1283
1284         * HttpApplicationFactory.cs: ifdef the previous fix with TARGET_JVM to
1285         pass compilation.
1286
1287 2006-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1288
1289         * HttpApplicationFactory.cs: watch web.config too. Fixes bug #78356.
1290
1291 2006-09-05  Konstantin Triger <kostat@mainsoft.com>
1292
1293         * SiteMapProvider.cs: consider authorization section for access decision.
1294
1295 2006-09-04 Igor Zelmanovich <igorz@mainsoft.com>
1296
1297         * HttpUtility.cs: fixed UrlPathEncode method.
1298
1299 2006-08-31      Boris Kirzner <borisk@mainsoft.com>
1300
1301         * VirtualPathUtility.cs : pass parameters in correct order.
1302
1303 2006-08-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1304
1305         * HttpApplicationFactory.cs: handle the 'renamed' event too.
1306
1307 2006-08-08  Vladimir Krasnov  <vladimirk@mainsoft.com>
1308
1309         * HttpApplication.cs: fixed BeginProcessRequest, TARGET_JVM part
1310         merged
1311
1312 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1313
1314         * HttpApplication.cs: don't leak local path names when a file is not
1315         found.
1316
1317 2006-06-21 Konstantin Triger <kostat@mainsoft.com>
1318
1319         * XmlSiteMapProvider.cs: if the url is relative, make it relative to the
1320                 context root.
1321
1322 2006-06-07 Juraj Skripsky <js@hotfeet.ch>
1323
1324         * HttpException.cs (GetHtmlizedErrorMessage): Beautify compilation error
1325         page by showing multiple errors on separate lines.
1326
1327 2006-06-05 Juraj Skripsky <js@hotfeet.ch>
1328
1329         * HttpRequest.cs: simplify code around uri_builder (and rename 
1330         to url_components). Move storage of query_string into 
1331         uri_builder.Query and initialize it lazily using 
1332         worker_request.GetQueryStringRawBytes() or GetQueryString().
1333         (QueryString): Use HttpUtility.ParseQueryString instead of 
1334         duplicating its functionality.
1335
1336 2006-06-05 Juraj Skripsky <js@hotfeet.ch>
1337
1338         * HttpUtility.cs (ParseQueryString): move core of
1339         ParseQueryString into internal method to make it available to 
1340         HttpRequest.
1341
1342 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1343
1344         * HttpApplication.cs: assign the context when run from a thread not in
1345         the threadpool. Patch by Andrew Skiba. Fixes bug #78583.
1346
1347 2006-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1348
1349         * HttpApplication.cs: context.Handler does not change for
1350         HttpServerUtility.Execute, so moved setting it into the pipeline instead
1351         of GetHandler.
1352
1353 2006-05-17  Kazuki Oikawa  <kazuki@panicode.com>
1354
1355         * HttpUtility.cs: implemented ParseQueryString
1356
1357 2006-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1358
1359         * HttpUtility.cs: get rid of TryParseHexa.
1360
1361 2006-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1362
1363         * HttpApplicationFactory.cs: make sure that the application start event
1364         is run before any request is processed.
1365
1366 2006-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1367
1368         * HttpServerUtility.cs: don't reset the query string in Execute() when
1369         the path does not contain it and we have one from the previous request.
1370         Fixes bug #78177.
1371
1372 2006-04-20 Andrew Skiba <andrews@mainsoft.com>
1373
1374         * SiteMapNode.cs: fix few null reference exceptions
1375
1376 2006-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1377
1378         * HttpResponse.cs:
1379         (TransmitFile): make sure we can read the file before buffering it.
1380
1381 2006-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1382
1383         * HttpApplicationFactory.cs: don't fail on events that are not
1384         EventHandlers. Patch by Matthew Metnetsky.
1385
1386 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
1387
1388         * HttpRequest.cs: remove code duplication (see UrlUtils.Combine)
1389
1390 2006-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1391
1392         * HttpUtility.cs: allow "%%" as a escape for '%' and ignore invalid
1393         hexadecimal characters. Based on a patch by Vladimir Krasnov.
1394
1395 2006-04-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1396
1397         * HttpWriter.cs: only keep the byte buffer around if its size is less
1398         than or equals to 32K.
1399
1400 2006-04-08  Miguel de Icaza  <miguel@novell.com>
1401
1402         * HttpWriter.cs (Write): Added missing check for null string as
1403         something is now calling it like that. 
1404
1405 2006-03-27 Joshua Tauberer <tauberer@for.net>
1406
1407         * HttpWriter.cs: Avoid creation of a byte[] on each Write()
1408           by reusing and resizing a private array.
1409
1410 2006-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1411
1412         * HttpRequest.cs: the field content_length can be < 0 and then we try to
1413         read when there's no data and block.
1414
1415 2006-04-05 Andrew Skiba <andrews@mainsoft.com>
1416
1417         * HttpUtility: UrlEncode and UrlEncodeUnicode logic unified, behaviour
1418         fixed to match dotnet and http://rfc.net/rfc1738.html
1419
1420 2006-03-30 Konstantin Triger <kostat@mainsoft.com>
1421
1422         * HttpApplicationFactory.cs: refactoring: remove static modifier from session_end field.
1423         Does not check the behavior as HttpApplicationFactory is a singleton.
1424
1425 2006-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1426
1427         * HttpUtility.cs: UrlDecode does not throw if an hexadecimal sequence
1428         fails to parse as an integer. Fixes bug #77931.
1429
1430 2006-03-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1431
1432         * HttpResponse.cs: more fixes for CacheControl: MS allows to set it to
1433         null and "" and the getter value does not completely depend on Cache.
1434
1435         * HttpRequest.cs: fail validating the request input if there's a control
1436         character after a '<'. Fixes XSS_Null test.
1437
1438         All System.Web tests pass again.
1439 2006-03-22  Robert Jordan  <robertj@gmx.net>
1440
1441         * HttpCachePolicy.cs: fix the Cache-control header. Fixes bug #77826.
1442
1443 2006-03-22  Chris Toshok  <toshok@ximian.com>
1444
1445         * HttpApplication.cs: fix typo - AuthenticateRequest =>
1446         PostAuthenticateRequest.
1447
1448 2006-03-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1449
1450         * ChangeLog:
1451         * HttpRequest.cs: revert part of r58229.
1452
1453 2006-03-21  Vladimir Krasnov  <vladimirk@mainsoft.com>
1454
1455         * ServerVariablesCollection.cs: fixed "URL" variable, it should not
1456         return path info
1457
1458 2006-03-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1459
1460         * HttpRequest.cs:
1461         (CheckString): style and don't index the string twice per iteration.
1462
1463 2006-03-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1464
1465         * TempFileStream.cs: a FileStream that removes the file once
1466         it is disposed.
1467         * HttpRequest.cs: support for writing request data to on-disk
1468         files if the request is longer than the threshold specified in the
1469         configuration files. In mono this will work for 1.x and 2.0, while with
1470         MS this only works for 2.0.
1471
1472 2006-03-18  Robert Jordan  <robertj@gmx.net>
1473
1474         * HttpCachePolicy.cs: expose the validation callbacks.
1475         Fixes bug #77825.
1476
1477 2006-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1478
1479         * HttpApplication.cs: fix upper bound when iterating through the module
1480         collection.
1481
1482 2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1483
1484         * HttpRequest.cs: use the provided content encoding to decode the file
1485         name. Fixes bug #77714.
1486
1487 2006-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1488
1489         * HttpResponse.cs: allow setting a Cache-Control header through
1490         AppendHeader. Fixes bug #77775.
1491
1492 2006-03-15  Chris Toshok  <toshok@ximian.com>
1493
1494         * XmlSiteMapProvider.cs (RemoveProvider): oops, no override.
1495
1496         * StaticSiteMapProvider.cs (AddNode): call MapUrl.
1497         (FindSiteMapNode): same.
1498
1499 2006-03-15  Chris Toshok  <toshok@ximian.com>
1500
1501         * SiteMapProvider.cs (ReturnNodeIfAccessible): new function,
1502         either return the node or throw InvalidOperationException.
1503         (get_RootNode): use ReturnNodeIfAccessible.
1504         (IsAccessibleToUser): flesh this out a bit, and add comments on
1505         how the rest of the implementation should be written.
1506         (FindSiteMapNodeFromKey): implement to match MS behavior, docs be
1507         damned.
1508
1509         * XmlSiteMapProvider.cs: corcompare work.
1510
1511         * StaticSiteMapProvider.cs (AddNode): Add a check to see if node
1512         == RootNode.  Not sure if this is actually correct, but it's
1513         required given our implementation of XmlSiteMapProvider.  without
1514         this check, we end up assigning RootNode.ParentNode == RootNode,
1515         which makes for an infinite loop when we traverse up the tree.
1516
1517 2006-03-15  Vladimir Krasnov  <vladimirk@mainsoft.com>
1518
1519         * HttpRequest.cs: fixed MakeInputStream method under TARGET_JVM,
1520         fixed if content lenght value is less that byte received
1521
1522 2006-03-10  Chris Toshok  <toshok@ximian.com>
1523
1524         * StaticSiteMapProvider.cs (UrlToNode): this entire file is #if
1525         NET_2_0, no need to embed another #if NET_2_0.
1526
1527         * SiteMapProvider.cs (AddNode): throw NotImplementedException.
1528         (FindSiteMapNode): with null context, return null.  don't throw
1529         ArgumentNullException.
1530         (RemoveNode): throw NotImplementedException.
1531         (IsAccessibleToUser): check arguments to make test pass.  still
1532         lacking the method's actual functionality.
1533         (ResourceKey): add missing property.
1534
1535 2006-03-10  Chris Toshok  <toshok@ximian.com>
1536
1537         * HttpRequest.cs (CheckString): add back in the check for \xff1c
1538         that i took out.  oops.
1539
1540 2006-03-10  Chris Toshok  <toshok@ximian.com>
1541
1542         * HttpRequest.cs (CheckString): implement as described in
1543         Shackow's "Professional ASP.NET 2.0 Security, Membership, and Role
1544         Management", page 310.
1545
1546 2006-03-08  Chris Toshok  <toshok@ximian.com>
1547
1548         * SiteMap.cs: clean this up a bunch.  use the SiteMapSection to
1549         initialize the provider collection, and don't add a provider.
1550         web.config handles that for us.  Also, don't always return true
1551         from get_Enabled.
1552
1553 2006-02-28  Chris Toshok  <toshok@ximian.com>
1554
1555         * HttpCookieMode.cs: corcompare work.
1556
1557         * ProcessShutdownReason.cs: same.
1558
1559         * SiteMapNodeCollection.cs: same.
1560
1561         * SiteMapNode.cs: same.
1562
1563         * SiteMapProvider.cs: same.
1564
1565         * HttpCacheRevalidation.cs: same.
1566
1567         * HttpCacheability.cs: same.
1568
1569         * StaticSiteMapProvider.cs: same.
1570
1571         * HttpValidationStatus.cs: same.
1572         
1573 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1574
1575         * DefaultHttpHandler.cs: New file.
1576
1577 2006-02-01  Chris Toshok  <toshok@ximian.com>
1578
1579         * SiteMap.cs: use GetSection instead of GetWebApplicationSection.
1580
1581 2006-02-01  Chris Toshok  <toshok@ximian.com>
1582
1583         * HttpApplication.cs: CONFIGURATION_2_0 => NET_2_0, and use
1584         GetSection instead of GetWebApplicationSection.
1585
1586         * HttpApplication.jvm.cs: same.
1587         
1588         * HttpApplicationFactory.cs: same.
1589
1590         * HttpContext.cs: same.
1591
1592         * CapabilitiesLoader.cs: same.
1593
1594         * QueueManager.cs: same.
1595
1596         * HttpRuntime.cs: same.
1597
1598         * TraceManager.cs: same.
1599
1600         * HttpRequest.cs: same.
1601         
1602 2006-01-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1603
1604         * HttpApplication.cs: keep any exception that happens during
1605         initialization.
1606
1607 2006-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1608
1609         * HttpDataTransferMode.cs: Removed file.
1610         * HttpRequestPriority.cs: Removed file.
1611         * ApplicationShutdownReason.cs:
1612         * SiteMap.cs:
1613         * HttpRuntime.cs:
1614         * HttpApplication.cs: minor class status fixes.
1615
1616 2006-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1617
1618         * VirtualPathUtility.cs: done with all the not implemented methods.
1619
1620 2006-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1621
1622         * HttpResponse.cs: use UInt64.Parse for content length. In AppendHeader,
1623         set cache_control through the property to update the cachebility
1624         accordingly. When using the cached headers, don't add again all the
1625         headers to that collection.
1626         * HttpCacheVaryByParams.cs: if there are no params, return null.
1627         Otherwise we get an empty 'Vary' header.
1628
1629 2006-01-25  Chris Toshok  <toshok@ximian.com>
1630
1631         * HttpApplication.cs (Start): wrap InitOnce in a try/catch block,
1632         and if there's a configuration error, output it and end things
1633         immediately.
1634
1635 2006-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1636
1637         * HttpRequest.cs: fixed the file path when RewritePath is used. Also
1638         add the PathInfo to the Url. Fixes bug #77291.
1639
1640 2006-01-22  Chris Toshok  <toshok@ximian.com>
1641
1642         * HttpRequest.cs (ReadBoundary): remove two unused variables to
1643         quiet mcs.
1644         (IsBoundary): remove unused method.
1645
1646         * MimeTypes.cs (.cctor): use a 2.0 friendly form of the Hashtable
1647         ctor to silence a warning.
1648
1649         * HttpCacheVaryByHeaders.cs (.ctor): same.
1650
1651         * HttpCacheVaryByParams.cs (.ctor): same.
1652
1653         * StaticSiteMapProvider.cs (UrlToNode): same.
1654
1655 2006-01-22  Konstantin Triger <kostat@mainsoft.com>
1656
1657         * HttpWorkerRequest.cs: ensure case insensitivity in header search.
1658
1659 2006-01-19  Konstantin Triger <kostat@mainsoft.com>
1660
1661         * HttpApplication.jvm.cs: merge HttpApplication.cs changes.
1662
1663 2006-01-17  Chris Toshok  <toshok@ximian.com>
1664
1665         * CapabilitiesLoader.cs (Init): use WebConfigurationManager in the
1666         CONFIGURATION_2_0 case.
1667
1668         * HttpRuntime.cs (MachineConfigurationDirectory): same.
1669
1670 2006-01-16  Chris Toshok  <toshok@ximian.com>
1671
1672         * HttpApplicationFactory.cs: call WebConfigurationManager.Init in
1673         the CONFIGURATION_2_0 case.
1674
1675 2006-01-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1676
1677         * HttpWriter.cs: made Write (char) less memory hungry. Thanks to Mike
1678         Glenn for pointing this out.
1679
1680 2006-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1681
1682         * HttpApplicationFactory.cs: fix condition for ContextAvailable.
1683
1684 2006-01-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
1685
1686         * HttpResponse.cs: removed TARGET_JVM block from End
1687         * GetJavaTextReader: Merged TARGET_JVM block from LoadFile
1688         to GetJavaTextReader
1689
1690 2006-01-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
1691
1692         * HttpRequest.cs: removed TARGET_JVM block from MapPath
1693
1694 2006-01-11  Vladimir Krasnov  <vladimirk@mainsoft.com>
1695
1696         * HttpRequest.cs: little fix in MapPath(), virtualPath.Replace
1697         return value wasnt stored.
1698
1699 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1700
1701         * HttpResponse.cs: typo in comment.
1702
1703         * HttpApplicationFactory.cs:
1704         * HttpApplication.cs: don't discard the application used for running the
1705         Application_Start event to allow for Redirect/Transfer to be used. Fail
1706         to get the request/response from the application object as MS does (it
1707         can still be retrieved through HttpContext.Current.blah). Fixes
1708         bug #77162.
1709
1710 2006-01-09  Vladimir Krasnov <vladimirk@mainsoft.com>
1711
1712         * CapabilitiesLoader.cs: Merged TARGET_JVM parts in LoadFile
1713         from /main/9
1714         * HttpException.cs: Merged TARGET_JVM parts in GetHtmlizedErrorMessage
1715         from /main/13
1716         * HttpRequest.cs: Merged TARGET_JVM parts in MapPath from /main/29
1717         * HttpResponse.cs: Merged TARGET_JVM parts in End() from /main/30
1718         * StaticFileHandler.cs: Merged TARGET_JVM parts in ProcessRequest
1719         from /main/7
1720
1721 2006-01-08  Konstantin Triger <kostat@mainsoft.com>
1722
1723         * BrowserCapabilities.cs, HttpBrowserCapabilities.cs,
1724         HttpResponseStream.cs: TARGET_JVM changes to let the compilation
1725         pass with csc 1.1.
1726
1727 2006-01-04  Chris Toshok  <toshok@ximian.com>
1728
1729         * HttpContext.cs (IsCustomErrorEnabled): add CONFIGURATION_2_0
1730         code.  use a nasty 'using' hack to map the 2.0 CustomErrorsMode to
1731         the 1.x CustomErrorMode name.
1732         (IsDebuggingEnabled): add CONFIGURATION_2_0 code.
1733         (ConfigTimeout): add CONFIGURATION_2_0 code.
1734
1735         * HttpRequest.cs (MakeInputStream): add CONFIGURATION_2_0 code.
1736
1737         * HttpApplication.cs (RedirectCustomError): add CONFIGURATION_2_0
1738         code.
1739
1740         * SiteMap.c (Init): use
1741         WebConfigurationManager.GetWebApplicationSection.
1742
1743 2005-12-21  Miguel de Icaza  <miguel@novell.com>
1744
1745         * HttpUtility.cs (UrlEncodeUnicode): The generated encoding of
1746         unicode values must be in %XXXX format, not %XX sometimes.
1747
1748 2005-12-08 Robert Jordan  <robertj@gmx.net> 
1749
1750         * MimeTypes.cs: added entry for "jpg".
1751
1752 2005-12-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1753
1754         * HttpRequest.cs: only read up to content-length when provided. Patch
1755         by Peter Teichman.
1756
1757 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1758
1759         * HttpCookie.cs: fixed the set_Secure. Closes bug #76906.
1760
1761 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1762
1763         * HttpResponseStream.cs: flush the filter stream before closing.
1764         Patch by Geir Bergum that fixes bug #76753.
1765
1766 2005-11-28  Chris Toshok  <toshok@ximian.com>
1767
1768         * HttpContext.cs (Profile): remove the #if false from around this,
1769         as we now have the ProfileBase type.
1770         (GetConfig): add CONFIGURATION_2_0 version.
1771         (GetSection): add CONFIGURATION_2_0 version.
1772
1773 2005-11-28  Chris Toshok  <toshok@ximian.com>
1774
1775         * TraceManager.cs (..ctor): CONFIGURATION_2_0 work.
1776
1777         * QueueManager.cs (..ctor): CONFIGURATION_2_0 work.
1778
1779         * HttpRequest.cs (AnonymousID): add 2.0 property.
1780         (MakeInputStream): CONFIGURATION_2_0 work.
1781
1782         * HttpApplication.cs (InitOnce): change around the
1783         CONFIGURATION_2_0 stuff since we need additional Culture foo for
1784         it.
1785
1786 2005-11-27  Chris Toshok  <toshok@ximian.com>
1787
1788         * HttpApplication.cs (InitOnce): add Configuration_2.0 code.
1789         (GetHandler): same.
1790
1791 2005-11-26  Miguel de Icaza  <miguel@novell.com>
1792
1793         * HttpResponseStream.cs: Do not try to write zero bytes.
1794
1795 2005-11-24  Miguel de Icaza  <miguel@novell.com>
1796
1797         * WebROCollection.cs: Do not add an empty "=" to the query string
1798         if the key is empty or null.
1799
1800 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1801
1802         * WebROCollection.cs: override ToString and generate a query string from
1803         the key/value pairs. Fixes bug #76779.
1804
1805 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1806
1807         * HttpServerUtility.cs: prevent possible nullref in GetLastError().
1808
1809 2005-11-07  Jason Diamond  <jason@diamond.name>
1810
1811         * HttpRequest.cs: Don't throw exception when Content-Length doesn't
1812         match length of POSTed data. Also, allow charset parameter on
1813         Content-Type header when type is "application/x-www-form-urlencoded".
1814
1815 2005-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1816
1817         * WebROCollection.cs: add an ID for the collection. Page needs it.
1818
1819 2005-11-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1820
1821         * HttpRequest.cs: no need to allocate the buffer when all the content
1822         is preloaded.
1823
1824 2005-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1825
1826         * HttpApplication.cs: ignore TAE in ProcesssError. The Error event might
1827         redirect or transfer and that causes a TAE to be thrown. Fixes
1828         bug #76573.
1829
1830 2005-11-01  Chris Toshok  <toshok@ximian.com>
1831
1832         * VirtualPathUtility.cs: new (partial implementation) to get some
1833         MS provider examples compiling.
1834
1835 2005-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1836
1837         * HttpContext.cs: added a new internal overload for ClearError.
1838
1839 2005-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1840
1841         * HttpRuntime.cs: invoke callbacks on private items in the cache before 
1842         calling disposing the app. factory. This way we get notifications of
1843         removal for all sessions stored in the cache (InProc only).
1844
1845 2005-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1846
1847         * HttpResponseStream.cs: reworked buffering so that adjacents blocks are
1848         written at once. Also fix bug #76460.
1849
1850 2005-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1851
1852         * HttpResponseStream.cs: when allocating a chunk larger than the
1853         default chunk size, mark all the blocks as taken. Fixes bug
1854         #76452.
1855
1856 2005-10-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1857
1858         * HttpResponse.cs: use HaveFilter instead of Filter.
1859         * HttpResponseStream.cs: allocate chunks of the requested size
1860         when it's > 32KB. Fixes bug #76460.
1861
1862 2005-10-14  Sebastien Pouliot  <sebastien@ximian.com> 
1863
1864         * ServerVariablesCollection.cs: Added a demand for 
1865         SerializationFormatter on GetObjectData method (even if it's not 
1866         really required in this case as it remove warnings from gendarme.
1867
1868 2005-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1869
1870         * HttpResponse.cs:
1871         * HttpRequest.cs: buglets in error checking in Filter.
1872
1873 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1874
1875         * OutputFilterStream.cs: proxy class for response filters.
1876         * HttpResponse.cs: moved all the actual write operations into the
1877         response stream. Handle response filtering. When caching, get the
1878         actual length of the data, not the buffer length.
1879         * HttpApplication.cs: if there's no error, invoke the filters before
1880         updating the request cache.
1881         * HttpResponseStream.cs: new Filter property. SendChunkSize is moved
1882         here and now supports writing the final chunk. New method ApplyFilter
1883         that filters the existing buckets and replaces them with the filtered
1884         ones. Modified Write to deal with buffering and filtering.
1885
1886 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1887
1888         * HttpResponseStream.cs: allow for writes of more than 32K at once.
1889
1890 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1891
1892         * InputFilterStream.cs proxy stream for use by filters.
1893         * HttpRequest.cs: implement input filtering.
1894
1895 2005-10-02 Eyal Alaluf <eyala@mainsoft.com>
1896         * HttpApplication.jvm.cs - Workaround for use of yield in
1897         HttpApplication.cs HttpRuntime.cs: AppDomain.Unload is not supported
1898         * under TARGET_J2EE
1899
1900 2005-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1901
1902         * HttpResponseStream.cs: remove dead code.
1903
1904 2005-09-29  Sebastien Pouliot  <sebastien@ximian.com> 
1905
1906         * HttpClientCertificate.cs: Remove last TODO on IsValid. This now 
1907         works when using XSP. Now use flags to determine valid/presence.
1908
1909 2005-09-26  Chris Toshok  <toshok@ximian.com>
1910
1911         * HttpApplicationFactory.cs (OnAppFileChanged): add null checks
1912         for bin_watcher and app_file_watcher so we don't get NRE's here.
1913
1914 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1915
1916         * BrowserCapabilities.cs: don't rely on the win32 attribute to be there.
1917         Just use the platform to determine whether Win32 is true or not. Fixes
1918         bug #74777.
1919
1920 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1921
1922         * HttpApplication.cs: fixed typo when setting UI culture. Closes bug
1923         #76189.
1924
1925 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1926
1927         * HttpRequest.cs: new SetFilePath() that does not conflict with
1928         SetCurrentExePath. Now when transfering from a page to another,
1929         CurrentExecutionFilePath and FilePath are correct.
1930
1931 2005-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1932
1933         * TraceContext.cs: add new method to store size of controls.
1934         * TraceData.cs: render control size.
1935         * HttpResponse.cs: new internal method to get the number of bytes of
1936         buffered output.
1937         * HttpResponseStream.cs: added Length property to the Buckets and new
1938         GetTotalLength.
1939
1940 2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1941
1942         * TraceData.cs: we have to change the method of getting a control render
1943         size. MS does not do this or otherwise would run into the same bug
1944         (#76051) that this patch fixes. This is temporarily setting the size
1945         to 0.
1946
1947 2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1948
1949         * HttpResponseStream.cs: implemented Send(stream) for files. Fixes bug
1950         #76145.
1951
1952 2005-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1953
1954         * HttpRuntime.cs: catch errors when compiling global.asax and
1955         initializing the application. Fixes bug #76090.
1956
1957 2005-09-14  Sebastien Pouliot  <sebastien@ximian.com> 
1958  
1959         * BrowserCapabilities.cs: Fixed changes (in 2.0) with versions. Fixed
1960         compare with "True" (culture and case sensitivity).
1961         * HttpApplicationState.cs: Added LinkDemand for Minimal. Use the 
1962         internal HttpStaticObjectsCollection ctor to avoid the UnmanagedCode
1963         demand.
1964         * HttpContext.cs: Added LinkDemand for Minimal. Added 2.0 properties
1965         and methods to test CAS on them.
1966         * HttpRequest.cs: Added LinkDemand for Minimal. Ensure we return 
1967         proper values when worker_request is null.
1968         * HttpResponse.cs: Added LinkDemand for Minimal. Ensure we return 
1969         proper values when context or WorkerRequest is null. Added 2.0 
1970         properties and methods to test CAS on them.
1971         * HttpRuntime.cs: Added LinkDemand for Minimal. Added PathDiscovery 
1972         demands for properties returning directories. Added demand for High 
1973         level on AppDomainAppId and AppDomainId properties, Low level on 
1974         IsOnUNCShare, Medium level on ProcessRequest and a demand for 
1975         UnmanagedCode on UnloadAppDomain method. Constructor also has a 
1976         UnmanagedCode demand for 1.x.
1977         * HttpStaticObjectsCollection.cs: Added LinkDemand for Minimal. Added
1978         a UnmanagedCode demand to public ctor. Added internal ctor without the
1979         demand. Changed Serialize and Deserialize methods to public for 2.0.
1980
1981 2005-09-14  Sebastien Pouliot  <sebastien@ximian.com>
1982
1983         * HttpWorkerRequest.cs: Removed TODO for 2.0 APIs and return the 
1984         default values for them.
1985
1986 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com>
1987
1988         * HttpApplication.cs: : Added LinkDemand and InheritanceDemand (class)
1989         for Minimal. Changed AssemblyLocation to a property (so it doesn't 
1990         require special permission, PathDiscovery) to create an instance. 
1991         Protected Modules property with a Demand for High level. Added some 
1992         missing HttpException for null context.
1993         * HttpServerUtility.cs: Added LinkDemand for Minimal. Added demands 
1994         for UnmanagedCode on all CreateObject* methods. Added demand for 
1995         Medium level on MachineName and ScriptTimeout properties. Added new
1996         overloaded Transfer method (2.0) to test CAS on it.
1997         * HttpUtility.cs: Added LinkDemand for Minimal. Added [Obsolete] to 
1998         ctor (2.0). Changed some return values when 'count' is 0. Added 
1999         ParseQueryString (overload) methods for 2.0 (to enabled CAS testing on
2000         them).
2001         * HttpWorkerRequest.cs: Added LinkDemand and InheritanceDemand (class)
2002         for Minimal. Added RequestTraceIdentifier and RootWebConfigPath (2.0) 
2003         properties, GetPreloadedEntityBody, GetPreloadedEntityBodyLength, 
2004         GetTotalEntityBodyLength and ReadEntityBody (2.0) methods to test CAS 
2005         on them. Fixed SendResponseFromMemory to ignore IntPtr.Zero (used in 
2006         tests without failures).
2007         * ServerVariablesCollection.cs: Fixed loadServerVariablesCollection 
2008         when HttpWorkerRequest is null.
2009         * TraceContext.cs: Added LinkDemand for Minimal. Fixed default Mode 
2010         (SortByTime). Added new (2.0) TraceFinished event to test CAS on it.
2011
2012 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com> 
2013  
2014         * HttpBrowserCapabilities.cs: Added LinkDemand and InheritanceDemand 
2015         (class) for Minimal. Note that current MCS has problem compiling 
2016         security attributes on partial class (bug #75969).
2017         * HttpCachePolicy.cs: Added LinkDemand for Minimal. Added 2.0 methods
2018         (stub) to enable CAS tests on them.
2019         * HttpCacheVaryByHeaders.cs: Added LinkDemand for Minimal.
2020         * HttpCacheVaryByParams.cs: Added LinkDemand for Minimal.
2021         * HttpClientCertificate.cs: Added LinkDemand and InheritanceDemand 
2022         (class) for Minimal.
2023         * HttpCookie.cs: Added LinkDemand for Minimal.
2024         * HttpCookieCollection.cs: Added LinkDemand for Minimal.
2025         * HttpFileCollection.cs: Added LinkDemand for Minimal.
2026         * HttpModuleCollection.cs: Added LinkDemand for Minimal.
2027         * HttpPostedFile.cs: Added LinkDemand for Minimal.
2028         * HttpRequestPriority.cs: Fix enum values.
2029         * HttpWriter.cs: Added LinkDemand for Minimal.
2030
2031 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com>
2032
2033         * ProcessInfo.cs: Added LinkDemand and InheritanceDemand (class) for
2034         Minimal.
2035         * ProcessModelInfo.cs: Added LinkDemand and InheritanceDemand (class)
2036         for Minimal. Methods GetCurrentProcessInfo and GetHistory are also
2037         protected by Demand for High level.
2038
2039 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com> 
2040  
2041         * HttpCompileException.cs: Added new public ctors and [Serializable]
2042         to 2.0. Added new Message property and GetObjectData (protected by a
2043         demand for SerializationFormatter) for 2.0. Fixed line-ending.
2044         * HttpException.cs: Added LinkDemand and InheritanceDemand (class) for
2045         Minimal. Renamed parameters to match documentation.
2046         * HttpParseException.cs: Added LinkDemand (class) for Minimal. Added
2047         demand for SerializationFormatter on GetObjectData method. Fixed 
2048         line-ending.
2049         * HttpRequestValidationException.cs: Added new public ctors and 
2050         [Serializable] to 2.0. Added LinkDemand for Minimal.
2051         * HttpUnhandledException.cs: Added new public ctors and [Serializable]
2052         to 2.0. Removed unused internal ctor. Added LinkDemand for Minimal.
2053         Fixed line-ending.
2054
2055 2005-09-13  Sebastien Pouliot  <sebastien@ximian.com>
2056
2057         * HttpResponseSubstitutionCallback.cs: New. 2.0 delegate.
2058         * TraceContextEventArgs.cs: New. 2.0 class.
2059         * TraceContextEventHandler.cs: New. 2.0 delegate.
2060
2061 2005-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2062
2063         * HttpRequest.cs: use GetServerName instead of GetLocalAddress when
2064         building the Url.
2065
2066 2005-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2067
2068         * HttpRequest.cs: fix the indexer.
2069
2070 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2071
2072         * HttpPostedFile.cs: fixes in Seek and Position.
2073
2074 2005-09-08  Sebastien Pouliot  <sebastien@ximian.com>
2075
2076         * HttpRequest.cs: Make sure the MemoryStream created have their 
2077         contents marked as public - or else you can't call GetBuffer on them!
2078
2079 2005-09-08  Miguel de Icaza  <miguel@novell.com>
2080
2081         * HttpRequest.cs: Patch from Juraj Skripsky <js@hotfeet.ch> that
2082         fixes UrlReferrer. 
2083
2084 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2085
2086         * HttpPostedFile.cs: Make this class actually work. Every time we read,
2087         we have to position the underlying stream.
2088
2089 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2090
2091         * HttpRequest.cs: reading multipart/form-data works again.
2092
2093 2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
2094         * HttpRequest.cs: Under TARGET_JVM the input stream must allow GetBuffer.
2095
2096 2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
2097         * HttpApplicationFactory.cs: TARGET_J2EE/JVM fix.
2098
2099 2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2100
2101         * HttpRequest.cs: correctly detect multipart/form-data.
2102
2103 2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2104
2105         * HttpApplicationFactory.cs: recycle after invoking session_end.
2106
2107 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2108
2109         * HttpRuntime.cs: remove Console.
2110
2111         * HttpApplicationFactory.cs: don't hook Session_End, but keep
2112         the MethodInfo around for later invocation if needed. Don't call
2113         GetMethods() for every HttpApplication (or derived class) instances.
2114         Added a method, used by SessionStateModule, that will create use an
2115         application without context to invoke Session_End. Keep a pool of
2116         applications that are meant to be used by this method only.
2117
2118         * HttpApplication.cs: add a SetSession method and do not
2119         attach all the events if the application is for Session_End only.
2120
2121 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2122
2123         * HttpRuntime.cs: actually unload the domain when requested. Reformatted
2124         FinishUnavailable() and removed the 'Location' header form the error.
2125
2126         * HttpApplicationFactory.cs: set up the watcher for the bin directory.
2127         This also prevents a nullref when global.asax is changed.
2128
2129 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2130
2131         * HttpApplication.cs: fixed bug introduced when moving GetHandler call
2132         around. Now we get error pages again.
2133
2134 2005-09-06  Miguel de Icaza  <miguel@novell.com>
2135
2136         * HttpApplication.cs: Catch EndRequest errors as well.
2137
2138 2005-09-05  Miguel de Icaza  <miguel@novell.com>
2139
2140         * HttpApplication.cs: Invoke EndRequest handler before OutputPage
2141         as FormsAuthentication will issue a Redirect from the EndRequest 
2142         handler. 
2143
2144 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2145
2146         * HttpApplication.cs: when writing an error message, catch the possible
2147         write error.
2148
2149 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2150
2151         * HttpResponseStream.cs: prevent invalid cast exception if the first
2152         thing written is a file.
2153
2154 2005-09-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2155
2156         * HttpApplication.cs: fix invalid cast exception (bug #75926).
2157
2158 2005-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2159
2160         * HttpApplicationFactory.cs: only trigger the Application_Start event
2161         once. It was being invoked more than once when several clients were
2162         hitting the server at the same time on startup.
2163
2164 2005-09-01 Eyal Alaluf <eyala@mainsoft.com>
2165
2166         * HttpContext.cs HttpResponse.cs HttpWorkerRequest.cs HttpRuntime.cs
2167           HttpApplicationFactory.cs HttpApplication.cs: TARGET_J2EE/JVM fixes.
2168           Mostly workaround limited AppModel in TARGET_J2EE.
2169
2170 2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2171
2172         * HttpResponse.cs: if the request method is HEAD, that's equivalent to
2173         SuppressContent. Added an internal TransmitFile that allows setting the
2174         final_flush flag.
2175         * StaticFileHandler.cs: use the new internal TransmitFile and remove
2176         generation of Content-Length header, as now it's computed correctly.
2177         * HttpApplication.cs: remove debugging stuff.
2178         * HttpResponseStream.cs: suppress_content is checked in HttpResponse.
2179
2180 2005-08-31  Miguel de Icaza  <miguel@novell.com>
2181
2182         Removed debugging info.
2183         
2184         * HttpApplication.cs: Add support for async handlers. 
2185
2186         Add extra 2.x methods. 
2187
2188 2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2189
2190         * BrowserCapabilities.cs: removed extra 'using'.
2191
2192         * HttpApplication.cs: use just the 'modcoll' to hold the collection of
2193         modules instead of having a separate 'modules' one.
2194
2195 2005-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2196
2197         * HttpApplication.cs: clone the module collection so that
2198         it's not shared between HttpApplications. Call GetHandler() in the
2199         right place.
2200
2201 2005-08-30  Miguel de Icaza  <miguel@novell.com>
2202
2203         * HttpApplication.cs: Add the new 2.x method overloads that take a
2204         data object.
2205
2206         (RunHooks): Pass the extra data instead of null.
2207
2208         * HttpCookie.cs (HttpOnly): Add 2.x cookie header.
2209
2210         * BrowserCapabilities.cs: Move the core of the capabilities into a
2211         separate file.  Use partial classes to choose what version to
2212         compile against.
2213
2214         * HttpBrowserCapabilities.cs: Update to move the code elsewhere.
2215
2216 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
2217
2218         * HttpResponseStream.cs: Fix a bug introduced by last fix (thanks to
2219         Ben)
2220
2221 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
2222
2223         * HttpResponseStream.cs: Compilation fixes for TARGET_JVM. TARGET_JVM
2224         does not support unsafe code. I localized all unsafe code within Chunk
2225         & Block and created a managed version of Chunk.
2226
2227 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
2228         * HttpApplicationFactory.cs: Compilation fixes for TARGET_J2EE. Under
2229         TARGET_J2EE static fields are shared by all app domains. We handle
2230         this difference by explicitly getting/setting values from the app
2231         domain.  Since HttpApplicationFactory has many static fields, I
2232         refactored it to have one static instance and moved the static fields
2233         into instance fields.
2234
2235 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
2236
2237         * HttpRequest.cs: Disable use of IntPtrStream for TARGET_JVM
2238
2239 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
2240
2241         * HttpContext.cs: Compilation fixes for TARGET_J2EE/JVM
2242
2243 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2244
2245         * HttpResponse.cs: don't duplicate the 'charset=' and don't send a
2246         charset for unknown MIME types.
2247         * StaticFileHandler.cs: set the Content-Length header here.
2248         * HttpRequest.cs: prevent nullrefs when we have no 'charset='.
2249
2250 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2251
2252         * StaticFileHandler.cs: use TransmitFile instead of WriteFile. This way
2253         xsp will use sendfile().
2254
2255 2005-08-28  Chris Toshok  <toshok@ximian.com>
2256
2257         * SiteMapNode.cs: fix IHierarchyData.GetParent.
2258
2259 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2260
2261         * HttpRequest.cs:
2262         * IntPtrStream.cs: now we only have a read-only MemoryStream or an
2263         IntPtrStream. The copy is moved into HttpRequest.
2264
2265 2005-08-26  Sebastien Pouliot  <sebastien@ximian.com>
2266
2267         * WebCategoryAttribute.cs: New. Required internal attribute.
2268         * WebSysDescriptionAttribute.cs: New. Required internal attribute.
2269
2270 2005-08-26  Jackson Harper  <jackson@ximian.com>
2271
2272         * HttpResponseStream.cs: Use GetBuffer so the memory isn't
2273         duplicated.
2274
2275 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2276
2277         * HttpApplication.cs: GetHandler might return null when, for example,
2278         a web service fails, but that does not mean that returning a null
2279         handler should throw another exception, as the web service code
2280         serialized the error as a faultString. So if the handler is null, just
2281         don't call ProcessRequest and keep going.
2282
2283 2005-08-26  Jackson Harper  <jackson@ximian.com>
2284
2285         * HttpResponse.cs: Send the cached headers if this is a cached
2286         response. Save the headers, date header, and page data. Fix a typo.
2287         * HttpResponseStream.cs: Add new accesor to get a byte [] of the
2288         page data.
2289
2290 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2291
2292         * HttpWorkerRequest.cs: SetEndOfSendNotification is a noop. No matter
2293         what callback you use that never gets called. In XSP I actually
2294         implement something for this method.
2295         * HttpServerUtility.cs: unused variable.
2296
2297 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2298
2299         * HttpInputStream.cs: new ctor that takes a byte [].
2300         * IntPtrStream.cs: make it work on a byte [] too.
2301
2302         * HttpRequest.cs:
2303         (ContentLength): return 0 for negative numbers or error parsing, but
2304         keep content_length negative in those cases.
2305         (MakeInputStream): when there's no content-length (or it's negative),
2306         we still read the request into a MemoryStream. Use
2307         IsEntireEntityIsPreloaded() as a fast path.
2308
2309 2005-08-25  Sebastien Pouliot  <sebastien@ximian.com>
2310
2311         * HttpClientCertificate.cs: On 1.x the .ctor throws a 
2312         ArgumentNullException (but 2.0 throws a NRE).
2313
2314 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2315
2316         * HttpRequest.cs: HttpMethod deserves its own field. Fix IsLocal.
2317
2318 2005-08-25  Chris Toshok  <toshok@ximian.com>
2319
2320         * HttpApplication.cs (IsReusable): return true.
2321         (InitOnce): remove the initialization of handler_factory from
2322         here.
2323         (GetHandler) and move it here, so we make sure to load handlers
2324         from all needed web.config files.
2325
2326 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2327
2328         * HttpServerUtility.cs: use GetHandler().
2329         * HttpApplication.cs: remove obsolete method. Now Transfe/Execute work.
2330
2331 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2332
2333         * HttpApplication.cs: no need for the local var. here.
2334
2335 2005-08-25  Chris Toshok  <toshok@ximian.com>
2336
2337         * HttpApplication.cs (InitOnce): move the initialization of
2338         modules above the call to HttpApplicationFactory.AttachEvents,
2339         since that method accesses HttpApplication.Modules.  Fixes
2340         nGallery.
2341         (IsReusable): mark TODO.
2342
2343 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2344
2345         * HttpResponseHeader.cs: removed obsolete class.
2346         * HttpResponse.cs: no more 'obsolete' warnings.
2347
2348 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2349
2350         * HttpRuntime.cs: implemeted some missing properties.
2351
2352 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2353
2354         * HttpResponse.cs: implemented RemoveOutputCacheItem().
2355
2356 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2357
2358         * HttpApplication.cs: implemented GetVaryByCustomString().
2359
2360 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2361
2362         * HttpRequest.cs: implemented SetHeader (allows adding a header
2363         circumventing the read-only protection of the collection) and SetForm,
2364         which just assigns a value of the 'form' collection.
2365         * HttpServerUtility.cs: NameValueCollection -> WebROCollection.
2366
2367 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2368
2369         * HttpContext.cs:
2370         * HttpRequest.cs: implemented RewritePath and supporting methods.
2371
2372 2005-08-22  Sebastien Pouliot  <sebastien@ximian.com>
2373
2374         * HttpRequest.cs: Avoid NRE if work_request if null in the ctor.
2375         * HttpResponse.cs: Avoid NRE if work_request if null in the ctor.
2376
2377 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2378
2379         * HttpApplication.cs: if there's any exception thrown when getting the
2380         handler, don't add an extra error to the context, as we already have
2381         one.
2382
2383 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2384
2385         * HttpWriter.cs:
2386         * HttpResponse.cs:
2387         * HttpWorkerRequest.cs:
2388         * HttpApplication.cs: added mising attributes and enabled methods
2389         present in 1.1 SP1.
2390
2391 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2392
2393         * WebROCollection.cs: a collection that allows setting IsReadOnly.
2394         * HttpRequest.cs: implemented MapImageCoordinates(). Use WebROCollection
2395         instead of a NameValueCollection in Form, Headers, Params, QueryString.
2396
2397 2005-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2398
2399         * HttpInputStream.cs: new copy ctor.
2400         * IntPtrStream.cs: getters for base_address and size.
2401         * HttpRequest.cs: implemented SaveAs(). Use a wrapper on top of
2402         InputStream so that reading POST form or files does not modify the state
2403         if InputStream. Don't use uri_builder.Query in QueryStringRaw, as it
2404         returns the '?'.
2405
2406 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2407
2408         * HttpRequest.cs: implemented UserLanguages and reuse code from
2409         AcceptTypes.
2410
2411 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2412
2413         * HttpRequest.cs: implemented AcceptTypes.
2414
2415 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2416
2417         * HttpRequest.cs: implemented this[] in terms of Params. Don't add the
2418         header collection in Params.
2419
2420 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2421
2422         * HttpRequest.cs: fix Files property.
2423         * HttpApplication.cs: invoke the default authentication event after all 
2424         the other auth. modules.
2425
2426 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2427
2428         * ServerVariablesCollection.cs: mark the collection as read-only except
2429         when we fill it. Add the HTTP_blah key/value pairs too.
2430
2431 2005-08-18  Chris Toshok  <toshok@ximian.com>
2432
2433         * HttpRequest.cs (get_Params): implement.
2434
2435 2005-08-17  Chris Toshok  <toshok@ximian.com>
2436
2437         * HttpResponse.cs: HttpResponse's Cookie's collection acts
2438         differently than HttpRequests in that it never returns null from
2439         the "this [string]" accessor.
2440
2441 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2442
2443         * HttpRequest.cs: check length 0 case when reading a POST.
2444
2445 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2446
2447         * HttpContext.cs: added security attributes for User and
2448         SkipAuthorization properties.
2449         * HttpApplicationFactory.cs: AttachEvents is now called form the
2450         application .ctor. Recycle instead of dispose.
2451         * HttpApplication.cs: attach events to the newly created application.
2452
2453 2005-08-15  Jackson Harper  <jackson@ximian.com>
2454
2455         * ApplicationShutdownReason.cs: make build
2456
2457 2005-08-15  Miguel de Icaza  <miguel@novell.com>
2458
2459         * HttpApplication.cs: Update comments
2460
2461         * HttpPostedFile.cs: Use a substream to read from the uploaded
2462         multiparts. 
2463
2464         * HttpRequest.cs: use new code to read the uploaded files.
2465
2466 2005-08-12  Miguel de Icaza  <miguel@novell.com>
2467
2468         2.x API fixage and small additions:
2469         
2470         * HttpResponse.cs: Make constructor internal.
2471
2472         * HttpRequest.cs (IsLocal): Expose if NET_2.x
2473
2474         * HttpContext.cs: Remove internal routine.
2475
2476         * HttpApplication.cs: Add 2.x events. 
2477
2478         * HttpRequest.cs: Another iFolder issue: I was not setting up the
2479         uri_builder here.
2480
2481         Fixes to get iFolder to work:
2482         
2483         * HttpApplicationFactory.cs: Set the context when we are initting
2484         the application.
2485
2486         * HttpApplication.cs (SetContext): helper routine. 
2487
2488         * HttpResponse.cs: Implement the various cache operations:n
2489         Expires, ExpiresAbsolute, CacheControl.
2490
2491         Actually produce the Cache-Control header, the "Cache" property
2492         takes precedence over the compatibility settings (Expires,
2493         ExpiresAbsolutely and CacheControl). 
2494
2495         * HttpCachePolicy.cs: Fix style.
2496
2497         Fix the generation of the headers, use lower-case values, do not
2498         add the max-value if the value is zero.  
2499
2500         Allow for all possible values in SetCacheability. 
2501
2502         * HttpRuntime.cs (ClrInstallDirectory): Implement.
2503
2504         * HttpResponseStream.cs: Remove debugging stuff. 
2505
2506 2005-08-11  Miguel de Icaza  <miguel@novell.com>
2507
2508         Big chunked handling rewrite, and integration of Ben's unmanaged
2509         output stream.
2510
2511         * HttpWriter.cs: Delegate chunked encoding writing to the
2512         HttpResponse. 
2513
2514         * HttpResponse.cs: Rework the chunked encoding system, centralize
2515         it all. 
2516
2517         * HttpResponseStream.cs: Deploy Ben's bucket-base unmanaged
2518         buffers code. 
2519
2520         Changed the way that we handle chunked encoding, centralize it
2521         all;  
2522
2523         Remove a lot of manual handling of buffering turned off, and
2524         instead delegate it all to Flush, fixes several issues with the
2525         new framework.
2526
2527         * HttpWorkerRequest.cs (SendResponseFromMemory (IntPtr, int)):
2528         Provide a default implementation since currently XSP does not have
2529         this method implemented. 
2530
2531 2005-08-11  Sebastien Pouliot  <sebastien@ximian.com> 
2532  
2533         * HttpClientCertificate.cs: Culture insensitive int parsing. Fixed
2534         NET_2_0 build.
2535
2536 2005-08-10  Miguel de Icaza  <miguel@novell.com>
2537
2538         * ServerVariablesCollection.cs: For Ben.  Implement the header
2539         fetching here, do not implement it in HttpRequest.cs.
2540
2541 2005-08-10  Sebastien Pouliot  <sebastien@ximian.com> 
2542  
2543         * HttpClientCertificate.cs: Changed IsPresent logic so that new unit
2544         tests will work as expected.
2545
2546 2005-08-10  Sebastien Pouliot  <sebastien@ximian.com>
2547
2548         * HttpClientCertificate.cs: Implemented, except for validation. Note 
2549         that the HttpWorkerRequest derived classes must be updated to supply 
2550         the required informations.
2551         * HttpRequest.cs: Create an HttpClientCertificate on first call to
2552         ClientCertificate.
2553
2554 2005-08-09  Miguel de Icaza  <miguel@novell.com>
2555
2556         * HttpRuntime.cs (AspInstallDirectory): Implement.
2557
2558 2005-08-09  Sebastien Pouliot  <sebastien@ximian.com>
2559
2560         * HttpClientCertificate.cs: New. Stub. It won't be fun to test.
2561
2562 2005-08-04  Ben Maurer  <bmaurer@ximian.com>
2563
2564         * HttpContext.cs: Kill a NIE.
2565
2566 2005-08-04  Miguel de Icaza  <miguel@novell.com>
2567
2568         * HttpApplicationFactory.cs: Change "Start" event like the "End"
2569         event, and only do this once, when we init the type.
2570
2571         Fire the "Application_Start" event after we create the type.
2572
2573 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2574
2575         * HttpApplication.cs: catch a ThreadAbort (coming from Response.End)
2576         here too.
2577
2578 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2579
2580         * HttpResponse.cs: setting the Status property resets the
2581         StatusDescription (see the tests) and the default value for the
2582         description is the one provided by GetStatusDescription() in
2583         HttpWorkerRequest.
2584
2585 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2586
2587         * HttpRequest.cs: s/boundry/boundary/ and fix typo in array creation.
2588
2589 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2590
2591         * HttpApplication.cs: add call to EndOfRequest when everything is said
2592         and done.
2593
2594 2005-08-02  Miguel de Icaza  <miguel@novell.com>
2595
2596         * HttpResponse.cs: Stub for TransmitFile.
2597
2598         * HttpRequest.cs (IsAuthenticated): Implement.
2599
2600 2005-08-01  Miguel de Icaza  <miguel@novell.com>
2601
2602         * HttpRequest.cs: Cope with implementations of HttpWorkerRequest
2603         (unpatched xsp) that do not send back the PreloadedEntityBody. 
2604
2605         * HttpApplication.cs: keep track of the factory. 
2606         (Dispose): Only dispose once, clean up other variables, release
2607         the ManualResetEvent.
2608         Release the handler to the factory.
2609
2610         * HttpApplicationFactory.cs: Implement a stack to reuse the
2611         applications. 
2612
2613         * HttpRequest.cs: On uploads, if the ContentLenght is zero, throw
2614         a 411.
2615
2616         * HttpRuntime.cs: Recycle the application after using it.
2617
2618         * HttpPostedFile.cs: Implement SaveAs.
2619
2620         * HttpContext.cs: Return the "Server" property.
2621
2622 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2623
2624         * HttpServerUtility.cs: implemented missing bits.
2625
2626 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2627
2628         * HttpRequest.cs: query string was getting a '?' as the start of the
2629         first variable name. This makes the asmx help page work again.
2630
2631 2005-08-01  Miguel de Icaza  <miguel@novell.com>
2632
2633         * HttpRequest.cs (Cookies, Forms): Add validation.
2634         (Forms): Add application/x-www-form-urlencoded parsing and
2635         multipart/form-data parsing.
2636         
2637         (HttpMultiPart): Implement new class to load multi-part data from
2638         a stream since there is no longer a byte [] that holds the data
2639         (currently we have an unmanaged IntPtr buffer wrapped as a
2640         stream).  Also the 2.x framework will add support for large
2641         uploads which are sent directly to disk, which will require the
2642         FileStream interface. 
2643         
2644         (Path, PathInfo): Fill a couple more methods to avoid crashes.
2645
2646         * HttpContext.cs: Fill another one to get web services summary
2647         page painting.  The page does not work though.
2648         
2649         * HttpApplication.cs: Rework the pipeline to not depend on
2650         `finally', as `finally' would not be invoked if we choose not to
2651         call the pipeline again (which happens if the `stop' variable is
2652         set). 
2653
2654         Instead force the pipeline to go to the shutdown, and yield from
2655         there after all the release-state callbacks have been invoked. 
2656
2657 2005-07-31  Miguel de Icaza  <miguel@novell.com>
2658
2659         * HttpApplication.cs: Remove debugging messages since the compiler
2660         bug has been fixed.
2661
2662         You must use at least mcs from revision 47879 for the application
2663         pipeline to work. 
2664
2665 2005-07-30  Miguel de Icaza  <miguel@novell.com>
2666
2667         * HttpContext.cs: Error handling methods.
2668
2669         * HttpResponse.cs: Trigger the last event.
2670
2671         * HttpRuntime.cs: Add queueing of the next request. 
2672
2673         * HttpApplication.cs: Deploy the new yield-based application
2674         pipeline, add error handling to the pipeline.
2675         
2676         * HttpApplication.cs (AsyncRequestState): Just use the done event
2677         from the parent.
2678
2679 2005-07-29  Miguel de Icaza  <miguel@novell.com>
2680
2681         * HttpResponseStream.cs, HttpRequest.cs: Fix bugs found by nunit.
2682
2683         * HttpApplication.cs: Fix a race condition. 
2684
2685         * HttpResponseStream.cs: Fix bug, send the size of the buffer that
2686         we have so far instead of the internal size of the buffer.   This
2687         will need work later to ensure we enforce the Content-Length
2688         maximum output size if set.
2689
2690         * ServerVariablesCollection.cs: This class now inherits from
2691         NameValueCollection, we should probably review what the middle
2692         class did, there are no dependencies on it.
2693
2694         I need to write tests to investigate if something is missing or
2695         has changed in this implementation. 
2696
2697 2005-07-27  Miguel de Icaza  <miguel@novell.com>
2698
2699         * HttpRequest.cs: No happy replies here, send a 411.
2700
2701 2005-07-27  Chris Toshok  <toshok@ximian.com>
2702
2703         * HttpResponseHeader.cs: remove spew.
2704         
2705 2005-07-27  Chris Toshok  <toshok@ximian.com>
2706
2707         * HttpResponseHeader.cs (HttpResponseHandler..ctor): use
2708         HttpWorkerRequest.GetKnownResponseHeaderName instead of
2709         GetKnownRequestHeaderName.  Fixes Response.Redirect until miguel's
2710         new HttpReponse is online.
2711
2712 2005-07-26  Miguel de Icaza  <miguel@novell.com>
2713
2714         * HttpResponse.cs: use_chunked is now a byte-array, if not null,
2715         we use it to hold the size of the chunked so we do not have to
2716         allocate many of these. 
2717         (SendSize): Helper routine to send the chunked headers.
2718         (BinaryWrite): First user of the chunked writer.
2719
2720         * HttpApplication.cs: Do not crash if they request a Server
2721         instance, but throw a NotImplementedException.
2722
2723         * HttpRequest.cs: fix a few problems exposed by the regression
2724         test suite.
2725
2726         * HttpRequest.cs (Cookies): use Chris' new constructor to get the
2727         cookies parsed.
2728
2729         : The big Uri rework: instead of using QueryString
2730         as the population mechanism, populate an UriBuilder from the
2731         various HttpWorkerRequest methods.
2732
2733         * HttpWorkerRequest.cs (GetProtocol): Implement in terms of
2734         IsSecure().
2735
2736         * HttpResponse.cs: Pointed by Ben, Write (null) is a nop instead
2737         of a crash.
2738
2739         * HttpContext.cs: Add a couple of properties to help the 2.x
2740         build.
2741         
2742         * HttpResponse.cs: Make ContentLength a long, add back support for
2743         session's app_path_mod.
2744         (ApplyAppPathmodifier): put back.
2745         (End): Pass a flag to abort so we can tell the exceptions appart
2746         in HttpApplication.
2747         (WriteHeaders): Send the HTTP status.
2748         (Redirect): Implement.
2749         (Write): Use the Output property to load writer when needed.
2750         
2751         * HttpRequest.cs (ctor): Temporary use of InitFromWR, will fix
2752         later. 
2753         (MakeInputStream): check content-length size, use routines to load
2754         the preloaded data, handle incomplete transfers.
2755         (Query): Do not insert null keys into the collection.
2756         (Url): implement.
2757         (UrlReferer): implement.
2758
2759         * HttpApplication.cs (RunHooks): Catch Thread.Abort, and call
2760         Thread.ResetAbort after each step.
2761
2762         Ensure that ReleaseState is called if we ever succeed in acquiring
2763         the state even if we have stopped the request pipeline.
2764
2765         Report file not found, directory not found.
2766
2767 2005-07-25  Miguel de Icaza  <miguel@novell.com>
2768
2769         * HttpCookieCollection.cs: Add expiration of the cookie. 
2770
2771         * HttpRequest.cs: Add check for ContentLength, use
2772         GetPreloadedEntityBody, correct number of bytes uploaded.
2773
2774 2005-07-21  Miguel de Icaza  <miguel@novell.com>
2775
2776         * HttpResponseHeader.cs: Our implementation of HttpResponse only
2777         uses the text headers, does not use any constants as XSP would go
2778         through a slower code path anyways.
2779
2780 2005-07-21  Chris Toshok  <toshok@ximian.com>
2781
2782         * HttpBrowserCapabilities.cs: enable support for the W3CDomVersion
2783         and EcmaScriptVersion properties.
2784
2785 2005-07-21  Chris Toshok  <toshok@ximian.com>
2786
2787         * HttpResponseHeader.cs: hi, i'm stupid and missed String.Replace.
2788         
2789 2005-07-21  Chris Toshok  <toshok@ximian.com>
2790
2791         * HttpResponseHeader.cs: url encode just \r and \n if they're
2792         present in the value.
2793
2794 2005-07-20  Chris Toshok  <toshok@ximian.com>
2795
2796         * HttpPostedFile.cs: add missing ContentLength property.
2797
2798 2005-07-20  Chris Toshok  <toshok@ximian.com>
2799
2800         * HttpCookieCollection.cs: add a new ctor that takes a string (the
2801         contents of the Cookies: header).
2802
2803 2005-07-20  Chris Toshok  <toshok@ximian.com>
2804
2805         * HttpCookieCollection.cs: add another ctor (internal, but not
2806         obsolete, so we aren't passing a stupid HttpResponse in in order
2807         to change the behavior of the collection.)
2808
2809         * HttpCookie.cs: init this.values in the internal ctor.
2810
2811 2005-07-20  Chris Toshok  <toshok@ximian.com>
2812
2813         * HttpCookieCollection.cs: use "auto-fill mode" when we're dealing
2814         with an HttpResponse's cookie collection.  That is, create the
2815         cookie if the consumer looks it up.
2816
2817 2005-07-20  Miguel de Icaza  <miguel@novell.com>
2818
2819         * HttpApplication.cs: Ongoing work on pipeline, I will need to
2820         redo this later.
2821
2822 2005-07-19  Miguel de Icaza  <miguel@novell.com>
2823
2824         * HttpContext.cs (GetService): Implement.  Return all of the
2825         properties that we have access to.  Make HttpWorkerRequest the
2826         first match as this is the only likely reason people need to use
2827         this. 
2828
2829         * IntPtrStream.cs: Bring from corlib.
2830
2831         * MultiPartContentParser.cs: use a MemoryStream as HttpInputStream
2832         will now be using IntPtrStream. 
2833
2834         * HttpRequest.cs (MakeInputStream): move code that loads the
2835         request here
2836         (CloseInputStream): Helper method that we will call later to
2837         ensure that we dispose properly the malloced() block. 
2838         (BinaryRead): Implemented.
2839
2840         * HttpInputStream.cs: Rewrite to be a descendant of
2841         IntPtrStream.cs 
2842
2843 2005-07-18  Miguel de Icaza  <miguel@novell.com>
2844
2845         * HttpApplication.cs (Modules): Add modules support and
2846         AsyncResult.
2847
2848 2005-07-18  Chris Toshok  <toshok@ximian.com>
2849
2850         * HttpResponseHeader.cs: initial implementation.
2851
2852 2005-07-18  Chris Toshok  <toshok@ximian.com>
2853
2854         * HttpModuleCollection.cs (HttpModuleCollection.GetKey): add
2855         missing method.
2856
2857         * HttpFileCollection.cs: initial implementation.
2858
2859 2005-07-18  Chris Toshok  <toshok@ximian.com>
2860
2861         * HttpModuleCollection.cs (HttpModuleCollection.CopyTo): implement
2862         missing method.
2863
2864 2005-07-18  Chris Toshok  <toshok@ximian.com>
2865
2866         * HttpModuleCollection.cs: initial implementation.
2867
2868 2005-07-18  Chris Toshok  <toshok@ximian.com>
2869
2870         * HttpCacheVaryByHeaders.cs: only add the header if it's not
2871         already in the hash.
2872
2873         * HttpCacheVaryByParams.cs: only add the param if it's not already
2874         in the hash.
2875
2876 2005-07-18  Chris Toshok  <toshok@ximian.com>
2877
2878         * HttpCookie.cs (HttpCookie+CookieNVC.Set): new override to fix an
2879         MS quirk.
2880
2881 2005-07-17  Miguel de Icaza  <miguel@novell.com>
2882
2883         * HttpRequest.cs (Headers, InputStream): implemented two more
2884         properties.
2885
2886         * HttpInputStream.cs: All we need is a MemoryStream with writable
2887         set to false.
2888
2889         * HttpPostedFile.cs: Use a Stream.
2890
2891 2005-07-16  Chris Toshok  <toshok@ximian.com>
2892
2893         * HttpCacheVaryByHeaders.cs: make sure we set vary_by_unspecified
2894         = false in the custom setter.
2895
2896 2005-07-16  Chris Toshok  <toshok@ximian.com>
2897
2898         * HttpCacheVaryByParams.cs: initial implementation.
2899
2900 2005-07-16  Chris Toshok  <toshok@ximian.com>
2901
2902         * HttpCacheVaryByHeaders.cs: initial implementation.
2903
2904 2005-07-15  Chris Toshok  <toshok@ximian.com>
2905
2906         * HttpCookie.cs: one more time.
2907
2908 2005-07-15  Chris Toshok  <toshok@ximian.com>
2909
2910         * HttpCookie.cs (HttpCookie.GetCookieHeader): use
2911         expires.ToString().
2912         
2913 2005-07-15  Chris Toshok  <toshok@ximian.com>
2914
2915         * HttpCookie.cs (HttpCookie.GetCookieHeader): implement to fix
2916         ben's bug.
2917
2918 2005-07-15  Chris Toshok  <toshok@ximian.com>
2919
2920         * HttpCookieCollection.cs: initial implementation (with a couple
2921         of labeled inefficiencies.)
2922
2923 2005-07-15  Chris Toshok  <toshok@ximian.com>
2924
2925         * HttpCookie.cs (HttpCookie.get_HasKeys): use values.HasKeys()
2926         instead of trying to be smart about it ourselves.
2927
2928 2005-07-15  Chris Toshok  <toshok@ximian.com>
2929
2930         * HttpCookie.cs: initial implementation.  we fail one unit test,
2931         but it might be due to a bug in NameValueCollection.
2932
2933 2005-07-15  Miguel de Icaza  <miguel@novell.com>
2934
2935         * HttpRequest.cs: 
2936
2937 2005-07-14  Miguel de Icaza  <miguel@novell.com>
2938
2939         * HttpRuntime.cs: Return a few of the values from the AppDomain
2940         data. 
2941
2942         Put the application shutdown process.
2943
2944         * HttpApplicationFactory.cs (AddEvent): Fixed bug when more than
2945         one method existed.
2946         
2947         (FireEvent): Do not ignore errors.
2948
2949         * HttpContext.cs (GetAppConfig, GetConfig): First success, use
2950         ConfigurationSettings.GetConfig to get the value that QueueManager
2951         needed.
2952
2953 2005-07-14  Dick Porter  <dick@ximian.com>
2954
2955         * HttpPostedFile.cs: New basic implementation; needs someone to
2956         figure out what a HttpRequestStream does
2957
2958 2005-07-13  Miguel de Icaza  <miguel@novell.com>
2959
2960         * HttpRequest.cs: More work on this file
2961
2962         * HttpRequest.cs, HttpApplication.cs, HttpContext.cs,
2963         HttpRuntime.cs: New from scratch implementation.
2964
2965 2005-07-01  Lluis Sanchez Gual <lluis@novell.com>
2966
2967         * SiteMap.cs: Read provider info from the configuration files.
2968
2969 2005-06-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2970
2971         * HttpResponseHeader.cs: URL encode \r and \n in header values. Fixes
2972         bug #75392.
2973
2974 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2975
2976         * HttpUtility.cs: fix another stupid buglet in htmldecode.
2977
2978 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2979
2980         * HttpContext.cs:
2981         * HttpResponse.cs:
2982         * HttpRequest.cs: use StrUtils (invariant culture).
2983
2984 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2985
2986         * HttpRequest.cs: use StartsWith when looking for 'multipart/form-data'.
2987         File uploading was broken since a few commits ago.
2988
2989 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2990
2991         * HttpResponse.cs: ensure that the last chunk ('0\r\n\r\n') is sent
2992         even if response.Close is called before a final flush. MS/IIS fails to
2993         do this.
2994
2995 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2996
2997         * HttpRequest.cs: don't print anything for unknown content types in
2998         ParseFormData. Use lowercase compare.
2999
3000 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3001
3002         * HttpResponse.cs: invariant love.
3003
3004 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3005
3006         * HttpResponse.cs: avoid 1 string concat.
3007         * HttpRequest.cs: fix BinaryRead. It was totally wrong.
3008
3009 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3010
3011         * HttpUtility.cs: don't append an extra 0 when no digits seen. Fixes
3012         bug #75370.
3013
3014 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3015
3016         * HttpUtility.cs: the lower limit for using &#xx; encoding is 160, not
3017         128. Reset number back to 0 after use. Fixes bug #75365.
3018
3019 2005-06-19  Svetlana Zholkovsky <svetlanaz-at-mainsoft.com>
3020                 * In following classes added TARGET_J2EE or/and TARGET_JVM
3021                   directives:
3022                         - HttpResponse.cs
3023                         - HttpRuntime.cs
3024                         - HttpUtility.cs
3025                         - CapabilitiesLoader.cs
3026                         - HttpApplication.cs
3027                         - HttpApplicationFactory.cs
3028                         - HttpContext.cs
3029                         - HttpException.cs
3030                         - HttpRequest.cs
3031                 * Added Mainsoft's specific files :
3032                         - GhHttpAsyncResult.jvm.cs
3033
3034 2005-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3035
3036         * HttpRequest.cs: avoid one intermediate buffer when reading the request
3037         body and fail for over limit content length when the content type is
3038         not handled as form or multipart data.
3039
3040 2005-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3041
3042         * HttpResponse.cs: fix the check in Close() so that CloseConnection is
3043         called even if there has been no final Flush. Fixes bug #75176.
3044
3045 2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3046
3047         * HttpParseException.cs:
3048         * HttpResponse.cs:
3049         * HttpApplication.cs: updates for 1.1 service pack.
3050
3051 2005-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3052
3053         * HttpUtility.cs: fix InvalidCastException.
3054
3055 2005-06-05  Korn__l P__l <kornelpal@hotmail.com>
3056
3057         * HttpWriter.cs: Fixed: _OutputFilter.Close () was called twice.
3058
3059 2005-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3060
3061         * HttpUtility.cs: modified HtmlDecode so that it does not need to call
3062         Int32.Parse and handles improper &# sequences. Fixes bug #74907.
3063
3064 2005-05-26  Lluis Sanchez Gual <lluis@novell.com>
3065
3066         * SiteMapNodeCollection.cs: Implemented missing methods. The collection
3067         does not inherit from CollectionBase any more.
3068         * SiteMapNode.cs: Track api changes.
3069         * SiteMapProvider.cs: Moved several methods to the new
3070         StaticSiteMapProvider class. Other fixes.
3071         * XmlSiteMapProvider.cs: Watch changes in the xml files. Other fixes.
3072         * SiteMapProviderCollection.cs: Minor fixes.
3073         * SiteMap.cs: Added missing event. Avoid double check lock.
3074         * StaticSiteMapProvider.cs: New class that implements some of the
3075         funtionality of SiteMapProvider.
3076
3077 2005-05-25  Ben Maurer  <bmaurer@ximian.com>
3078
3079         * MimeTypes.cs: Remove extra spaces, they were typos. Fixes 75049.
3080
3081 2005-05-13 Atsushi Enomoto <atsishi@ximian.com>
3082
3083         * HttpUtility.cs : UrlDecodeToBytes() incorrectly decoded escaped 
3084           characters. Patch by Kazuki Oikawa.
3085
3086 2005-05-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3087
3088         * HttpRuntime.cs: PlatformID.Unix.
3089
3090 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3091
3092         * HttpResponse.cs: cleaned up the .ctors, fix IsClientConnected and just
3093         Clear the _Headers array instead of creating a new ArrayList in
3094         ClearHeaders().
3095
3096 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3097
3098         * HttpResponse.cs: we had 2 variables to track client connection status.
3099         Use only one. Increase the buffer size to 28KB when writing from a file.
3100
3101         * StaticFileHandler.cs: set the Content-Type before writing the file.
3102         This allows flushing before all the content is written.
3103
3104         * HttpApplication.cs: use the variable instead of the property when
3105         setting the Principal for the current process.
3106
3107 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3108
3109         * ReusableMemoryStream.cs:
3110         * HttpWriter.cs: keep a pool of buffers to avoid allocations.
3111
3112 2005-05-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3113
3114         * HttpResponse.cs: no need to save/restore the thread culture when
3115         getting the Date header. According to Ben's profiling, this is a big
3116         deal in performance.
3117
3118         * HttpRuntime.cs: ignore exceptions that might be thrown when unloading 
3119         a domain.
3120
3121 2005-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3122
3123         * HttpApplicationFactory.cs: ignore any exception thrown when invoking
3124         an application event.
3125
3126 2005-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3127
3128         * HttpBrowserCapabilities.cs: fix Win32 property.
3129
3130 2005-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3131
3132         * HttpResponse.cs: only add the charset when explicitly set or for
3133         well-known content types.
3134
3135 2005-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3136
3137         * HttpCachePolicy.cs:
3138         * HttpAsyncResult.cs:
3139         * HttpClientCertificate.cs:
3140         * HttpException.cs:
3141         * HttpRuntime.cs:
3142         * HttpCacheVaryByHeaders.cs:
3143         * HttpBrowserCapabilities.cs:
3144         * HttpUtility.cs:
3145         * HttpCacheVaryByParams.cs: no more warnings.
3146
3147         * QueueManager.cs: check for local connections with minLocalFreeThreads.
3148
3149 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3150
3151         * ServerVariablesCollection.cs: shuffled variables, added missing ones
3152         and call a method in HttpRequest to set the HTTP_ variables.
3153
3154         * HttpRequest.cs: new method to add HTTP_ variables to a collection.
3155
3156 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3157
3158         * HttpRequest.cs: GetAllHeaders was returning the value twice instead
3159         of 'name: value'. When HTTP_ is requested on the output, don't include
3160         unknown headers.
3161
3162 2005-03-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3163
3164         * HttpCookieCollection.cs: when adding more than one cookie with the
3165         same name, the last one is the winner.
3166
3167 2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3168
3169         * HttpRequest.cs: correctly store the value cookies in Params. Fixes
3170         bug #73345.
3171
3172 2005-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3173
3174         * HttpRequest.cs: Path and FilePath also change when RewritePath is
3175         called. Fixes bug #73055.
3176
3177 2005-02-23  Sebastien Pouliot  <sebastien@ximian.com>
3178
3179         * HttpRequest.cs: Make sure that any access after a ValidateInput 
3180         throws an exception if the data isn't safe.
3181
3182 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3183
3184         * CapabilitiesLoader.cs: fix the path, as machine.config is now in a
3185         x.x/ directory below $PREFIX/etc/mono.
3186
3187 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3188
3189         * HttpRequest.cs: fail on unicode full-width '<' and '>' too. Fixes
3190         a security report (http://secunia.com/advisories/14325) that wan't
3191         reported to us before public disclosure.
3192
3193 2005-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3194
3195         * HttpResponse.cs: send the calculated content length even when it's 0.
3196         Fixes bug #72655.
3197
3198 2005-02-04  Lluis Sanchez Gual <lluis@novell.com>
3199
3200         * HttpContext.cs: Added internal property to keep a reference to
3201         the last accessed page. Page uses this to implement PreviousPage.
3202
3203 2005-02-02  Lluis Sanchez Gual <lluis@novell.com>
3204
3205         * ProcessModelInfo.cs: Fixed warning.
3206
3207 2005-02-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3208
3209         * TraceContext.cs: writing a message without any other argument is not
3210         a warniing. Fixes bug #72017.
3211
3212 2005-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3213
3214         * HttpApplication.cs: if there are no more handlers, finish the
3215         request and ensure we call Complete on it. Now FreeTextBox 3.0 works.
3216
3217 2004-12-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3218
3219         * HttpRequest.cs: honor the maxRequestSize limit from machine.config.
3220
3221 2004-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3222
3223         * HttpApplication.cs: reread application CultureInfo as web.config
3224         might have changed. Fixes bug #62539.
3225
3226 2004-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3227
3228         * HttpResponse.cs: fixed ApplyAppPathModifier to insert the session ID.
3229
3230 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3231
3232         * HttpApplicationFactory.cs: monitor changes in global.asax and bin
3233         directory and shutdown the application when that happens. Fixes bug
3234         #49651.
3235
3236 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3237
3238         * ReusableMemoryStream.cs: copied from System.IO.MemoryStream and
3239         slightly modified to allow expanding the buffer for cases on which the
3240         regular MemoryStream don't allow it.
3241
3242         * HttpWriter.cs: use the new ReusableMemoryStream and fix bug #59841.
3243         Otherwise we would have to allocate a new MemoryStream...
3244
3245 2004-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3246
3247         * HttpApplication.cs: Create() is now GetInstance().
3248
3249 2004-11-18 Lluis Sanchez Gual <lluis@novell.com>
3250
3251         * SiteMapNodeCollection.cs: Added missing properties.
3252         * HttpParseException.cs: Added 2.0 methods and properties.
3253         * SiteMapNode.cs: Added missing methods and properties.
3254         * SiteMapProvider.cs, XmlSiteMapProvider.cs, 
3255         SiteMapProviderCollection.cs: IProvider does not exist any
3256         more, it is now ProviderBase.
3257         * ISiteMapProvider.cs: Deleted.
3258         * ParserErrorCollection.cs, ParserError.cs, SiteMapResolveEventArgs.cs:
3259           Implemented.
3260         * SiteMap.cs: Minor fixes.      
3261
3262 2004-11-15 Lluis Sanchez Gual <lluis@novell.com>
3263
3264         * SiteMapProviderCollection.cs: Fixed warning.
3265         * HttpApplication.cs: Added new 2.0 events.
3266
3267 2004-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3268
3269         * HttpResponse.cs: added internl SetHeadersSent.
3270         * HttpRuntime.cs: don't throw the 'headers already sent' exception
3271         if we're sending a runtime error.
3272
3273 2004-11-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3274
3275         * HttpApplication.cs: undo the TimeoutManager.(Add|Remove) shuffling.
3276         It causes troubles under heavy load.
3277
3278 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3279
3280         * SiteMap.cs: don't lock on Type.
3281         * CapabilitiesLoader.cs: avoid 2 locks when loading data.
3282
3283 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3284
3285         * HttpRequest.cs: patch by Dennis Gervalle that fixes PhysicalPath in
3286         presence of rewriting.
3287
3288 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3289
3290         * HttpApplication.cs: don't hang if a sync step is aborted. Fixes the
3291         system.web portion of bug #68270.
3292
3293 2004-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3294
3295         * TraceContext.cs: don't cast to Page is the handler it's
3296         not a page.
3297
3298 2004-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3299
3300         * HttpRequest.cs: CurrentExecutionFilePath is the one that
3301         changes when Transfer or Execute are used, not FilePath.
3302
3303         * HttpServerUtility.cs: moved form saving/restoring from
3304         Transfer to Execute, as it's needed there too. the query string is
3305         correctly set now. Fixes bug #67388.
3306
3307         * HttpContext.cs: use SetCurrentExePath instead of SetFilePath.
3308
3309 2004-10-03 Ben Maurer  <bmaurer@ximian.com>
3310
3311         * HttpResponse.cs: use UtcNow
3312
3313 2004-10-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3314
3315         * HttpResponse.cs: SuppressContent does not throw and clears all the
3316         buffered output. Fixes bug #67213.
3317
3318 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3319
3320         * HttpUtility.cs: UrlPathEncode is static. Fixes bug #67155.
3321
3322 2004-09-29 Ben Maurer  <bmaurer@ximian.com>
3323
3324         * HttpContext.cs, TimeoutManager: Use DateTime.UtcNow.
3325
3326 2004-09-25 Ben Maurer  <bmaurer@ximian.com>
3327
3328         * HttpApplication.cs: Make sure requests are removed from
3329         the timeout manager. Fixes a major leak. #66751.
3330
3331 2004-09-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3332
3333         * HttpApplicationFactory.cs:
3334         * HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
3335         unloading.
3336
3337 2004-09-12 Ben Maurer  <bmaurer@ximian.com>
3338
3339         * HttpContext.cs: use CallContext. It is a little bit faster.
3340
3341 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3342
3343         * HttpStaticObjectsCollection.cs: don't share static session objects
3344         declared in the application file across the application, but on a
3345         per-session basis. Fixes bug #65446.
3346
3347 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3348
3349         * HttpServerUtility.cs: in Transfer(path), don't keep form data if
3350         the transfer is done from inside a page that received a postback.
3351         Fixes bug #65613.
3352
3353 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3354
3355         * HttpValueCollection.cs: fixed signature of ToString (). Closes bug
3356         #65392.
3357
3358 2004-09-06 Ben Maurer  <bmaurer@users.sourceforge.net>
3359
3360         * HttpWriter.cs (.ctor): Dont create teh StreamWriter twice
3361         (Clear): Don't recreate the MemoryStream and StreamWriter
3362
3363 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3364
3365         * HttpApplication.cs: only add/remove to/from the timeout
3366         manager when we're in a interruptible step.
3367
3368 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3369
3370         * TraceContext.cs: when IsEnabled has not been set, return the value
3371         from the TraceManager. Fixes bug #63469.
3372
3373 2004-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3374
3375         * HttpRuntime.cs: initialize the response writer when finishing a
3376         request because it cannot be queued. Under heavy load we made new
3377         requests be processed before the ones that might be queued. This is
3378         no longer the case.
3379
3380         * QueueManager.cs: instead of queueing/dequeuing separately, we now
3381         have a single method that does everything needed to decide which one
3382         will be the next request processed.
3383
3384 2004-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3385
3386         * HttpRuntime.cs: removed initializations to null in .cctor. Prevent
3387         other requests from avoiding the lock if they are received before the
3388         configuration system is inited. Ensure that the queue manager is not
3389         null before using it (it can be null while the first request is being
3390         processed).
3391
3392 2004-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3393
3394         * HttpServerUtility.cs: ensure we have a full virtual path for the
3395         request being executed.
3396
3397 2004-08-02  Duncan Mak  <duncan@ximian.com>
3398
3399         * ApplicationShutdownReason.cs: Fixed typos.
3400
3401         * HttpCookieMode.cs:
3402         * HttpDataTransferMode.cs:
3403         * HttpRequestPriority.cs: Added [Serializable] attribute.
3404         
3405 2004-08-02  Duncan Mak  <duncan@ximian.com>
3406
3407         * ApplicationShutdownReason.cs:
3408         * HttpCookieMode.cs:
3409         * HttpDataTransferMode.cs:
3410         * HttpRequestPriority.cs: Added 2.0 enumerations.
3411         
3412 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3413
3414         * HttpApplication.cs: the file not found might be a dependency.
3415
3416 2004-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3417
3418         * HttpCookie.cs: use invariant when formatting expires date. Fixes bug
3419         #61690.
3420
3421 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3422
3423         * HttpApplication.cs: don't keep the session around if we got it from
3424         the context. Fixes bug #61232.
3425
3426 2004-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3427
3428         * HttpUtility.cs: fixed stupid bug in UrlDecode from bytes. Closes bug
3429         #61181.
3430
3431 2004-07-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3432
3433         * TraceContext.cs: added internal HaveTrace property whose
3434         value is true when the page has a Trace attribute.
3435
3436 2004-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3437
3438         * TraceData.cs: fixed <br> output. Closes bug #60181.
3439
3440 2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3441
3442         * HttpUtility.cs: check for control characters in the string to encode
3443         or decode and return the same string if there are none.
3444
3445 2004-06-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3446
3447         * HttpApplication.cs: change/restore the IPrincipal in their own methods
3448         and make them internal.
3449
3450 2004-06-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3451
3452         * HttpContext.cs: reverting Pedro's patch and sending mail with test
3453         to mono-devel.
3454
3455 2004-06-09  Pedro Martnez Juli  <yoros@wanadoo.es>
3456
3457         * HttpContext: User property returns its own "user" value because
3458         the context can walk through different Threads. When "User" property
3459         is changed, change "Thread.CurrentPrincipal" too.
3460
3461 2004-06-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3462
3463         * HttpRequest.cs: removed extra ^Ms and fixed style of last patch.
3464
3465 2004-06-08  Alon Gazit  <along@mainsoft.com>
3466
3467         * HttpRequest.cs: Add a patch for HttpRequest.ServerVariables.
3468
3469 2004-06-07  Sebastien Pouliot  <sebastien@ximian.com>
3470
3471         * HttpContext.cs: User property now get/set Thread.CurrentPrincipal.
3472         Fix (at least partially) #59683.
3473
3474 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3475
3476         * HttpRequest.cs: reverting patch from Alon Gazit. Uses the above file
3477         that doesn't compile.
3478
3479 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3480
3481         * TraceData.cs: fixes nullref in an application that relies on
3482         r ["Message"] not being null. Closes bug #59679.
3483
3484 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3485
3486         * HttpCachePolicy.cs: implemented SetAllowResponseInBrowserHistory.
3487
3488 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3489
3490         * HttpRuntime.cs: implemented a 5 simple properties that were TODOs.
3491
3492 2004-06-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3493
3494         * HttpBrowserCapabilities.cs: implemented ClrVersion and GetClrVersions.
3495         * HttpException.cs: removed MonoTODO.
3496
3497 2004-06-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3498
3499         * TraceContext.cs: don't check if HttpRuntime.TraceManager
3500         is enabled when writing.
3501
3502 2004-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3503
3504         * HttpRequest.cs: added ClientTarget internal property.
3505
3506 2004-06-03  Lluis Sanchez Gual <lluis@ximian.com>
3507
3508         * HttpApplication.cs: Clear the http handler list after releasing the
3509           handlers.
3510
3511 2004-06-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3512
3513         * TraceData.cs: html-encode the messages written to the trace. Fixes
3514         bug #59431.
3515
3516 2004-06-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3517
3518         * HttpWorkerRequest.cs: the hashtables are now case-insensitive. Thanks
3519         to Markus Krutner.
3520
3521 2004-05-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3522
3523         * HttpRequest.cs: nullify _sRequestRootVirtualDir and baseVirtualDir
3524         when SetFilePath is called. This way the cached values are reset and
3525         get the right value in case someone (namely SessionStateModule + 
3526         cookieless session) changes the FilePath after the property cached its
3527         value. Fixes bug #59364.
3528
3529 2004-05-27      Patrik Torstensson <totte@hiddenpeaks.com>
3530
3531         * HttpApplicationFactory.cs: Added SignalError (still todo)
3532
3533 2004-05-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3534
3535         * HttpResponse.cs: remove hardcoded "HTTP/1.0" version that kept
3536         chunked encoding disabled. Fixed chunked suffix and end. Send the
3537         'lastchunk' marked when in the final Flush even if the content length
3538         is 0. This makes mod-mono-server work fine with chunked encoding.
3539          
3540         * HttpRuntime.cs: Set the _firstRequest* variables to true
3541         earlier. TraceContext don't take any parameter now.
3542
3543         * TraceManager.cs: don't need a context. Use GetAppConfig.
3544
3545 2004-05-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3546
3547         * HttpApplication.cs: set culture/uiculture from configuration and
3548         restore it after each step. Fixes bug #52851.
3549
3550 2004-05-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3551
3552         * HttpUtility.cs: use lower case in UrlEncode like MS does. Delay
3553         entities hashtable creation until it's really needed.
3554
3555 2004-05-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3556
3557         * HttpApplicationFactory.cs: if no module matches the name found for a
3558         possible event, ignore it. Fixes bug #58542.
3559
3560 2004-05-16      Patrik Torstensson <totte@hiddenpeaks.com>
3561
3562         * HttpRuntime (Init): Removed old todo
3563         * HttApplication : Implemented IHttpHandlerFactory recycling
3564         
3565 2004-04-28      Patrik Torstensson
3566
3567         * HttpApplicationState.cs: Performance, usage of ReaderWriter lock,
3568         removed MonoTodo
3569
3570 2004-04-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3571
3572         * HttpUtility.cs: return null in HtmlDecode for null input instead of
3573         throwing an exception. Patch by Jan Jaros (bug #57083).
3574
3575 2004-04-10  Vladimir Vukicevic  <vladimir@pobox.com>
3576
3577         * TimeoutManager.cs: Swap the order of initialization of contexts
3578         and the Timer, to avoid race condition of CheckTimeouts being called
3579         before contexts gets initialized.
3580
3581 2004-03-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3582
3583         * HttpRequestStream.cs: patch from Jan Jaros that fixes bug #56080.
3584         Now the posted file content does not have the boundaries and headers
3585         included.
3586
3587 2004-03-25  Alon Gazit <along@mainsoft.com>
3588
3589         * HttpRequest.cs: fix ValidateCookieCollection() to prevent
3590         InvalidCastException.
3591
3592 2004-03-15  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3593
3594         * HttpValueCollection.cs: don't UrlDecode cookies. Fixes bug #55254.
3595
3596 2004-03-01  Larry Ewing  <lewing@ximian.com>
3597
3598         * HttpUtility.cs: fix UrlEncodeToBytes count check.
3599
3600 2004-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3601
3602         * HttpServerUtility.cs:
3603         * HttpUtility.cs: added some checks for null. Fixed UrlPathEncode (bug
3604         #53670).
3605
3606 2004-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3607
3608         * HttpUtility.cs: fixed length check. Closes bug #54201.
3609         Thanks to Michal Moskal. Use MemoryStream instead of an ArrayList when
3610         decoding.
3611
3612 2004-02-11  Jackson Harper <jackson@ximian.com>
3613
3614         * TraceData.cs: Use ToString for cookie/header/var name values so
3615         null is handled properly.
3616         
3617 2004-02-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3618
3619         * HttpApplication.cs: ApplicationState is inited by the factory so,
3620         return that value in the property. when we use the context Session,
3621         cache it in the instance field.
3622
3623         * HttpApplicationFactory.cs: fixed target Type for the event when
3624         hooking application and module events. Initialize application
3625         and session scope objects. Fixes non-aplication events hook up.
3626
3627         * HttpStaticObjectsCollection.cs: added StaticItem and delay the
3628         creation of the objects until they are requested.
3629
3630 2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3631
3632         * HttpApplicationFactory.cs: fixlet for session events hook.
3633
3634 2004-01-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3635
3636         * HttpApplicationFactory.cs: attach all events from Type and BaseType
3637         at the same time. Fixes bug #53454.
3638
3639 2004-01-27  Jackson Harper <jackson@ximian.com>
3640
3641         * HttpCachePolicy.cs: varybyparams::GetResponseHeader can return
3642         null now, dont hadd the header if it does.
3643         * HttpCacheVaryByParams.cs: Return null if there are no items.
3644
3645 2004-01-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3646
3647         * HttpCachePolicy.cs: it's not public.
3648         * HttpRuntime.cs: wait for requests before disposing the queue.
3649
3650 2004-01-15  Jackson Harper <jackson@ximian.com>
3651
3652         * HttpCachePolicy.cs: Fix typo causing varyby params headers to be
3653         created when they shouldn't be.
3654         
3655 2004-01-14  Jackson Harper <jackson@ximian.com>
3656
3657         * TraceData.cs: Fix some typos in the output text. Fix control
3658         position when adding controls recursively.
3659         
3660 2004-01-14  Jackson Harper <jackson@ximian.com>
3661
3662         * HttpCachePolicy.cs: Expose duration and sliding properties.
3663         
3664 2004-01-14  Jackson Harper <jackson@ximian.com>
3665
3666         * HttpCachePolicy.cs: Add an event that is fired when the
3667         cacheability is updated. The response uses this to determine
3668         whether or not it needs to cache itself.
3669         * HttpResponse.cs: When the cacheability is updated either create
3670         or dispose of the cached raw response based on whether or not we
3671         wil need it. This allows output caching to be controlled
3672         programatically.
3673         
3674 2004-01-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3675
3676         * HttpContext.cs: add setter for ConfigTimeout.
3677         * HttpException.cs: added Description property and HTML encode some
3678         unescaped values.
3679
3680         * HttpRequest.cs: support request validation.
3681
3682         * HttpRequestValidationException.cs: added message and description.
3683
3684         * HttpServerUtility.cs: implemented ScriptTimeout.
3685
3686 2004-01-11  Jackson Harper <jackson@ximian.com>
3687
3688         * TraceManager.cs: Dont crash if there is no trace config element.
3689         
3690 2004-01-11  Jackson Harper <jackson@ximian.com>
3691
3692         * HttpRequest.cs: Add property for determining if the request is
3693         local or not.
3694         
3695 2004-01-10  Jackson Harper <jackson@ximian.com>
3696
3697         * TraceContext.cs: Handle tracing when it is enabled in the config
3698         file but not on the page.
3699         * TraceManager.cs: Get settings from the configuration object.
3700         * HttpRuntime.cs: Create trace manager in the first request start
3701         so it can get configuration settings.
3702         
3703 2004-01-10  Jackson Harper <jackson@ximian.com>
3704
3705         * TraceContext.cs: Save the request path in the trace data.
3706         * TraceData.cs: Add RequestPath property, make some rendering
3707         methods internal static so the TraceHandler can use them.
3708         * TraceManager.cs: Expose trace data, add a method for clearing
3709         trace data.
3710         
3711 2004-01-10  Jackson Harper <jackson@ximian.com>
3712
3713         * HttpRuntime.cs: Add trace manager
3714         * TraceManager.cs: New class for handling trace configuration and
3715         storing trace data objects.
3716         * TraceContext.cs: Save trace data to the trace manager. Fix typo.
3717         
3718 2004-01-10  Jackson Harper <jackson@ximian.com>
3719
3720         * TraceData.cs: New class for storing trace data. Data is stored
3721         here instead of the trace context so it can be saved and accessed
3722         from the trace handler.
3723         * TraceContext.cs: Save data in the TraceData object, let the
3724         trace data object handle the rendering.
3725         
3726 2004-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3727
3728         * HttpRequest.cs: use ContentEncoding for QueryString. Fixes bug #52577.
3729         Thanks to Jan Jaros (mono-bug@jerryweb.info).
3730
3731         * HttpRequestValidationException.cs: fix comment.
3732
3733 2004-01-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3734
3735         * HttpException.cs: default to error 500. Fixes bug #52623.
3736
3737 2004-01-04  Jackson Harper <jackson@ximian.com>
3738
3739         * TraceContext.cs: Store and render trace info times. Also render
3740         cookie sizes. Remove debug code.
3741         
3742 2004-01-04  Jackson Harper <jackson@ximian.com>
3743
3744         * HttpResponse.cs: Set the cached response date header so it can
3745         be updated.
3746         * HttpResponseHeader.cs: Let values be set so we can update cached 
3747         response header values.
3748         
3749 2004-01-04  Jackson Harper <jackson@ximian.com>
3750
3751         * HttpResponse.cs: Implement RemoveOutputCacheItem.
3752         
3753 2004-01-04  Jackson Harper <jackson@ximian.com>
3754
3755         * HttpCachePolicy.cs: Add internal method to get the vary by custom string
3756         * HttpCacheVaryByHeaders.cs: Add internal method to get the header names.
3757         
3758 2004-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3759
3760         * HttpRuntime.cs: implemented MachineConfigurationDirectory,
3761
3762 2004-1-1  Alon Gazit <along@mainsoft.com>
3763         * HttpWriter.cs: add check in Write() in order to prevent
3764         NullReferenceException.
3765
3766 2004-1-1  Alon Gazit <along@mainsoft.com>
3767         * HttpResponse.cs: implemented ExpiresAbsolute and Expires.
3768
3769 2003-12-18  Jackson Harper <jackson@ximian.com>
3770
3771         * TraceContext.cs: Write () methods are not warnings.
3772         
3773 2003-12-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3774
3775         * HttpBrowserCapabilities.cs: added GetClrVersions ().
3776         * HttpCachePolicy.cs: added SetAllowResponseInBrowserHistory ().
3777         * HttpContext.cs: added set_Current and RewritePath (s, s, s) for 1.1.
3778         * HttpRequest.cs: added set_ContentType, SetPathInfo and ValidateInput.
3779         * HttpRequestValidationException.cs: new class for 1.1
3780         * HttpResponse.cs: added RedirectLocation.
3781         * HttpRuntime.cs: added UnloadAppDomain.
3782         * HttpServerUtility.cs: Execute (s, t, b) is internal for < 1.2
3783         * HttpUtility.cs: copied UrlPathEncode from HttpServerUtility.
3784         * HttpWorkerRequest.cs: added [ComVisible] and made the ctor public.
3785
3786 2003-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3787
3788         * HttpContext.cs: implemented IsCustomErrorEnabled and
3789         IsDebuggingEnabled. Added internal ErrorPage property.
3790
3791         * HttpRuntime.cs: on error, check if we have a custom error page enabled
3792         to handle it and redirect.
3793
3794         * HttpResponse.cs: added RedirectCustomError (), which actually does
3795         the redirection to the error page.
3796         
3797 2003-12-16  Jackson Harper <jackson@ximian.com>
3798
3799         * TraceContext.cs: Render all the data, and the stylesheet.
3800         
3801 2003-12-16  Jackson Harper <jackson@ximian.com>
3802
3803         * TraceContext.cs: Add incomplete render method.
3804         
3805 2003-12-16  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3806
3807         * CapabilitiesLoader.cs: loads browser detection and capabilities data
3808         from browscap.ini file by Gary J. Keith.
3809
3810         * HttpBrowserCapabilities.cs: removed almost all TODOs.
3811
3812         * HttpRequest.cs: fixed Browser property.
3813
3814 2003-12-15  Jackson Harper <jackson@ximian.com>
3815
3816         * TraceContext.cs: Initial implementation of storing data.
3817         * HttpContext.cs: Create and expose a trace object.
3818         
3819 2003-12-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3820
3821         * HttpApplication.cs: ThreadAbortException is ok on Redirect.
3822         * HttpContext.cs: added TimeoutPossible property.
3823         * HttpResponse.cs: throw ThreadAbortException if End () is called within
3824         a step in which is possible to timeout.
3825
3826         Fixes bug #51703.
3827
3828 2003-12-04  Jackson Harper <jackson@ximian.com>
3829
3830         * HttpRequest.cs: Cleanup method.
3831         
3832 2003-12-04  Jackson Harper <jackson@ximian.com>
3833
3834         * HttpValueCollection.cs: Allow blank value names. Posting
3835         <blank>=SomeValue is valid. And occurs if a radio button does
3836         not have its name set.
3837         
3838 2003-12-03  Jackson Harper <jackson@ximian.com>
3839
3840         * HttpResponse.cs: Actually apply an app path modifier in
3841         ApplyAppPathModifer and add a method to set the app path modifier.
3842         * HttpRequest.cs: Add utility method for setting a request header.
3843         
3844 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3845
3846         * HttpApplication.cs: handle FileNotFound and DirectoryNotFound
3847         exceptions when creating the handler to generate a better error page.
3848
3849         * HttpException.cs: display the http_code if available.  Changed all
3850         \n by \r\n to make the hidden stack trace readable.
3851         
3852         * StaticFileHandler.cs: don't send the real path in th eerror.
3853
3854 2003-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3855
3856         * HttpContext.cs: updated GetConfig and GetAppConfig to new API.
3857         
3858         * HttpResponse.cs: separate initialization of the HttpWriter, as it
3859         tries to read configuration settings while the config. system is not
3860         available (ie, before the first request).
3861         
3862         * HttpRuntime.cs: delayed queueManager and response writer
3863         initialization until the configuration system is working.
3864
3865 2003-11-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3866
3867         * HttpRuntime.cs: added request queue handling.
3868
3869         * QueueManager.cs: simple request queue.
3870         
3871         * TimeoutManager.cs: added some locks to prevent the enumerator used in
3872         CheckTimeouts to be out of synch.
3873
3874 2003-11-25  Jackson Harper <jackson@ximian.com>
3875
3876         * HttpStaticObjectsCollection.cs: Add methods for serialization
3877         and conversion to/from byte arrays.
3878         
3879 2003-11-21  Jackson Harper <jackson@ximian.com>
3880
3881         * HttpResponse.cs: When caching data set the content length in the
3882         cached repsonse so that only that amount will be written back to
3883         the client. Add method to write a range of binary data.
3884         * HttpCacheVaryByParams.cs: Add method to retrieve param names.
3885         
3886 2003-11-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3887
3888         * HttpApplication.cs:
3889         * HttpContext.cs:
3890         * HttpRuntime.cs: add timeout handling.
3891         * TimeoutManager.cs: new class that takes care of aborting threads on
3892         timeout.
3893
3894 2003-11-19  Jackson Harper <jackson@ximian.com>
3895
3896         * HttpWriter.cs: Use a constant for the buffer size so the cache
3897         can get the buffer size. Add method to get the buffer.
3898         * HttpResponse.cs: Methods for getting data to cache, and setting
3899         vars from the cache.
3900         * HttpCachePolicy.cs: Expose a pages cache expire time.
3901         
3902 2003-11-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3903
3904         * HttpResponse.cs: 
3905         * HttpWriter.cs: some fixes to allow closing a response stream without
3906         messing the rest.
3907
3908 2003-11-13  Jackson Harper  <jackson@ximian.com>
3909
3910         * HttpCachePolicy.cs: Make sure cacheability and maxage get
3911         set. Add method to set Http response header data
3912         * HttpCacheVaryByParams.cs: Add method to create a response header.
3913         * HttpCacheability.cs: Add ServerAndPrivate and ServerAndNoCache.
3914         * HttpResponse.cs: Set cache headers.
3915         
3916 2003-11-11 Ben Maurer  <bmaurer@users.sourceforge.net>
3917
3918         * HttpModuleCollection.cs (GetKey): Recursion, again!
3919
3920 2003-11-11 Ben Maurer  <bmaurer@users.sourceforge.net>
3921
3922         * HttpClientCertificate.cs (ValidUntil): recursion!
3923
3924 2003-11-08 Ben Maurer  <bmaurer@users.sourceforge.net>
3925
3926         * SiteMapNode.cs (GetDataSourceView): Implement.
3927         * SiteMapProvider.cs: Typo fixing.
3928         * XmlSiteMapProvider.cs: We shouldnt resolve here.
3929         
3930 2003-11-08 Ben Maurer  <bmaurer@users.sourceforge.net>
3931
3932         * SiteMap.cs (Init): implement a hack that doesnt need the config
3933         stuff. Should do that later.
3934         * SiteMapNodeCollection (OnValidate): Fix recursion.
3935         * SiteMapProvider.cs: We dont implement some culture stuff work
3936         around it. Fix typo.
3937         * XmlSiteMapProvider.cs: Added.
3938         
3939 2003-11-07 Ben Maurer  <bmaurer@users.sourceforge.net>
3940
3941         * ISiteMapProvider.cs:
3942         * SiteMap.cs:
3943         * SiteMapNode.cs:
3944         * SiteMapNodeCollection.cs:
3945         * SiteMapProvider.cs:
3946         * SiteMapProviderCollection.cs: V2 sitemap related stuff.
3947
3948 2003-11-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3949
3950         * HttpRequest.cs: don't attempt to read more bytes than specified
3951         content length.
3952
3953 2003-11-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3954
3955         * HttpRequest.cs:
3956         * HttpResponse.cs:
3957         * HttpUtility.cs:
3958         * HttpValueCollection.cs: encoding fixes/updates.
3959
3960         * HttpWriter.cs: when updating the encoding, flush the existing stream.
3961         Encoding updates.
3962
3963 2003-11-04 Ben Maurer  <bmaurer@users.sourceforge.net>
3964
3965         * HttpContext.cs (IsCustomErrorEnabled): dont throw exception, just
3966         return false (which makes sense, as the custom errors *arent* enabled;
3967         ie they dont work.
3968         * HttpResponseStream.cs: you actually can write with len = 0
3969
3970 2003-11-03 Jackson Harper <jackson@ximian.com>
3971
3972         * HttpResponse.cs (ContentEncoding): Throw
3973         ArgumentNullException. Patch by Yaron Shkop.
3974         
3975 2003-10-30  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
3976
3977         * HttpMultipartContentParser.cs : Quick fix for cygwin build. 
3978           CSC complains that constant char cannot be casted as byte.
3979
3980 2003-10-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3981
3982         * HttpApplication.cs: added AssemblyLocation property.
3983
3984 2003-10-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3985
3986         * HttpApplicationFactory.cs: use NoParamsInvoker.
3987         * HttpRequest.cs: support request filters.
3988         * HttpRequestStream.cs: mono-stylized and added new Set method.
3989
3990         * NoParamsInvoker.cs: proxy class to invoke user-provided methods
3991         without parameters that are invoked by EventHandlers.
3992
3993 2003-10-13  Lluis Sanchez Gual <lluis@ximian.com>
3994
3995         * HttpResponse.cs: Changed harcoded switch to en-US culture to a switch
3996           to invariant culture.
3997
3998 2003-10-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
3999
4000         * HttpResponse.cs:
4001         * HttpServerUtility.cs: change the response writer in Execute. Thanks
4002         to Rich Alimi <rich@velvetsea.net> for noticing this.
4003
4004 2003-10-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4005
4006         * HttpApplicationFactory.cs: support for wiring up events without
4007         parameters.
4008
4009 2003-10-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4010
4011         * HttpUtility.cs: small memory usage reduction.
4012
4013 2003-10-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4014
4015         * HttpApplication.cs: pass the Uri, not the file path to
4016         when looking for a handler.
4017
4018 2003-09-21  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4019
4020         * HttpRequest.cs: small fix needed when reading big POST data.
4021
4022 2003-09-04  Lluis Sanchez Gual <lluis@ximian.com>
4023
4024         * HttpRequest.cs: Url property: use GetLocalAddress() to get the address
4025           (this will get the address from the request headers).
4026
4027 2003-09-04  Lluis Sanchez Gual <lluis@ximian.com>
4028
4029         * HttpServerUtility.cs: In Transfer(), preserve the query string if
4030           told to do so.
4031
4032 2003-08-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4033
4034         * HttpApplication.cs: ensure we do all the EndRequest steps. Don't
4035         filter the output on error.
4036         
4037         * HttpResponse.cs: modified DoFilter to allow bypassing filtering.
4038
4039 2003-08-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4040
4041         * HttpApplication.cs: when the request is completed or an
4042         error happens, execute all the delegates attached to EndRequest, not
4043         only the last one. This makes xsp/test/authtest work again.
4044         
4045         * HttpMethodNotAllowedHandler.cs: fixed description for http
4046         status code.
4047
4048 2003-08-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4049
4050         * HttpRequest.cs: quick way of checking that the path is within the
4051         root for the application. Thanks to Johannes for reporting.
4052         
4053         * HttpRuntime.cs: use the status code from teh exception when it'ss a
4054         HttpException.
4055
4056         * StaticFileHandler.cs: forbidden is 403.
4057
4058 2003-08-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4059
4060         * HttpServerUtility.cs: fixed path and query. Path by Rich Alimi
4061         <rich@velvetsea.net>.
4062
4063 2003-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4064
4065         * HttpException.cs: make the unhandled error more like the MS one.
4066         * HttpRuntime.cs: set a 500 error code on unhandled exceptions.
4067
4068 2003-08-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4069
4070         * HttpResponse.cs: flush headers when the body length is 0.
4071         * StaticFileHandler.cs: added If-Modified-Since handling patch slightly
4072         modified from the original by Piers Haken <piersh@friskit.com>.
4073
4074 2003-08-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4075
4076         * HttpResponse.cs: another patch from totte and me. This one prevents
4077         writing output if the client have disconnected and filters the data
4078         when there's a non-final Flush in the middle of the process.
4079
4080 2003-08-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4081
4082         * HttpApplication.cs: fixed typos. Closes bug #44197.
4083
4084 2003-08-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4085
4086         * HttpApplication.cs:
4087         * HttpApplicationFactory.cs: fix duplicate application OnStart events.
4088
4089         Patch by Patrik Torstensson.
4090
4091 2003-08-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4092
4093         * HttpApplicationFactory.cs: use the correct Delegate.CreateDelegate
4094         overload. The previous one only admits static methods.
4095
4096 2003-08-01  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
4097
4098         * ProcessModelInfo.cs: Fixed signature
4099
4100 2003-07-30  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
4101
4102         * WebCategoryAttribute.cs: Implemented localization
4103         * WebSysDescriptionAttribute.cs: Implemented localization
4104
4105 2003-07-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4106
4107         * HttpRuntime.cs: also clear the headers that may have been set upon
4108         error processing the request.
4109
4110 2003-07-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4111
4112         * HttpResponseStreamProxy.cs: reformatted. Fixed infinite recursion in
4113         Write method.
4114
4115         * HttpWriter.cs: flush the filter after writing.
4116
4117 2003-07-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4118
4119         * HttpWriter.cs: avoid duplicating the MemoryStream byte buffer.
4120
4121 2003-07-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4122
4123         * HttpContext.cs: Session doesn't have a setter.
4124
4125         * HttpResponse.cs: Request is private.
4126
4127 2003-07-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4128
4129         * HttpRequest.cs: fixed Headers property. It was getting known headers
4130         values instead of known headers names.
4131
4132 2003-07-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4133
4134         * HttpApplication.cs: prevent nullref if an error happens before context
4135         is set.
4136         * HttpException.cs: small fix in the stack trace sent.
4137         * HttpUtility.cs: the lock is not needed.
4138
4139 2003-06-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4140
4141         * HttpRequest.cs: added REMOTE_PORT.
4142         * HttpValueCollection.cs: fixed bug #45490.
4143
4144 2003-05-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4145
4146         * HttpApplication.cs:
4147         * HttpApplicationFactory.cs: fire application start and session
4148         start/end events.
4149
4150 2003-05-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4151
4152         * HttpException.cs: encode as HTML the inner exception that
4153         is appended as a comment at the end of error pages.
4154
4155 2003-05-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4156
4157         * HttpWriter.cs: don't do anything in Flush. Fixes #42249.
4158
4159 2003-05-01  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4160
4161         * HtmlizedException.cs: added more virtual methods.
4162
4163         * HttpException.cs:  some work on the output when there's a source
4164         file present.
4165
4166 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4167
4168         * HtmlizedException.cs: simplified to cope with the new interface.
4169
4170         * HttpApplicationFactory.cs: use the application file parser to get the 
4171         application Type.
4172         
4173         * HttpException.cs: small changes. Needs some more work on
4174         ParseExceptions.
4175         
4176 2003-03-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4177
4178         * HttpRequest.cs: fixed Url property.
4179
4180 2003-03-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4181
4182         * HtmlizedException.cs:
4183         * HttpException.cs: display the correct line number in error messages.
4184
4185 2003-03-22  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4186
4187         * HttpCachePolicy.cs: implemented all TODOs.
4188         * HttpRequestStream.cs: make it internal.
4189
4190 2003-03-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4191
4192         * HttpContext.cs: implemented RewritePath in other way.
4193         * HttpRequest.cs: removed SetPhysicalPath and added SetForm.
4194         * HttpServerUtility.cs: implemented Transfer (string, bool).
4195
4196 2003-03-16  Daniel Lopez Ridruejo <daniel @ rawbyte.com>
4197         * HttpContext.cs : Implemented RewritePath
4198         * HttpRequest.cs : Added internal function SetPhysicalPath
4199
4200 2003-03-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4201
4202         * HttpServerUtility.cs: implemented Transfer ().
4203
4204 2003-03-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4205
4206         * HttpRuntime.cs: Cache no longer have a Dispose method.
4207
4208         * HttpServerUtility.cs: removed MonoTODO.
4209
4210 2003-03-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4211
4212         * HttpHelper.cs: store the values in an ArrayList to get them in correct
4213         order.
4214
4215 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4216
4217         * HttpApplicationFactory.cs: Global.asax takes precedence over
4218         global.asax if it exists.
4219
4220         * HttpRequest.cs: use allowCrossAppMapping in MapPath.
4221
4222 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4223
4224         * HttpApplication.cs: CreateHttpHandler is now internal.
4225
4226         * HttpRequest.cs: allow setting QueryStringRaw, which
4227         invalidates the data obtained from the previous value. Added internal
4228         SetFilePath method.
4229
4230         * HttpServerUtility.cs: implemented Execute and GetLastError.
4231
4232 2003-02-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4233
4234         * HttpServerUtility.cs: style.
4235
4236 2003-02-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4237
4238         * HttpApplication.cs: only execute the EndRequest step on error
4239         condition or request marked as completed. This prevent page events from
4240         being called when, for example, the url authorization module forbids
4241         the request.
4242
4243 2003-02-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4244
4245         * HttpRequest.cs: implemented the indexer.
4246
4247 2003-02-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4248
4249         * HtmlizedException.cs: base class for exceptions that makes it easy to
4250         generate error pages.
4251
4252         * HttpException.cs: improved error displaying.
4253
4254         * HttpRuntime.cs: removed debugging output.
4255
4256 2003-02-06  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4257
4258         * HttpApplication.cs: display the error instead of hanging when we get
4259         any error before the last step of the request.
4260
4261 2003-02-04  Tim Haynes <thaynes@openlinksw.com>
4262
4263         * HttpApplicationFactory.cs: fixed HttpRuntime.Close() to decrement
4264         instance counter.
4265
4266 2003-01-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4267
4268         * HttpRequest.cs: added BaseVirtualDir property and use it in MapPath.
4269
4270 2003-01-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4271
4272         * HttpRequest.cs: implemented CurrentExecutionFilePath.
4273
4274 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4275
4276         * HttpApplication.cs: keep _lasterror if no context. Attach
4277         application events *after* modules initialization (if not, User is not
4278         set when the user handler is called).
4279         
4280         * HttpApplicationFactory.cs: made all methods related to
4281         AttachEvents static. I will fix OnStart/OnEnd for application and
4282         session later.
4283         
4284         * HttpRequest.cs: don't initialize cookies twice.
4285
4286 2003-01-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4287
4288         * HttpResponse.cs:
4289         (ApplyAppPathModifiers): return the root directory for "".
4290
4291 2003-01-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4292
4293         * HttpUtility.cs: fixed HtmlDecode to avoid ArgumentOutOfRangeException.
4294
4295 2003-01-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4296
4297         * HttpApplication.cs: added new state to handle default authentication.
4298
4299 2003-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4300
4301         * HttpContext.cs: removed hack to get the User.
4302
4303 2003-01-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4304
4305         * HttpUtility.cs: fixed bug #36038. Thanks to juancri@tagnet.org for
4306         reporting the bug and how to fix it.
4307
4308 2002-12-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4309
4310         * HttpCookie.cs: send 'expires' in the header.
4311
4312 2002-12-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4313
4314         * HttpValueCollection.cs: patch from Botjan Vizin 
4315         <bostjan.vizin@siol.net> that implements ToString (bool).
4316
4317 2002-12-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4318
4319         * HttpApplicationFactory.cs: add the context as parameter when building
4320         the application Type.
4321         
4322         * HttpCookie.cs: new internal constructor.
4323         * HttpCookieCollection.cs: new internal method to make a cookie expire.
4324
4325         * HttpRequest.cs: MapPath fixes.
4326         * HttpResponse.cs: implemented ApplyAppPathModifier.
4327         * HttpRuntime.cs: fixed typo in AppDomainAppVirtualPath.
4328
4329 2002-12-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4330
4331         * HttpContext.cs: hack to create a default user when there's no one.
4332         Implemented GetConfig (string).
4333
4334         * HttpRequest.cs: fixes to MapPath (string).
4335
4336 2002-12-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4337
4338         * HttpRuntime.cs: avoid nulls and exception when getting resource
4339         format strings.
4340
4341         * StaticFileHandler.cs: added file name to error message.
4342
4343 2002-12-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4344
4345         * HttpResponse.cs: avoid sending chunked content for HTTP/1.1.
4346
4347 2002-12-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4348
4349         * HttpApplicationFactory.cs: get the events from the application class,
4350         fire Application/Session Start/End and add the others as application
4351         events.
4352
4353 2002-11-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4354
4355         * HttpApplicationFactory.cs: compile global.asax file if it exists.
4356
4357 2002-11-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4358
4359         * HttpRequest.cs: provide a default Browser until we detect it.
4360         * HttpResponse.cs:
4361         (End): do not close the connection here.
4362         (Flush (bool)): send the headers when, for example, Redirect () is
4363         called.
4364
4365 2002-11-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4366
4367         * HttpException.cs: simple error output.
4368
4369 2002-11-12  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4370
4371         * HttpApplication.cs: style.
4372         * HttpException.cs: style.
4373         * HttpRuntime.cs: only flush the response if there are no errors.
4374         Otherwise, write an error output.
4375         * HttpWriter.cs: change Unicode to UTF8.
4376
4377 2002-11-09  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4378
4379         * HttpApplication.cs: don't begin the request using ExecuteNextAsync
4380         (it fails to work on NetServ).
4381
4382         * HttpWorkerRequest.cs: typo.
4383
4384 2002-11-07  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4385
4386         * HttpValueCollection.cs: the value may contain trailing '=' as it is
4387         UrlEncoded. Don't split name=value based on '='.
4388
4389 2002-11-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4390
4391         * HttpCookie.cs: made GetCookieHeader internal.
4392
4393         * HttpRequest.cs: get cookies from request.
4394
4395         * HttpResponse.cs: send cookies. Implemented
4396         AddFileDependencies (). Added check for _Writer == null in Flush
4397         (Patrik ;-). Clear the content if HEAD or SupressContent == true.
4398         Removed redirect hack used in old server.
4399
4400 2002-10-31  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4401
4402         * HttpRequest.cs: fixed GetRawContent (). Now it only tries to read at
4403         most ContentLength bytes.
4404
4405         * HttpResponse.cs: now it sends the headers. Added
4406         X-Powered-By header :-).
4407
4408         * HttpRuntime.cs: fixed typo.
4409
4410         * HttpValueCollection.cs: cosmetic changes.
4411
4412 2002-10-27  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4413
4414         * HttpApplication.cs: reenabled a few lines of code
4415         (ThreadPool already fixed). 
4416         
4417         * HttpRequest.cs:
4418         * HttpResponse.cs:
4419         * HttpUtility.cs:
4420         * HttpValueCollection.cs:
4421         * HttpWriter.cs: Use WebEncoding.Encoding.
4422
4423 2002-10-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4424
4425         * HttpWriter.cs: changed encoding of the writer from Unicode to UTF8.
4426         This fixes sending bytes and allows mixing byte with chars.
4427
4428 2002-10-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4429
4430         * HttpResponse.cs: implemented WriteFile methods.
4431         * MimeTypes.cs: removed duplicated entries.
4432
4433 2002-10-24  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4434
4435         * HttpResponse.cs: don't throw exception in a couple of
4436         methods not yet implemented.
4437
4438 2002-10-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4439
4440         * HttpApplication.cs: fixed type and handle factories when creating
4441         IHttpHandler for a request.
4442
4443 2002-10-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4444
4445         * HttpApplication.cs: use handlers from configuration.
4446         * HttpContext.cs: get handlers from ConfigurationSettings.
4447
4448 2002-10-02  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4449
4450         * HttpMethodNotAllowedHandler.cs:
4451         * HttpRuntime.cs:
4452         * StaticFileHandler.cs: Modified file.
4453
4454         * HttpUtility.cs: implemented all missing methods.
4455
4456
4457 2002-09-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4458
4459         * System.Web/HttpApplication.cs: use the static file handler.
4460         * System.Web/HttpForbiddenHandler.cs: handler to forbid access.
4461         * System.Web/HttpMethodNotAllowedHandler.cs: handler for method not
4462         allowed.
4463         
4464         * System.Web/HttpUtility.cs: finished all UrlDecode methods.
4465         * System.Web/MimeTypes.cs: map from file extension to MIME type.
4466         * System.Web/StaticFileHandler.cs: serves static files
4467
4468 2002-09-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4469
4470         * System.Web/HttpApplication.cs:
4471         * System.Web/HttpApplicationFactory.cs:
4472         * System.Web/HttpRequest.cs:
4473         * System.Web/HttpRuntime.cs: we are now able to compile pages and use
4474         HttpApplication, HttpRuntime and SimpleWorkerRequest.
4475
4476 2002-09-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4477
4478         * HttpApplication.cs: added some missing methods.
4479         * HttpApplicationFactory.cs: get event handlers for the application.
4480         * HttpAsyncResult.cs: little fixes.
4481         * HttpRequest.cs: make Encoding work even with no worker request.
4482
4483 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4484
4485         * HttpWorkerRequest.cs: mcs doesn't go crazy. It's just me, that forgot
4486         to add HttpMapPath to the list file...
4487
4488 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4489
4490         * HttpWorkerRequest.cs: fixes compilation with mcs. I will add a bug
4491         report when i get a test case.
4492
4493 2002-08-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4494
4495         * HttpApplicationFactory.cs:
4496         * HttpCachePolicy.cs:
4497         * HttpResponseHeader.cs:
4498         * HttpResponseStream.cs:
4499         * HttpResponseStreamProxy.cs:
4500         * HttpValueCollection.cs: misc. fixes based on class status page.
4501
4502         * IHttpMapPath.cs: New file.
4503
4504         * HttpRequest.cs: implemented ContentEncoding.
4505         * HttpWorkerRequest.cs: mono-stylized and implemented
4506         SendResponseFromMemory.
4507
4508 2002-08-18  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4509
4510         * HttpContext.cs: reformatted.
4511         * HttpStaticObjectsCollection.cs: implemented GetEnumertor, CopyTo and
4512         the indexer.
4513
4514 2002-08-05  Patrik Torstensson <ptorsten@hotmail.com>
4515
4516         * HttpApplication.cs: Implemented a state machine to allow handling of
4517         HttpModules and HttpHandlers. Implementation of async handlers. 
4518                                                                  
4519         * HttpApplicationFactory.cs: Factory for creating HttpApplication
4520         instances, including caching.
4521         
4522         * HttpRuntime.cs: Usage of the new HttpApplicationFactory to get a
4523         application instance to execute requests in and implementation of 
4524         request execution (still no request queue). 
4525                                                          
4526         * HttpAsyncResult.cs: New file to handle async module results.                                          
4527                                                          
4528         * HttpRequest.cs: Change signature of Dispose
4529         * HttpResponse.cs: new internal method allowing filtering to happen
4530         during the request flow in the state machine.
4531
4532 2002-07-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4533
4534         * HttpApplication.cs: events were not being initialized.
4535
4536 2002-07-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4537
4538         * ProcessModelInfo.cs: fixed compilation.
4539
4540 2002-07-25  Tim Coleman <tim@timcoleman.com>
4541         * ProcessModelInfo.cs:
4542                 New class added
4543         * HttpParseException.cs:
4544         * HttpCompileException.cs:
4545         * HttpUnhandledException.cs:
4546                 Internal constructors added to these
4547
4548 2002-07-24  Tim Coleman <tim@timcoleman.com>
4549         * ProcessInfo.cs: 
4550                 Fix constructor, reference to shutdownreason.
4551
4552 2002-07-24  Tim Coleman <tim@timcoleman.com>
4553         * HttpCachePolicy.cs:
4554                 Added stubbs to this class.
4555         * HttpCacheability.cs:
4556         * HttpCacheRevalidation.cs:
4557         * HttpValidationStatus.cs:
4558         * ProcessShutdownReason.cs:
4559         * ProcessStatus.cs:
4560         * TraceMode.cs:
4561                 Reorder the enumerations (and in some cases make
4562                 one-based) in order to agree with the .NET 
4563                 implementation, based on the class status page.
4564         * ProcessInfo.cs:
4565                 Implementation of this class.
4566
4567 2002-07-23  Tim Coleman <tim@timcoleman.com>
4568         * HttpCompileException.cs:
4569         * HttpParseException.cs:
4570         * HttpUnhandledException.cs:
4571                 New stubbs created.
4572         * HttpApplication.cs:
4573         * HttpBrowserCapabilities.cs:
4574                 Added missing methods stubbs and attributes based
4575                 on the class status page.  Also reformatted some
4576                 source for consistency.
4577
4578 2002-07-23  Tim Coleman <tim@timcoleman.com>
4579         * HttpUtility.cs: Moved entities hashtable into main
4580                 class as a static object, so we don't instantiate
4581                 a new one every time.  Also put the hashtable
4582                 building into a lock block.
4583
4584 2002-07-22  Tim Coleman <tim@timcoleman.com>
4585         * HttpUtility.cs: Cleanup of the code, implementation
4586                 of HtmlDecode/HtmlEncode functions
4587
4588 2002-07-14  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4589
4590         * HttpResponse.cs: quick&dirty hack to make redirection work. Should
4591         be out of there once we have SimpleWorkerRequest.
4592
4593 2002-07-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4594
4595         * HttpUtility.cs: little typo, big headache.
4596
4597 2002-07-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4598
4599         * HttpRuntime.cs: don't throw NotImplemented in a couple of methods.
4600
4601 2002-06-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4602
4603         * System.Web/HttpResponse.cs: 
4604
4605         Fixes based on class status page:
4606         
4607                 - Add attributes (DefaultEvent, ParseChildren).
4608                 - Fix declarations.
4609                 - Explicitly implement some interfaces (IPostBackDataHandler
4610                 and IPostBackEventHandler).
4611                 - Implemented some missing methods.
4612
4613 2002-06-29  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4614
4615         * HttpContext.cs:
4616         (Session): return null instead of throwing an exception.
4617
4618         * HttpRequest.cs:
4619         (HttpMethod): return RequestType if not set.
4620         (GetRawContent): return QueryString if we don't have a
4621         HttpWorkerRequest.
4622
4623         * HttpUtility.cs: fixed Decode and Encode.
4624
4625 2002-06-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4626
4627         * HttpApplication.cs:
4628         * HttpContext.cs: added System.Web.SessionState namespace.
4629
4630         * HttpSessionState.cs: removed. It is under
4631         System.Web.SessionState.
4632
4633 2002-06-10  Duncan Mak  <duncan@ximian.com>
4634
4635         * HttpBrowserCapabilities.cs (BackgroundSounds): Fixed typo.
4636
4637 2002-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4638
4639         * HttpRequest.cs: implemented Browser property.
4640
4641 2002-06-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
4642
4643         * HttpBrowserCapabilities.cs: stubbed out.
4644
4645 2002-05-18  Miguel de Icaza  <miguel@ximian.com>
4646
4647         * HttpRuntime.cs: Reformat file.
4648
4649 2002-05-07  Duncan Mak  <duncan@ximian.com>
4650
4651         * HttpBrowserCapabilities.cs: Added, replacing
4652         HttpBrowserCapabilites because of typo.
4653
4654         * HttpBrowserCapabilites.cs: Removed, replaced by above.
4655
4656         * HttpRequest.cs (Browser): Fixed typo.
4657
4658 2002-04-12  Patrik Torstensson <patrik.torstensson@labs2.com>
4659
4660         * HttpApplication.cs: Minor updates
4661         * HttpApplicationState.cs: Ready.
4662         * HttpClientCertificate.cs: Signature updates
4663         * HttpValueCollection.cs: ready
4664         * HttpStaticObjectsCollection.cs: ready
4665         * HttpResponseHeader.cs: made internal only
4666         * HttpResponse.cs: Signature updates
4667         * HttpPostedFile.cs: ready
4668         * HttpCacheVaryByHeaders.cs: ready (except communication to policy)
4669         * HttpCacheVaryByParams.cs: ready (except communication to policy)
4670         
4671         System.Web is now over 60% ready.. 
4672
4673 2002-04-11  Patrik Torstensson <patrik.torstensson@labs2.com>
4674
4675         * HttpException.cs: 95% ready, only windows dependent code left
4676         * HttpFileCollection.cs: Finished.
4677         * HttpRequest.cs: Minor fixes and fixed signature problems
4678         * HttpResponse.cs: Implementation of missing methods and signature problems
4679         * HttpResponseHeader.cs: Fixed signature problems
4680         * HttpRuntime.cs: Fixed signature problems
4681         * HttpServerUtility.cs: Added support for HttpApplication
4682         * HttpSessionState.cs: Fixed signature issues
4683         * HttpUtility.cs: fixed signature issues
4684         * HttpValueCollection.cs: Support for cookie parsing and fixed signature issues
4685         * HttpWorkerRequest.cs: Fixed small signature issue
4686         * HttpWriter.cs: Fixed signature issue
4687         * HttpApplication.cs: Basic implementation
4688         * HttpApplicationState.cs: Small fixes to support major change comming up
4689         * HttpBrowserCapabilities.cs: Added Type method
4690         * HttpClientCertificate.cs: Almost ready, needs to parse certificate.
4691         * HttpContext.cs: Fixed signature issues and added last methods.
4692         * HttpCookie.cs: Full implementation
4693         * HttpCookieCollection.cs: Full implementation
4694         * TraceContext.cs: Methods implemented.
4695         * HttpPostedFile.cs: Placeholder
4696         * HttpStaticObjectsCollection.cs: Placeholder
4697         * HttpModuleCollection.cs: Ready, will be used during the major revamp.
4698         
4699         * Fixed a number of other small signature problems also (class status page)
4700         
4701         
4702 2002-04-10  Patrik Torstensson <patrik.torstensson@labs2.com>
4703
4704     * HttpWorkerRequest.EndOfSendNotification.cs Removed (included in WorkerRequest)
4705     * Checkin of all new files (noted in last changenote)
4706
4707 2002-04-10  Patrik Torstensson <patrik.torstensson@labs2.com>
4708
4709     * HttpContext.cs: First implementation (basic support, few methods left to impl)
4710     * HttpException.cs: Partial implementation (basic support)
4711     * HttpHelper.cs: Header parse helper, used by runtime (non public)
4712     * HttpRequest.cs: Implementation (all methods there, not all fully impl)
4713     * HttpRequestStream.cs: Full implementation
4714     * HttpResponse.cs: Partial implementation(almost all methods)
4715     * HttpResponseHeader.cs: Header helper
4716     * HttpResponseStream.cs: Full implementation - Response stream support
4717     * HttpResponseStreamProxy.cs: Implementation - filter support
4718     * HttpRuntime.cs: Rewrite to support one IHttpModule (use for testing the runtime)
4719         * HttpServerUtility.cs: Implemented usage of HttpContext for methods
4720                                 and moved encoding functions to HttpUtility.
4721
4722     * HttpUtility.cs: Added encoding/decoding functions from HttpServerUtility and
4723                       added the Attribute encoding functions.
4724
4725     * HttpValueCollection.cs: Implementation.
4726     * HttpWorkerRequest.cs: Rewrite and implementation of all methods (ready)
4727     * HttpWriter.cs: Implementation (with filter support)    
4728
4729     * HttpFileCollection: Added dummy class (placeholder)
4730     * HttpApplication.cs: Added dummy class (placeholder)
4731     * HttpApplicationState.cs: Added dummy class (placeholder)
4732     * HttpBrowserCapabilities.cs: Added dummy class (placeholder)
4733     * HtttpCachePolicy.cs: Added dummy class (placeholder)
4734     * HttpClientCertificate.cs: Added dummy class (placeholder)
4735     * HttpSessionState.cs: Added dummy class (placeholder)
4736     * TraceContext.cs: Added dummy class (placeholder)
4737     
4738
4739 2002/04/10  Nick Drochak <ndrochak@gol.com>
4740
4741         * HttpServerUtility.cs: Fix build breaker.
4742
4743 2002-03-28  Wictor Wiln  <wictor@iBizkit.se>
4744
4745         * HttpServerUtils.cs : Added some more functionality
4746         
4747 2002-03-28  Martin Baulig  <martin@gnome.org>
4748
4749         * HttpServerUtils.cs (UrlDecode): You cannot implicitly cast a
4750         char to a string, use ToString() instead.
4751
4752 2002-03-16  Gaurav Vaish  <gavish@iitk.ac.in>
4753
4754         * WebCategoryAttribute.cs
4755                                : Added private attribute.
4756
4757 2002-03-16  Gaurav Vaish  <gavish@iitk.ac.in>
4758
4759         * HttpRuntime.cs       : Stubbed methods for
4760                   FormatStringResource(...) in agreement with the various
4761                   overloads available at String.Format(...)
4762
4763 2002-01-08  Gaurav Vaish  <gavish@iitk.ac.in>
4764
4765         * TODOAttribute.cs     : Added, as an internal class to the assembly
4766
4767 2002-01-03  Nick Drochak  <ndrochak@gol.com>
4768
4769         * HttpRuntime.cs: remove uneeded exception variable from catch and
4770         initialize remaining instance members to avoid compile warnings
4771
4772 2002-01-02  Nick Drochak  <ndrochak@gol.com>
4773
4774         * HttpRuntime.cs: fix spelling error/variable name change.
4775
4776 2001-12-18  Gaurav Vaish <gvaish@iitk.ac.in>
4777
4778         * HttpRuntime.cs       : Initial implementation
4779
4780 2001-08-29  Bob Smith  <bob@thestuff.net>
4781
4782         * HttpWorkerRequest.cs: Partial Implementation.
4783
4784 2001-08-16  Bob Smith  <bob@thestuff.net>
4785
4786          * HttpCookieCollection.cs, HttpCookie.cs: Bug fixes.
4787
4788 2001-08-09  Bob Smith  <bob@thestuff.net>
4789
4790          * BeginEventHandler.cs: Implemented.
4791          * EndEventHandler.cs: Implemented.
4792          * HttpCacheability.cs: Implemented.
4793          * HttpCacheRevalidation.cs: Implemented.
4794          * HttpCacheValidateHandler.cs: Implemented.
4795          * HttpCookieCollection.cs: Implemented.
4796          * HttpCookie.cs: Implemented.
4797          * HttpValidationStatus.cs: Implemented.
4798          * HttpWorkerRequest.EndOfSendNotification.cs: Implemented.
4799          * IHttpAsyncHandler.cs: Implemented.
4800          * IHttpHandler.cs: Implemented.
4801          * IHttpHandlerFactory.cs: Implemented.
4802          * IHttpModule.cs: Implemented.
4803          * ProcessShutdownReason.cs: Implemented.
4804          * ProcessStatus.cs: Implemented.
4805          * TraceMode.cs: Implemented.