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