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