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