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