1 2006-11-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3 * HttpServerUtility.cs: don't prepend extra '?' when the original url
4 already has a query string. Fixes bug #80042.
6 2006-11-24 Miguel de Icaza <miguel@novell.com>
8 * HttpApplicationFactory.cs (InitType): Also look for "Web.Config"
11 2006-11-20 Marek Habersack <grendello@gmail.com>
13 * HttpApplication.cs: Added support for automatic detection of
14 user's preferred language.
16 2006-11-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18 * HttpApplication.cs: don't leak the directory name for non-local
21 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23 * CapabilitiesLoader.cs: made the hasstable that contains the properties
24 for the brower case insensitive. Fixes bug #79795.
26 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28 * HttpResponse.cs: fix typo that prevented Server.Execute from restoring
29 the initial output stream used. Closes bug #79916.
31 2006-11-12 Marek Habersack <grendello@gmail.com>
33 * HttpContext.cs: Implemented the 2.0 RewritePath overloads.
35 2006-11-08 Marek Habersack <grendello@gmail.com>
37 * HttpRuntime.cs: Moved the resource compiler results handling to
38 the resource compiler itself.
40 * HttpApplicationFactory.cs: Add invocation of the App_Code
41 compiler. Moved the resource compiler results handling to the
42 resource compiler itself. Removed compilation of the local
43 resources from here - it should be done only when a request
44 determines that the App_LocalResources directory exists.
47 2006-11-07 Andrew Skiba <andrews@mainsoft.com>
49 * HttpRuntime.cs: TARGET_JVM ifdef
51 2006-11-05 Andrew Skiba <andrews@mainsoft.com>
53 * SiteMapProvider.cs: don't iterate through Roles when they are null.
55 2006-11-05 Vladimir Krasnov <vladimirk@mainsoft.com>
57 * HttpContext.cs: implemented Profile property
59 2006-11-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
61 * HttpApplication.cs: the unexpected 'tick' exceptions can be an abort
62 exception due to timeout or end of the request.
64 2006-10-18 Marek Habersack <grendello@gmail.com>
66 * HttpRuntime.cs: add support for compilation of local resources
67 at the start of request.
69 * HttpContext.cs: implement the GetGlobalResourceObject APIs
71 * HttpApplicationFactory.cs: include the bootstrap code for the
72 global/local resources compiler.
74 2006-10-09 Marek Habersack <grendello@gmail.com>
76 * HttpApplication.cs: change the pipeline order for ASP.NET 2.0 to
77 comply with the Microsoft documentation.
79 2006-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
81 * HttpApplication.cs: this makes the test run successfully. Still need
82 to figure out why that is null.
84 2006-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
86 * HttpApplication.cs: band-aid patch to help debugging hang running 2.0
89 2006-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
91 * HttpServerUtility.cs: 1.1 Execute(s) preserves the query string.
92 Thanks to Hubert Fongarnand. Fixes bug #79506.
94 2006-09-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
96 * QueueManager.cs: if disposed, always return null for next request.
97 * HttpRuntime.cs: dispose the queue manager when shutting down the
98 domain. This will close pending requests with a 503.
99 * HttpApplication.cs: release the handler before marking the request
100 as completed. If in PipelineDone context is null, use
101 HttpContext.Current. Fixes some of those "Tick detected an unhandled
102 exception" errors printed out.
104 2006-09-11 Andrew Skiba <andrews@mainsoft.com>
106 * XmlSiteMapProvider.cs: ifdef TARGET_JVM
108 2006-09-11 Vladimir Krasnov <vladimirk@mainsoft.com>
110 * HttpWriter.cs: fixed WriteLine to work correctly in utf-16 encoding
112 2006-09-08 Robert Jordan <robertj@gmx.net>
114 * TraceData.cs: fixed NRE if `sizes' is null, which may happen
115 if a page was unable to save its viewstate and size.
117 2006-09-07 Andrew Skiba <andrews@mainsoft.com>
119 * HttpApplicationFactory.cs: ifdef the previous fix with TARGET_JVM to
122 2006-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
124 * HttpApplicationFactory.cs: watch web.config too. Fixes bug #78356.
126 2006-09-05 Konstantin Triger <kostat@mainsoft.com>
128 * SiteMapProvider.cs: consider authorization section for access decision.
130 2006-09-04 Igor Zelmanovich <igorz@mainsoft.com>
132 * HttpUtility.cs: fixed UrlPathEncode method.
134 2006-08-31 Boris Kirzner <borisk@mainsoft.com>
136 * VirtualPathUtility.cs : pass parameters in correct order.
138 2006-08-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
140 * HttpApplicationFactory.cs: handle the 'renamed' event too.
142 2006-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
144 * HttpApplication.cs: fixed BeginProcessRequest, TARGET_JVM part
147 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
149 * HttpApplication.cs: don't leak local path names when a file is not
152 2006-06-21 Konstantin Triger <kostat@mainsoft.com>
154 * XmlSiteMapProvider.cs: if the url is relative, make it relative to the
157 2006-06-07 Juraj Skripsky <js@hotfeet.ch>
159 * HttpException.cs (GetHtmlizedErrorMessage): Beautify compilation error
160 page by showing multiple errors on separate lines.
162 2006-06-05 Juraj Skripsky <js@hotfeet.ch>
164 * HttpRequest.cs: simplify code around uri_builder (and rename
165 to url_components). Move storage of query_string into
166 uri_builder.Query and initialize it lazily using
167 worker_request.GetQueryStringRawBytes() or GetQueryString().
168 (QueryString): Use HttpUtility.ParseQueryString instead of
169 duplicating its functionality.
171 2006-06-05 Juraj Skripsky <js@hotfeet.ch>
173 * HttpUtility.cs (ParseQueryString): move core of
174 ParseQueryString into internal method to make it available to
177 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
179 * HttpApplication.cs: assign the context when run from a thread not in
180 the threadpool. Patch by Andrew Skiba. Fixes bug #78583.
182 2006-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
184 * HttpApplication.cs: context.Handler does not change for
185 HttpServerUtility.Execute, so moved setting it into the pipeline instead
188 2006-05-17 Kazuki Oikawa <kazuki@panicode.com>
190 * HttpUtility.cs: implemented ParseQueryString
192 2006-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
194 * HttpUtility.cs: get rid of TryParseHexa.
196 2006-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
198 * HttpApplicationFactory.cs: make sure that the application start event
199 is run before any request is processed.
201 2006-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
203 * HttpServerUtility.cs: don't reset the query string in Execute() when
204 the path does not contain it and we have one from the previous request.
207 2006-04-20 Andrew Skiba <andrews@mainsoft.com>
209 * SiteMapNode.cs: fix few null reference exceptions
211 2006-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
214 (TransmitFile): make sure we can read the file before buffering it.
216 2006-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
218 * HttpApplicationFactory.cs: don't fail on events that are not
219 EventHandlers. Patch by Matthew Metnetsky.
221 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
223 * HttpRequest.cs: remove code duplication (see UrlUtils.Combine)
225 2006-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
227 * HttpUtility.cs: allow "%%" as a escape for '%' and ignore invalid
228 hexadecimal characters. Based on a patch by Vladimir Krasnov.
230 2006-04-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
232 * HttpWriter.cs: only keep the byte buffer around if its size is less
233 than or equals to 32K.
235 2006-04-08 Miguel de Icaza <miguel@novell.com>
237 * HttpWriter.cs (Write): Added missing check for null string as
238 something is now calling it like that.
240 2006-03-27 Joshua Tauberer <tauberer@for.net>
242 * HttpWriter.cs: Avoid creation of a byte[] on each Write()
243 by reusing and resizing a private array.
245 2006-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
247 * HttpRequest.cs: the field content_length can be < 0 and then we try to
248 read when there's no data and block.
250 2006-04-05 Andrew Skiba <andrews@mainsoft.com>
252 * HttpUtility: UrlEncode and UrlEncodeUnicode logic unified, behaviour
253 fixed to match dotnet and http://rfc.net/rfc1738.html
255 2006-03-30 Konstantin Triger <kostat@mainsoft.com>
257 * HttpApplicationFactory.cs: refactoring: remove static modifier from session_end field.
258 Does not check the behavior as HttpApplicationFactory is a singleton.
260 2006-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
262 * HttpUtility.cs: UrlDecode does not throw if an hexadecimal sequence
263 fails to parse as an integer. Fixes bug #77931.
265 2006-03-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
267 * HttpResponse.cs: more fixes for CacheControl: MS allows to set it to
268 null and "" and the getter value does not completely depend on Cache.
270 * HttpRequest.cs: fail validating the request input if there's a control
271 character after a '<'. Fixes XSS_Null test.
273 All System.Web tests pass again.
274 2006-03-22 Robert Jordan <robertj@gmx.net>
276 * HttpCachePolicy.cs: fix the Cache-control header. Fixes bug #77826.
278 2006-03-22 Chris Toshok <toshok@ximian.com>
280 * HttpApplication.cs: fix typo - AuthenticateRequest =>
281 PostAuthenticateRequest.
283 2006-03-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
286 * HttpRequest.cs: revert part of r58229.
288 2006-03-21 Vladimir Krasnov <vladimirk@mainsoft.com>
290 * ServerVariablesCollection.cs: fixed "URL" variable, it should not
293 2006-03-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
296 (CheckString): style and don't index the string twice per iteration.
298 2006-03-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
300 * TempFileStream.cs: a FileStream that removes the file once
302 * HttpRequest.cs: support for writing request data to on-disk
303 files if the request is longer than the threshold specified in the
304 configuration files. In mono this will work for 1.x and 2.0, while with
305 MS this only works for 2.0.
307 2006-03-18 Robert Jordan <robertj@gmx.net>
309 * HttpCachePolicy.cs: expose the validation callbacks.
312 2006-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
314 * HttpApplication.cs: fix upper bound when iterating through the module
317 2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
319 * HttpRequest.cs: use the provided content encoding to decode the file
320 name. Fixes bug #77714.
322 2006-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
324 * HttpResponse.cs: allow setting a Cache-Control header through
325 AppendHeader. Fixes bug #77775.
327 2006-03-15 Chris Toshok <toshok@ximian.com>
329 * XmlSiteMapProvider.cs (RemoveProvider): oops, no override.
331 * StaticSiteMapProvider.cs (AddNode): call MapUrl.
332 (FindSiteMapNode): same.
334 2006-03-15 Chris Toshok <toshok@ximian.com>
336 * SiteMapProvider.cs (ReturnNodeIfAccessible): new function,
337 either return the node or throw InvalidOperationException.
338 (get_RootNode): use ReturnNodeIfAccessible.
339 (IsAccessibleToUser): flesh this out a bit, and add comments on
340 how the rest of the implementation should be written.
341 (FindSiteMapNodeFromKey): implement to match MS behavior, docs be
344 * XmlSiteMapProvider.cs: corcompare work.
346 * StaticSiteMapProvider.cs (AddNode): Add a check to see if node
347 == RootNode. Not sure if this is actually correct, but it's
348 required given our implementation of XmlSiteMapProvider. without
349 this check, we end up assigning RootNode.ParentNode == RootNode,
350 which makes for an infinite loop when we traverse up the tree.
352 2006-03-15 Vladimir Krasnov <vladimirk@mainsoft.com>
354 * HttpRequest.cs: fixed MakeInputStream method under TARGET_JVM,
355 fixed if content lenght value is less that byte received
357 2006-03-10 Chris Toshok <toshok@ximian.com>
359 * StaticSiteMapProvider.cs (UrlToNode): this entire file is #if
360 NET_2_0, no need to embed another #if NET_2_0.
362 * SiteMapProvider.cs (AddNode): throw NotImplementedException.
363 (FindSiteMapNode): with null context, return null. don't throw
364 ArgumentNullException.
365 (RemoveNode): throw NotImplementedException.
366 (IsAccessibleToUser): check arguments to make test pass. still
367 lacking the method's actual functionality.
368 (ResourceKey): add missing property.
370 2006-03-10 Chris Toshok <toshok@ximian.com>
372 * HttpRequest.cs (CheckString): add back in the check for \xff1c
373 that i took out. oops.
375 2006-03-10 Chris Toshok <toshok@ximian.com>
377 * HttpRequest.cs (CheckString): implement as described in
378 Shackow's "Professional ASP.NET 2.0 Security, Membership, and Role
379 Management", page 310.
381 2006-03-08 Chris Toshok <toshok@ximian.com>
383 * SiteMap.cs: clean this up a bunch. use the SiteMapSection to
384 initialize the provider collection, and don't add a provider.
385 web.config handles that for us. Also, don't always return true
388 2006-02-28 Chris Toshok <toshok@ximian.com>
390 * HttpCookieMode.cs: corcompare work.
392 * ProcessShutdownReason.cs: same.
394 * SiteMapNodeCollection.cs: same.
396 * SiteMapNode.cs: same.
398 * SiteMapProvider.cs: same.
400 * HttpCacheRevalidation.cs: same.
402 * HttpCacheability.cs: same.
404 * StaticSiteMapProvider.cs: same.
406 * HttpValidationStatus.cs: same.
408 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
410 * DefaultHttpHandler.cs: New file.
412 2006-02-01 Chris Toshok <toshok@ximian.com>
414 * SiteMap.cs: use GetSection instead of GetWebApplicationSection.
416 2006-02-01 Chris Toshok <toshok@ximian.com>
418 * HttpApplication.cs: CONFIGURATION_2_0 => NET_2_0, and use
419 GetSection instead of GetWebApplicationSection.
421 * HttpApplication.jvm.cs: same.
423 * HttpApplicationFactory.cs: same.
425 * HttpContext.cs: same.
427 * CapabilitiesLoader.cs: same.
429 * QueueManager.cs: same.
431 * HttpRuntime.cs: same.
433 * TraceManager.cs: same.
435 * HttpRequest.cs: same.
437 2006-01-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
439 * HttpApplication.cs: keep any exception that happens during
442 2006-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
444 * HttpDataTransferMode.cs: Removed file.
445 * HttpRequestPriority.cs: Removed file.
446 * ApplicationShutdownReason.cs:
449 * HttpApplication.cs: minor class status fixes.
451 2006-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
453 * VirtualPathUtility.cs: done with all the not implemented methods.
455 2006-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
457 * HttpResponse.cs: use UInt64.Parse for content length. In AppendHeader,
458 set cache_control through the property to update the cachebility
459 accordingly. When using the cached headers, don't add again all the
460 headers to that collection.
461 * HttpCacheVaryByParams.cs: if there are no params, return null.
462 Otherwise we get an empty 'Vary' header.
464 2006-01-25 Chris Toshok <toshok@ximian.com>
466 * HttpApplication.cs (Start): wrap InitOnce in a try/catch block,
467 and if there's a configuration error, output it and end things
470 2006-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
472 * HttpRequest.cs: fixed the file path when RewritePath is used. Also
473 add the PathInfo to the Url. Fixes bug #77291.
475 2006-01-22 Chris Toshok <toshok@ximian.com>
477 * HttpRequest.cs (ReadBoundary): remove two unused variables to
479 (IsBoundary): remove unused method.
481 * MimeTypes.cs (.cctor): use a 2.0 friendly form of the Hashtable
482 ctor to silence a warning.
484 * HttpCacheVaryByHeaders.cs (.ctor): same.
486 * HttpCacheVaryByParams.cs (.ctor): same.
488 * StaticSiteMapProvider.cs (UrlToNode): same.
490 2006-01-22 Konstantin Triger <kostat@mainsoft.com>
492 * HttpWorkerRequest.cs: ensure case insensitivity in header search.
494 2006-01-19 Konstantin Triger <kostat@mainsoft.com>
496 * HttpApplication.jvm.cs: merge HttpApplication.cs changes.
498 2006-01-17 Chris Toshok <toshok@ximian.com>
500 * CapabilitiesLoader.cs (Init): use WebConfigurationManager in the
501 CONFIGURATION_2_0 case.
503 * HttpRuntime.cs (MachineConfigurationDirectory): same.
505 2006-01-16 Chris Toshok <toshok@ximian.com>
507 * HttpApplicationFactory.cs: call WebConfigurationManager.Init in
508 the CONFIGURATION_2_0 case.
510 2006-01-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
512 * HttpWriter.cs: made Write (char) less memory hungry. Thanks to Mike
513 Glenn for pointing this out.
515 2006-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
517 * HttpApplicationFactory.cs: fix condition for ContextAvailable.
519 2006-01-11 Vladimir Krasnov <vladimirk@mainsoft.com>
521 * HttpResponse.cs: removed TARGET_JVM block from End
522 * GetJavaTextReader: Merged TARGET_JVM block from LoadFile
525 2006-01-11 Vladimir Krasnov <vladimirk@mainsoft.com>
527 * HttpRequest.cs: removed TARGET_JVM block from MapPath
529 2006-01-11 Vladimir Krasnov <vladimirk@mainsoft.com>
531 * HttpRequest.cs: little fix in MapPath(), virtualPath.Replace
532 return value wasnt stored.
534 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
536 * HttpResponse.cs: typo in comment.
538 * HttpApplicationFactory.cs:
539 * HttpApplication.cs: don't discard the application used for running the
540 Application_Start event to allow for Redirect/Transfer to be used. Fail
541 to get the request/response from the application object as MS does (it
542 can still be retrieved through HttpContext.Current.blah). Fixes
545 2006-01-09 Vladimir Krasnov <vladimirk@mainsoft.com>
547 * CapabilitiesLoader.cs: Merged TARGET_JVM parts in LoadFile
549 * HttpException.cs: Merged TARGET_JVM parts in GetHtmlizedErrorMessage
551 * HttpRequest.cs: Merged TARGET_JVM parts in MapPath from /main/29
552 * HttpResponse.cs: Merged TARGET_JVM parts in End() from /main/30
553 * StaticFileHandler.cs: Merged TARGET_JVM parts in ProcessRequest
556 2006-01-08 Konstantin Triger <kostat@mainsoft.com>
558 * BrowserCapabilities.cs, HttpBrowserCapabilities.cs,
559 HttpResponseStream.cs: TARGET_JVM changes to let the compilation
562 2006-01-04 Chris Toshok <toshok@ximian.com>
564 * HttpContext.cs (IsCustomErrorEnabled): add CONFIGURATION_2_0
565 code. use a nasty 'using' hack to map the 2.0 CustomErrorsMode to
566 the 1.x CustomErrorMode name.
567 (IsDebuggingEnabled): add CONFIGURATION_2_0 code.
568 (ConfigTimeout): add CONFIGURATION_2_0 code.
570 * HttpRequest.cs (MakeInputStream): add CONFIGURATION_2_0 code.
572 * HttpApplication.cs (RedirectCustomError): add CONFIGURATION_2_0
575 * SiteMap.c (Init): use
576 WebConfigurationManager.GetWebApplicationSection.
578 2005-12-21 Miguel de Icaza <miguel@novell.com>
580 * HttpUtility.cs (UrlEncodeUnicode): The generated encoding of
581 unicode values must be in %XXXX format, not %XX sometimes.
583 2005-12-08 Robert Jordan <robertj@gmx.net>
585 * MimeTypes.cs: added entry for "jpg".
587 2005-12-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
589 * HttpRequest.cs: only read up to content-length when provided. Patch
592 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
594 * HttpCookie.cs: fixed the set_Secure. Closes bug #76906.
596 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
598 * HttpResponseStream.cs: flush the filter stream before closing.
599 Patch by Geir Bergum that fixes bug #76753.
601 2005-11-28 Chris Toshok <toshok@ximian.com>
603 * HttpContext.cs (Profile): remove the #if false from around this,
604 as we now have the ProfileBase type.
605 (GetConfig): add CONFIGURATION_2_0 version.
606 (GetSection): add CONFIGURATION_2_0 version.
608 2005-11-28 Chris Toshok <toshok@ximian.com>
610 * TraceManager.cs (..ctor): CONFIGURATION_2_0 work.
612 * QueueManager.cs (..ctor): CONFIGURATION_2_0 work.
614 * HttpRequest.cs (AnonymousID): add 2.0 property.
615 (MakeInputStream): CONFIGURATION_2_0 work.
617 * HttpApplication.cs (InitOnce): change around the
618 CONFIGURATION_2_0 stuff since we need additional Culture foo for
621 2005-11-27 Chris Toshok <toshok@ximian.com>
623 * HttpApplication.cs (InitOnce): add Configuration_2.0 code.
626 2005-11-26 Miguel de Icaza <miguel@novell.com>
628 * HttpResponseStream.cs: Do not try to write zero bytes.
630 2005-11-24 Miguel de Icaza <miguel@novell.com>
632 * WebROCollection.cs: Do not add an empty "=" to the query string
633 if the key is empty or null.
635 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
637 * WebROCollection.cs: override ToString and generate a query string from
638 the key/value pairs. Fixes bug #76779.
640 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
642 * HttpServerUtility.cs: prevent possible nullref in GetLastError().
644 2005-11-07 Jason Diamond <jason@diamond.name>
646 * HttpRequest.cs: Don't throw exception when Content-Length doesn't
647 match length of POSTed data. Also, allow charset parameter on
648 Content-Type header when type is "application/x-www-form-urlencoded".
650 2005-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
652 * WebROCollection.cs: add an ID for the collection. Page needs it.
654 2005-11-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
656 * HttpRequest.cs: no need to allocate the buffer when all the content
659 2005-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
661 * HttpApplication.cs: ignore TAE in ProcesssError. The Error event might
662 redirect or transfer and that causes a TAE to be thrown. Fixes
665 2005-11-01 Chris Toshok <toshok@ximian.com>
667 * VirtualPathUtility.cs: new (partial implementation) to get some
668 MS provider examples compiling.
670 2005-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
672 * HttpContext.cs: added a new internal overload for ClearError.
674 2005-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
676 * HttpRuntime.cs: invoke callbacks on private items in the cache before
677 calling disposing the app. factory. This way we get notifications of
678 removal for all sessions stored in the cache (InProc only).
680 2005-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
682 * HttpResponseStream.cs: reworked buffering so that adjacents blocks are
683 written at once. Also fix bug #76460.
685 2005-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
687 * HttpResponseStream.cs: when allocating a chunk larger than the
688 default chunk size, mark all the blocks as taken. Fixes bug
691 2005-10-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
693 * HttpResponse.cs: use HaveFilter instead of Filter.
694 * HttpResponseStream.cs: allocate chunks of the requested size
695 when it's > 32KB. Fixes bug #76460.
697 2005-10-14 Sebastien Pouliot <sebastien@ximian.com>
699 * ServerVariablesCollection.cs: Added a demand for
700 SerializationFormatter on GetObjectData method (even if it's not
701 really required in this case as it remove warnings from gendarme.
703 2005-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
706 * HttpRequest.cs: buglets in error checking in Filter.
708 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
710 * OutputFilterStream.cs: proxy class for response filters.
711 * HttpResponse.cs: moved all the actual write operations into the
712 response stream. Handle response filtering. When caching, get the
713 actual length of the data, not the buffer length.
714 * HttpApplication.cs: if there's no error, invoke the filters before
715 updating the request cache.
716 * HttpResponseStream.cs: new Filter property. SendChunkSize is moved
717 here and now supports writing the final chunk. New method ApplyFilter
718 that filters the existing buckets and replaces them with the filtered
719 ones. Modified Write to deal with buffering and filtering.
721 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
723 * HttpResponseStream.cs: allow for writes of more than 32K at once.
725 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
727 * InputFilterStream.cs proxy stream for use by filters.
728 * HttpRequest.cs: implement input filtering.
730 2005-10-02 Eyal Alaluf <eyala@mainsoft.com>
731 * HttpApplication.jvm.cs - Workaround for use of yield in
732 HttpApplication.cs HttpRuntime.cs: AppDomain.Unload is not supported
735 2005-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
737 * HttpResponseStream.cs: remove dead code.
739 2005-09-29 Sebastien Pouliot <sebastien@ximian.com>
741 * HttpClientCertificate.cs: Remove last TODO on IsValid. This now
742 works when using XSP. Now use flags to determine valid/presence.
744 2005-09-26 Chris Toshok <toshok@ximian.com>
746 * HttpApplicationFactory.cs (OnAppFileChanged): add null checks
747 for bin_watcher and app_file_watcher so we don't get NRE's here.
749 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
751 * BrowserCapabilities.cs: don't rely on the win32 attribute to be there.
752 Just use the platform to determine whether Win32 is true or not. Fixes
755 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
757 * HttpApplication.cs: fixed typo when setting UI culture. Closes bug
760 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
762 * HttpRequest.cs: new SetFilePath() that does not conflict with
763 SetCurrentExePath. Now when transfering from a page to another,
764 CurrentExecutionFilePath and FilePath are correct.
766 2005-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
768 * TraceContext.cs: add new method to store size of controls.
769 * TraceData.cs: render control size.
770 * HttpResponse.cs: new internal method to get the number of bytes of
772 * HttpResponseStream.cs: added Length property to the Buckets and new
775 2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
777 * TraceData.cs: we have to change the method of getting a control render
778 size. MS does not do this or otherwise would run into the same bug
779 (#76051) that this patch fixes. This is temporarily setting the size
782 2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
784 * HttpResponseStream.cs: implemented Send(stream) for files. Fixes bug
787 2005-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
789 * HttpRuntime.cs: catch errors when compiling global.asax and
790 initializing the application. Fixes bug #76090.
792 2005-09-14 Sebastien Pouliot <sebastien@ximian.com>
794 * BrowserCapabilities.cs: Fixed changes (in 2.0) with versions. Fixed
795 compare with "True" (culture and case sensitivity).
796 * HttpApplicationState.cs: Added LinkDemand for Minimal. Use the
797 internal HttpStaticObjectsCollection ctor to avoid the UnmanagedCode
799 * HttpContext.cs: Added LinkDemand for Minimal. Added 2.0 properties
800 and methods to test CAS on them.
801 * HttpRequest.cs: Added LinkDemand for Minimal. Ensure we return
802 proper values when worker_request is null.
803 * HttpResponse.cs: Added LinkDemand for Minimal. Ensure we return
804 proper values when context or WorkerRequest is null. Added 2.0
805 properties and methods to test CAS on them.
806 * HttpRuntime.cs: Added LinkDemand for Minimal. Added PathDiscovery
807 demands for properties returning directories. Added demand for High
808 level on AppDomainAppId and AppDomainId properties, Low level on
809 IsOnUNCShare, Medium level on ProcessRequest and a demand for
810 UnmanagedCode on UnloadAppDomain method. Constructor also has a
811 UnmanagedCode demand for 1.x.
812 * HttpStaticObjectsCollection.cs: Added LinkDemand for Minimal. Added
813 a UnmanagedCode demand to public ctor. Added internal ctor without the
814 demand. Changed Serialize and Deserialize methods to public for 2.0.
816 2005-09-14 Sebastien Pouliot <sebastien@ximian.com>
818 * HttpWorkerRequest.cs: Removed TODO for 2.0 APIs and return the
819 default values for them.
821 2005-09-13 Sebastien Pouliot <sebastien@ximian.com>
823 * HttpApplication.cs: : Added LinkDemand and InheritanceDemand (class)
824 for Minimal. Changed AssemblyLocation to a property (so it doesn't
825 require special permission, PathDiscovery) to create an instance.
826 Protected Modules property with a Demand for High level. Added some
827 missing HttpException for null context.
828 * HttpServerUtility.cs: Added LinkDemand for Minimal. Added demands
829 for UnmanagedCode on all CreateObject* methods. Added demand for
830 Medium level on MachineName and ScriptTimeout properties. Added new
831 overloaded Transfer method (2.0) to test CAS on it.
832 * HttpUtility.cs: Added LinkDemand for Minimal. Added [Obsolete] to
833 ctor (2.0). Changed some return values when 'count' is 0. Added
834 ParseQueryString (overload) methods for 2.0 (to enabled CAS testing on
836 * HttpWorkerRequest.cs: Added LinkDemand and InheritanceDemand (class)
837 for Minimal. Added RequestTraceIdentifier and RootWebConfigPath (2.0)
838 properties, GetPreloadedEntityBody, GetPreloadedEntityBodyLength,
839 GetTotalEntityBodyLength and ReadEntityBody (2.0) methods to test CAS
840 on them. Fixed SendResponseFromMemory to ignore IntPtr.Zero (used in
841 tests without failures).
842 * ServerVariablesCollection.cs: Fixed loadServerVariablesCollection
843 when HttpWorkerRequest is null.
844 * TraceContext.cs: Added LinkDemand for Minimal. Fixed default Mode
845 (SortByTime). Added new (2.0) TraceFinished event to test CAS on it.
847 2005-09-13 Sebastien Pouliot <sebastien@ximian.com>
849 * HttpBrowserCapabilities.cs: Added LinkDemand and InheritanceDemand
850 (class) for Minimal. Note that current MCS has problem compiling
851 security attributes on partial class (bug #75969).
852 * HttpCachePolicy.cs: Added LinkDemand for Minimal. Added 2.0 methods
853 (stub) to enable CAS tests on them.
854 * HttpCacheVaryByHeaders.cs: Added LinkDemand for Minimal.
855 * HttpCacheVaryByParams.cs: Added LinkDemand for Minimal.
856 * HttpClientCertificate.cs: Added LinkDemand and InheritanceDemand
858 * HttpCookie.cs: Added LinkDemand for Minimal.
859 * HttpCookieCollection.cs: Added LinkDemand for Minimal.
860 * HttpFileCollection.cs: Added LinkDemand for Minimal.
861 * HttpModuleCollection.cs: Added LinkDemand for Minimal.
862 * HttpPostedFile.cs: Added LinkDemand for Minimal.
863 * HttpRequestPriority.cs: Fix enum values.
864 * HttpWriter.cs: Added LinkDemand for Minimal.
866 2005-09-13 Sebastien Pouliot <sebastien@ximian.com>
868 * ProcessInfo.cs: Added LinkDemand and InheritanceDemand (class) for
870 * ProcessModelInfo.cs: Added LinkDemand and InheritanceDemand (class)
871 for Minimal. Methods GetCurrentProcessInfo and GetHistory are also
872 protected by Demand for High level.
874 2005-09-13 Sebastien Pouliot <sebastien@ximian.com>
876 * HttpCompileException.cs: Added new public ctors and [Serializable]
877 to 2.0. Added new Message property and GetObjectData (protected by a
878 demand for SerializationFormatter) for 2.0. Fixed line-ending.
879 * HttpException.cs: Added LinkDemand and InheritanceDemand (class) for
880 Minimal. Renamed parameters to match documentation.
881 * HttpParseException.cs: Added LinkDemand (class) for Minimal. Added
882 demand for SerializationFormatter on GetObjectData method. Fixed
884 * HttpRequestValidationException.cs: Added new public ctors and
885 [Serializable] to 2.0. Added LinkDemand for Minimal.
886 * HttpUnhandledException.cs: Added new public ctors and [Serializable]
887 to 2.0. Removed unused internal ctor. Added LinkDemand for Minimal.
890 2005-09-13 Sebastien Pouliot <sebastien@ximian.com>
892 * HttpResponseSubstitutionCallback.cs: New. 2.0 delegate.
893 * TraceContextEventArgs.cs: New. 2.0 class.
894 * TraceContextEventHandler.cs: New. 2.0 delegate.
896 2005-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
898 * HttpRequest.cs: use GetServerName instead of GetLocalAddress when
901 2005-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
903 * HttpRequest.cs: fix the indexer.
905 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
907 * HttpPostedFile.cs: fixes in Seek and Position.
909 2005-09-08 Sebastien Pouliot <sebastien@ximian.com>
911 * HttpRequest.cs: Make sure the MemoryStream created have their
912 contents marked as public - or else you can't call GetBuffer on them!
914 2005-09-08 Miguel de Icaza <miguel@novell.com>
916 * HttpRequest.cs: Patch from Juraj Skripsky <js@hotfeet.ch> that
919 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
921 * HttpPostedFile.cs: Make this class actually work. Every time we read,
922 we have to position the underlying stream.
924 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
926 * HttpRequest.cs: reading multipart/form-data works again.
928 2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
929 * HttpRequest.cs: Under TARGET_JVM the input stream must allow GetBuffer.
931 2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
932 * HttpApplicationFactory.cs: TARGET_J2EE/JVM fix.
934 2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
936 * HttpRequest.cs: correctly detect multipart/form-data.
938 2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
940 * HttpApplicationFactory.cs: recycle after invoking session_end.
942 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
944 * HttpRuntime.cs: remove Console.
946 * HttpApplicationFactory.cs: don't hook Session_End, but keep
947 the MethodInfo around for later invocation if needed. Don't call
948 GetMethods() for every HttpApplication (or derived class) instances.
949 Added a method, used by SessionStateModule, that will create use an
950 application without context to invoke Session_End. Keep a pool of
951 applications that are meant to be used by this method only.
953 * HttpApplication.cs: add a SetSession method and do not
954 attach all the events if the application is for Session_End only.
956 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
958 * HttpRuntime.cs: actually unload the domain when requested. Reformatted
959 FinishUnavailable() and removed the 'Location' header form the error.
961 * HttpApplicationFactory.cs: set up the watcher for the bin directory.
962 This also prevents a nullref when global.asax is changed.
964 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
966 * HttpApplication.cs: fixed bug introduced when moving GetHandler call
967 around. Now we get error pages again.
969 2005-09-06 Miguel de Icaza <miguel@novell.com>
971 * HttpApplication.cs: Catch EndRequest errors as well.
973 2005-09-05 Miguel de Icaza <miguel@novell.com>
975 * HttpApplication.cs: Invoke EndRequest handler before OutputPage
976 as FormsAuthentication will issue a Redirect from the EndRequest
979 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
981 * HttpApplication.cs: when writing an error message, catch the possible
984 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
986 * HttpResponseStream.cs: prevent invalid cast exception if the first
987 thing written is a file.
989 2005-09-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
991 * HttpApplication.cs: fix invalid cast exception (bug #75926).
993 2005-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
995 * HttpApplicationFactory.cs: only trigger the Application_Start event
996 once. It was being invoked more than once when several clients were
997 hitting the server at the same time on startup.
999 2005-09-01 Eyal Alaluf <eyala@mainsoft.com>
1001 * HttpContext.cs HttpResponse.cs HttpWorkerRequest.cs HttpRuntime.cs
1002 HttpApplicationFactory.cs HttpApplication.cs: TARGET_J2EE/JVM fixes.
1003 Mostly workaround limited AppModel in TARGET_J2EE.
1005 2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1007 * HttpResponse.cs: if the request method is HEAD, that's equivalent to
1008 SuppressContent. Added an internal TransmitFile that allows setting the
1010 * StaticFileHandler.cs: use the new internal TransmitFile and remove
1011 generation of Content-Length header, as now it's computed correctly.
1012 * HttpApplication.cs: remove debugging stuff.
1013 * HttpResponseStream.cs: suppress_content is checked in HttpResponse.
1015 2005-08-31 Miguel de Icaza <miguel@novell.com>
1017 Removed debugging info.
1019 * HttpApplication.cs: Add support for async handlers.
1021 Add extra 2.x methods.
1023 2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1025 * BrowserCapabilities.cs: removed extra 'using'.
1027 * HttpApplication.cs: use just the 'modcoll' to hold the collection of
1028 modules instead of having a separate 'modules' one.
1030 2005-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1032 * HttpApplication.cs: clone the module collection so that
1033 it's not shared between HttpApplications. Call GetHandler() in the
1036 2005-08-30 Miguel de Icaza <miguel@novell.com>
1038 * HttpApplication.cs: Add the new 2.x method overloads that take a
1041 (RunHooks): Pass the extra data instead of null.
1043 * HttpCookie.cs (HttpOnly): Add 2.x cookie header.
1045 * BrowserCapabilities.cs: Move the core of the capabilities into a
1046 separate file. Use partial classes to choose what version to
1049 * HttpBrowserCapabilities.cs: Update to move the code elsewhere.
1051 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
1053 * HttpResponseStream.cs: Fix a bug introduced by last fix (thanks to
1056 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
1058 * HttpResponseStream.cs: Compilation fixes for TARGET_JVM. TARGET_JVM
1059 does not support unsafe code. I localized all unsafe code within Chunk
1060 & Block and created a managed version of Chunk.
1062 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
1063 * HttpApplicationFactory.cs: Compilation fixes for TARGET_J2EE. Under
1064 TARGET_J2EE static fields are shared by all app domains. We handle
1065 this difference by explicitly getting/setting values from the app
1066 domain. Since HttpApplicationFactory has many static fields, I
1067 refactored it to have one static instance and moved the static fields
1068 into instance fields.
1070 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
1072 * HttpRequest.cs: Disable use of IntPtrStream for TARGET_JVM
1074 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
1076 * HttpContext.cs: Compilation fixes for TARGET_J2EE/JVM
1078 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1080 * HttpResponse.cs: don't duplicate the 'charset=' and don't send a
1081 charset for unknown MIME types.
1082 * StaticFileHandler.cs: set the Content-Length header here.
1083 * HttpRequest.cs: prevent nullrefs when we have no 'charset='.
1085 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1087 * StaticFileHandler.cs: use TransmitFile instead of WriteFile. This way
1088 xsp will use sendfile().
1090 2005-08-28 Chris Toshok <toshok@ximian.com>
1092 * SiteMapNode.cs: fix IHierarchyData.GetParent.
1094 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1097 * IntPtrStream.cs: now we only have a read-only MemoryStream or an
1098 IntPtrStream. The copy is moved into HttpRequest.
1100 2005-08-26 Sebastien Pouliot <sebastien@ximian.com>
1102 * WebCategoryAttribute.cs: New. Required internal attribute.
1103 * WebSysDescriptionAttribute.cs: New. Required internal attribute.
1105 2005-08-26 Jackson Harper <jackson@ximian.com>
1107 * HttpResponseStream.cs: Use GetBuffer so the memory isn't
1110 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1112 * HttpApplication.cs: GetHandler might return null when, for example,
1113 a web service fails, but that does not mean that returning a null
1114 handler should throw another exception, as the web service code
1115 serialized the error as a faultString. So if the handler is null, just
1116 don't call ProcessRequest and keep going.
1118 2005-08-26 Jackson Harper <jackson@ximian.com>
1120 * HttpResponse.cs: Send the cached headers if this is a cached
1121 response. Save the headers, date header, and page data. Fix a typo.
1122 * HttpResponseStream.cs: Add new accesor to get a byte [] of the
1125 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1127 * HttpWorkerRequest.cs: SetEndOfSendNotification is a noop. No matter
1128 what callback you use that never gets called. In XSP I actually
1129 implement something for this method.
1130 * HttpServerUtility.cs: unused variable.
1132 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1134 * HttpInputStream.cs: new ctor that takes a byte [].
1135 * IntPtrStream.cs: make it work on a byte [] too.
1138 (ContentLength): return 0 for negative numbers or error parsing, but
1139 keep content_length negative in those cases.
1140 (MakeInputStream): when there's no content-length (or it's negative),
1141 we still read the request into a MemoryStream. Use
1142 IsEntireEntityIsPreloaded() as a fast path.
1144 2005-08-25 Sebastien Pouliot <sebastien@ximian.com>
1146 * HttpClientCertificate.cs: On 1.x the .ctor throws a
1147 ArgumentNullException (but 2.0 throws a NRE).
1149 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1151 * HttpRequest.cs: HttpMethod deserves its own field. Fix IsLocal.
1153 2005-08-25 Chris Toshok <toshok@ximian.com>
1155 * HttpApplication.cs (IsReusable): return true.
1156 (InitOnce): remove the initialization of handler_factory from
1158 (GetHandler) and move it here, so we make sure to load handlers
1159 from all needed web.config files.
1161 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1163 * HttpServerUtility.cs: use GetHandler().
1164 * HttpApplication.cs: remove obsolete method. Now Transfe/Execute work.
1166 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1168 * HttpApplication.cs: no need for the local var. here.
1170 2005-08-25 Chris Toshok <toshok@ximian.com>
1172 * HttpApplication.cs (InitOnce): move the initialization of
1173 modules above the call to HttpApplicationFactory.AttachEvents,
1174 since that method accesses HttpApplication.Modules. Fixes
1176 (IsReusable): mark TODO.
1178 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1180 * HttpResponseHeader.cs: removed obsolete class.
1181 * HttpResponse.cs: no more 'obsolete' warnings.
1183 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1185 * HttpRuntime.cs: implemeted some missing properties.
1187 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1189 * HttpResponse.cs: implemented RemoveOutputCacheItem().
1191 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1193 * HttpApplication.cs: implemented GetVaryByCustomString().
1195 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1197 * HttpRequest.cs: implemented SetHeader (allows adding a header
1198 circumventing the read-only protection of the collection) and SetForm,
1199 which just assigns a value of the 'form' collection.
1200 * HttpServerUtility.cs: NameValueCollection -> WebROCollection.
1202 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1205 * HttpRequest.cs: implemented RewritePath and supporting methods.
1207 2005-08-22 Sebastien Pouliot <sebastien@ximian.com>
1209 * HttpRequest.cs: Avoid NRE if work_request if null in the ctor.
1210 * HttpResponse.cs: Avoid NRE if work_request if null in the ctor.
1212 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1214 * HttpApplication.cs: if there's any exception thrown when getting the
1215 handler, don't add an extra error to the context, as we already have
1218 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1222 * HttpWorkerRequest.cs:
1223 * HttpApplication.cs: added mising attributes and enabled methods
1226 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1228 * WebROCollection.cs: a collection that allows setting IsReadOnly.
1229 * HttpRequest.cs: implemented MapImageCoordinates(). Use WebROCollection
1230 instead of a NameValueCollection in Form, Headers, Params, QueryString.
1232 2005-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1234 * HttpInputStream.cs: new copy ctor.
1235 * IntPtrStream.cs: getters for base_address and size.
1236 * HttpRequest.cs: implemented SaveAs(). Use a wrapper on top of
1237 InputStream so that reading POST form or files does not modify the state
1238 if InputStream. Don't use uri_builder.Query in QueryStringRaw, as it
1241 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1243 * HttpRequest.cs: implemented UserLanguages and reuse code from
1246 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1248 * HttpRequest.cs: implemented AcceptTypes.
1250 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1252 * HttpRequest.cs: implemented this[] in terms of Params. Don't add the
1253 header collection in Params.
1255 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1257 * HttpRequest.cs: fix Files property.
1258 * HttpApplication.cs: invoke the default authentication event after all
1259 the other auth. modules.
1261 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1263 * ServerVariablesCollection.cs: mark the collection as read-only except
1264 when we fill it. Add the HTTP_blah key/value pairs too.
1266 2005-08-18 Chris Toshok <toshok@ximian.com>
1268 * HttpRequest.cs (get_Params): implement.
1270 2005-08-17 Chris Toshok <toshok@ximian.com>
1272 * HttpResponse.cs: HttpResponse's Cookie's collection acts
1273 differently than HttpRequests in that it never returns null from
1274 the "this [string]" accessor.
1276 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1278 * HttpRequest.cs: check length 0 case when reading a POST.
1280 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1282 * HttpContext.cs: added security attributes for User and
1283 SkipAuthorization properties.
1284 * HttpApplicationFactory.cs: AttachEvents is now called form the
1285 application .ctor. Recycle instead of dispose.
1286 * HttpApplication.cs: attach events to the newly created application.
1288 2005-08-15 Jackson Harper <jackson@ximian.com>
1290 * ApplicationShutdownReason.cs: make build
1292 2005-08-15 Miguel de Icaza <miguel@novell.com>
1294 * HttpApplication.cs: Update comments
1296 * HttpPostedFile.cs: Use a substream to read from the uploaded
1299 * HttpRequest.cs: use new code to read the uploaded files.
1301 2005-08-12 Miguel de Icaza <miguel@novell.com>
1303 2.x API fixage and small additions:
1305 * HttpResponse.cs: Make constructor internal.
1307 * HttpRequest.cs (IsLocal): Expose if NET_2.x
1309 * HttpContext.cs: Remove internal routine.
1311 * HttpApplication.cs: Add 2.x events.
1313 * HttpRequest.cs: Another iFolder issue: I was not setting up the
1316 Fixes to get iFolder to work:
1318 * HttpApplicationFactory.cs: Set the context when we are initting
1321 * HttpApplication.cs (SetContext): helper routine.
1323 * HttpResponse.cs: Implement the various cache operations:n
1324 Expires, ExpiresAbsolute, CacheControl.
1326 Actually produce the Cache-Control header, the "Cache" property
1327 takes precedence over the compatibility settings (Expires,
1328 ExpiresAbsolutely and CacheControl).
1330 * HttpCachePolicy.cs: Fix style.
1332 Fix the generation of the headers, use lower-case values, do not
1333 add the max-value if the value is zero.
1335 Allow for all possible values in SetCacheability.
1337 * HttpRuntime.cs (ClrInstallDirectory): Implement.
1339 * HttpResponseStream.cs: Remove debugging stuff.
1341 2005-08-11 Miguel de Icaza <miguel@novell.com>
1343 Big chunked handling rewrite, and integration of Ben's unmanaged
1346 * HttpWriter.cs: Delegate chunked encoding writing to the
1349 * HttpResponse.cs: Rework the chunked encoding system, centralize
1352 * HttpResponseStream.cs: Deploy Ben's bucket-base unmanaged
1355 Changed the way that we handle chunked encoding, centralize it
1358 Remove a lot of manual handling of buffering turned off, and
1359 instead delegate it all to Flush, fixes several issues with the
1362 * HttpWorkerRequest.cs (SendResponseFromMemory (IntPtr, int)):
1363 Provide a default implementation since currently XSP does not have
1364 this method implemented.
1366 2005-08-11 Sebastien Pouliot <sebastien@ximian.com>
1368 * HttpClientCertificate.cs: Culture insensitive int parsing. Fixed
1371 2005-08-10 Miguel de Icaza <miguel@novell.com>
1373 * ServerVariablesCollection.cs: For Ben. Implement the header
1374 fetching here, do not implement it in HttpRequest.cs.
1376 2005-08-10 Sebastien Pouliot <sebastien@ximian.com>
1378 * HttpClientCertificate.cs: Changed IsPresent logic so that new unit
1379 tests will work as expected.
1381 2005-08-10 Sebastien Pouliot <sebastien@ximian.com>
1383 * HttpClientCertificate.cs: Implemented, except for validation. Note
1384 that the HttpWorkerRequest derived classes must be updated to supply
1385 the required informations.
1386 * HttpRequest.cs: Create an HttpClientCertificate on first call to
1389 2005-08-09 Miguel de Icaza <miguel@novell.com>
1391 * HttpRuntime.cs (AspInstallDirectory): Implement.
1393 2005-08-09 Sebastien Pouliot <sebastien@ximian.com>
1395 * HttpClientCertificate.cs: New. Stub. It won't be fun to test.
1397 2005-08-04 Ben Maurer <bmaurer@ximian.com>
1399 * HttpContext.cs: Kill a NIE.
1401 2005-08-04 Miguel de Icaza <miguel@novell.com>
1403 * HttpApplicationFactory.cs: Change "Start" event like the "End"
1404 event, and only do this once, when we init the type.
1406 Fire the "Application_Start" event after we create the type.
1408 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1410 * HttpApplication.cs: catch a ThreadAbort (coming from Response.End)
1413 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1415 * HttpResponse.cs: setting the Status property resets the
1416 StatusDescription (see the tests) and the default value for the
1417 description is the one provided by GetStatusDescription() in
1420 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1422 * HttpRequest.cs: s/boundry/boundary/ and fix typo in array creation.
1424 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1426 * HttpApplication.cs: add call to EndOfRequest when everything is said
1429 2005-08-02 Miguel de Icaza <miguel@novell.com>
1431 * HttpResponse.cs: Stub for TransmitFile.
1433 * HttpRequest.cs (IsAuthenticated): Implement.
1435 2005-08-01 Miguel de Icaza <miguel@novell.com>
1437 * HttpRequest.cs: Cope with implementations of HttpWorkerRequest
1438 (unpatched xsp) that do not send back the PreloadedEntityBody.
1440 * HttpApplication.cs: keep track of the factory.
1441 (Dispose): Only dispose once, clean up other variables, release
1442 the ManualResetEvent.
1443 Release the handler to the factory.
1445 * HttpApplicationFactory.cs: Implement a stack to reuse the
1448 * HttpRequest.cs: On uploads, if the ContentLenght is zero, throw
1451 * HttpRuntime.cs: Recycle the application after using it.
1453 * HttpPostedFile.cs: Implement SaveAs.
1455 * HttpContext.cs: Return the "Server" property.
1457 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1459 * HttpServerUtility.cs: implemented missing bits.
1461 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1463 * HttpRequest.cs: query string was getting a '?' as the start of the
1464 first variable name. This makes the asmx help page work again.
1466 2005-08-01 Miguel de Icaza <miguel@novell.com>
1468 * HttpRequest.cs (Cookies, Forms): Add validation.
1469 (Forms): Add application/x-www-form-urlencoded parsing and
1470 multipart/form-data parsing.
1472 (HttpMultiPart): Implement new class to load multi-part data from
1473 a stream since there is no longer a byte [] that holds the data
1474 (currently we have an unmanaged IntPtr buffer wrapped as a
1475 stream). Also the 2.x framework will add support for large
1476 uploads which are sent directly to disk, which will require the
1477 FileStream interface.
1479 (Path, PathInfo): Fill a couple more methods to avoid crashes.
1481 * HttpContext.cs: Fill another one to get web services summary
1482 page painting. The page does not work though.
1484 * HttpApplication.cs: Rework the pipeline to not depend on
1485 `finally', as `finally' would not be invoked if we choose not to
1486 call the pipeline again (which happens if the `stop' variable is
1489 Instead force the pipeline to go to the shutdown, and yield from
1490 there after all the release-state callbacks have been invoked.
1492 2005-07-31 Miguel de Icaza <miguel@novell.com>
1494 * HttpApplication.cs: Remove debugging messages since the compiler
1497 You must use at least mcs from revision 47879 for the application
1500 2005-07-30 Miguel de Icaza <miguel@novell.com>
1502 * HttpContext.cs: Error handling methods.
1504 * HttpResponse.cs: Trigger the last event.
1506 * HttpRuntime.cs: Add queueing of the next request.
1508 * HttpApplication.cs: Deploy the new yield-based application
1509 pipeline, add error handling to the pipeline.
1511 * HttpApplication.cs (AsyncRequestState): Just use the done event
1514 2005-07-29 Miguel de Icaza <miguel@novell.com>
1516 * HttpResponseStream.cs, HttpRequest.cs: Fix bugs found by nunit.
1518 * HttpApplication.cs: Fix a race condition.
1520 * HttpResponseStream.cs: Fix bug, send the size of the buffer that
1521 we have so far instead of the internal size of the buffer. This
1522 will need work later to ensure we enforce the Content-Length
1523 maximum output size if set.
1525 * ServerVariablesCollection.cs: This class now inherits from
1526 NameValueCollection, we should probably review what the middle
1527 class did, there are no dependencies on it.
1529 I need to write tests to investigate if something is missing or
1530 has changed in this implementation.
1532 2005-07-27 Miguel de Icaza <miguel@novell.com>
1534 * HttpRequest.cs: No happy replies here, send a 411.
1536 2005-07-27 Chris Toshok <toshok@ximian.com>
1538 * HttpResponseHeader.cs: remove spew.
1540 2005-07-27 Chris Toshok <toshok@ximian.com>
1542 * HttpResponseHeader.cs (HttpResponseHandler..ctor): use
1543 HttpWorkerRequest.GetKnownResponseHeaderName instead of
1544 GetKnownRequestHeaderName. Fixes Response.Redirect until miguel's
1545 new HttpReponse is online.
1547 2005-07-26 Miguel de Icaza <miguel@novell.com>
1549 * HttpResponse.cs: use_chunked is now a byte-array, if not null,
1550 we use it to hold the size of the chunked so we do not have to
1551 allocate many of these.
1552 (SendSize): Helper routine to send the chunked headers.
1553 (BinaryWrite): First user of the chunked writer.
1555 * HttpApplication.cs: Do not crash if they request a Server
1556 instance, but throw a NotImplementedException.
1558 * HttpRequest.cs: fix a few problems exposed by the regression
1561 * HttpRequest.cs (Cookies): use Chris' new constructor to get the
1564 : The big Uri rework: instead of using QueryString
1565 as the population mechanism, populate an UriBuilder from the
1566 various HttpWorkerRequest methods.
1568 * HttpWorkerRequest.cs (GetProtocol): Implement in terms of
1571 * HttpResponse.cs: Pointed by Ben, Write (null) is a nop instead
1574 * HttpContext.cs: Add a couple of properties to help the 2.x
1577 * HttpResponse.cs: Make ContentLength a long, add back support for
1578 session's app_path_mod.
1579 (ApplyAppPathmodifier): put back.
1580 (End): Pass a flag to abort so we can tell the exceptions appart
1582 (WriteHeaders): Send the HTTP status.
1583 (Redirect): Implement.
1584 (Write): Use the Output property to load writer when needed.
1586 * HttpRequest.cs (ctor): Temporary use of InitFromWR, will fix
1588 (MakeInputStream): check content-length size, use routines to load
1589 the preloaded data, handle incomplete transfers.
1590 (Query): Do not insert null keys into the collection.
1592 (UrlReferer): implement.
1594 * HttpApplication.cs (RunHooks): Catch Thread.Abort, and call
1595 Thread.ResetAbort after each step.
1597 Ensure that ReleaseState is called if we ever succeed in acquiring
1598 the state even if we have stopped the request pipeline.
1600 Report file not found, directory not found.
1602 2005-07-25 Miguel de Icaza <miguel@novell.com>
1604 * HttpCookieCollection.cs: Add expiration of the cookie.
1606 * HttpRequest.cs: Add check for ContentLength, use
1607 GetPreloadedEntityBody, correct number of bytes uploaded.
1609 2005-07-21 Miguel de Icaza <miguel@novell.com>
1611 * HttpResponseHeader.cs: Our implementation of HttpResponse only
1612 uses the text headers, does not use any constants as XSP would go
1613 through a slower code path anyways.
1615 2005-07-21 Chris Toshok <toshok@ximian.com>
1617 * HttpBrowserCapabilities.cs: enable support for the W3CDomVersion
1618 and EcmaScriptVersion properties.
1620 2005-07-21 Chris Toshok <toshok@ximian.com>
1622 * HttpResponseHeader.cs: hi, i'm stupid and missed String.Replace.
1624 2005-07-21 Chris Toshok <toshok@ximian.com>
1626 * HttpResponseHeader.cs: url encode just \r and \n if they're
1627 present in the value.
1629 2005-07-20 Chris Toshok <toshok@ximian.com>
1631 * HttpPostedFile.cs: add missing ContentLength property.
1633 2005-07-20 Chris Toshok <toshok@ximian.com>
1635 * HttpCookieCollection.cs: add a new ctor that takes a string (the
1636 contents of the Cookies: header).
1638 2005-07-20 Chris Toshok <toshok@ximian.com>
1640 * HttpCookieCollection.cs: add another ctor (internal, but not
1641 obsolete, so we aren't passing a stupid HttpResponse in in order
1642 to change the behavior of the collection.)
1644 * HttpCookie.cs: init this.values in the internal ctor.
1646 2005-07-20 Chris Toshok <toshok@ximian.com>
1648 * HttpCookieCollection.cs: use "auto-fill mode" when we're dealing
1649 with an HttpResponse's cookie collection. That is, create the
1650 cookie if the consumer looks it up.
1652 2005-07-20 Miguel de Icaza <miguel@novell.com>
1654 * HttpApplication.cs: Ongoing work on pipeline, I will need to
1657 2005-07-19 Miguel de Icaza <miguel@novell.com>
1659 * HttpContext.cs (GetService): Implement. Return all of the
1660 properties that we have access to. Make HttpWorkerRequest the
1661 first match as this is the only likely reason people need to use
1664 * IntPtrStream.cs: Bring from corlib.
1666 * MultiPartContentParser.cs: use a MemoryStream as HttpInputStream
1667 will now be using IntPtrStream.
1669 * HttpRequest.cs (MakeInputStream): move code that loads the
1671 (CloseInputStream): Helper method that we will call later to
1672 ensure that we dispose properly the malloced() block.
1673 (BinaryRead): Implemented.
1675 * HttpInputStream.cs: Rewrite to be a descendant of
1678 2005-07-18 Miguel de Icaza <miguel@novell.com>
1680 * HttpApplication.cs (Modules): Add modules support and
1683 2005-07-18 Chris Toshok <toshok@ximian.com>
1685 * HttpResponseHeader.cs: initial implementation.
1687 2005-07-18 Chris Toshok <toshok@ximian.com>
1689 * HttpModuleCollection.cs (HttpModuleCollection.GetKey): add
1692 * HttpFileCollection.cs: initial implementation.
1694 2005-07-18 Chris Toshok <toshok@ximian.com>
1696 * HttpModuleCollection.cs (HttpModuleCollection.CopyTo): implement
1699 2005-07-18 Chris Toshok <toshok@ximian.com>
1701 * HttpModuleCollection.cs: initial implementation.
1703 2005-07-18 Chris Toshok <toshok@ximian.com>
1705 * HttpCacheVaryByHeaders.cs: only add the header if it's not
1706 already in the hash.
1708 * HttpCacheVaryByParams.cs: only add the param if it's not already
1711 2005-07-18 Chris Toshok <toshok@ximian.com>
1713 * HttpCookie.cs (HttpCookie+CookieNVC.Set): new override to fix an
1716 2005-07-17 Miguel de Icaza <miguel@novell.com>
1718 * HttpRequest.cs (Headers, InputStream): implemented two more
1721 * HttpInputStream.cs: All we need is a MemoryStream with writable
1724 * HttpPostedFile.cs: Use a Stream.
1726 2005-07-16 Chris Toshok <toshok@ximian.com>
1728 * HttpCacheVaryByHeaders.cs: make sure we set vary_by_unspecified
1729 = false in the custom setter.
1731 2005-07-16 Chris Toshok <toshok@ximian.com>
1733 * HttpCacheVaryByParams.cs: initial implementation.
1735 2005-07-16 Chris Toshok <toshok@ximian.com>
1737 * HttpCacheVaryByHeaders.cs: initial implementation.
1739 2005-07-15 Chris Toshok <toshok@ximian.com>
1741 * HttpCookie.cs: one more time.
1743 2005-07-15 Chris Toshok <toshok@ximian.com>
1745 * HttpCookie.cs (HttpCookie.GetCookieHeader): use
1748 2005-07-15 Chris Toshok <toshok@ximian.com>
1750 * HttpCookie.cs (HttpCookie.GetCookieHeader): implement to fix
1753 2005-07-15 Chris Toshok <toshok@ximian.com>
1755 * HttpCookieCollection.cs: initial implementation (with a couple
1756 of labeled inefficiencies.)
1758 2005-07-15 Chris Toshok <toshok@ximian.com>
1760 * HttpCookie.cs (HttpCookie.get_HasKeys): use values.HasKeys()
1761 instead of trying to be smart about it ourselves.
1763 2005-07-15 Chris Toshok <toshok@ximian.com>
1765 * HttpCookie.cs: initial implementation. we fail one unit test,
1766 but it might be due to a bug in NameValueCollection.
1768 2005-07-15 Miguel de Icaza <miguel@novell.com>
1772 2005-07-14 Miguel de Icaza <miguel@novell.com>
1774 * HttpRuntime.cs: Return a few of the values from the AppDomain
1777 Put the application shutdown process.
1779 * HttpApplicationFactory.cs (AddEvent): Fixed bug when more than
1782 (FireEvent): Do not ignore errors.
1784 * HttpContext.cs (GetAppConfig, GetConfig): First success, use
1785 ConfigurationSettings.GetConfig to get the value that QueueManager
1788 2005-07-14 Dick Porter <dick@ximian.com>
1790 * HttpPostedFile.cs: New basic implementation; needs someone to
1791 figure out what a HttpRequestStream does
1793 2005-07-13 Miguel de Icaza <miguel@novell.com>
1795 * HttpRequest.cs: More work on this file
1797 * HttpRequest.cs, HttpApplication.cs, HttpContext.cs,
1798 HttpRuntime.cs: New from scratch implementation.
1800 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
1802 * SiteMap.cs: Read provider info from the configuration files.
1804 2005-06-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1806 * HttpResponseHeader.cs: URL encode \r and \n in header values. Fixes
1809 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1811 * HttpUtility.cs: fix another stupid buglet in htmldecode.
1813 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1817 * HttpRequest.cs: use StrUtils (invariant culture).
1819 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1821 * HttpRequest.cs: use StartsWith when looking for 'multipart/form-data'.
1822 File uploading was broken since a few commits ago.
1824 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1826 * HttpResponse.cs: ensure that the last chunk ('0\r\n\r\n') is sent
1827 even if response.Close is called before a final flush. MS/IIS fails to
1830 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1832 * HttpRequest.cs: don't print anything for unknown content types in
1833 ParseFormData. Use lowercase compare.
1835 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1837 * HttpResponse.cs: invariant love.
1839 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1841 * HttpResponse.cs: avoid 1 string concat.
1842 * HttpRequest.cs: fix BinaryRead. It was totally wrong.
1844 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1846 * HttpUtility.cs: don't append an extra 0 when no digits seen. Fixes
1849 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1851 * HttpUtility.cs: the lower limit for using &#xx; encoding is 160, not
1852 128. Reset number back to 0 after use. Fixes bug #75365.
1854 2005-06-19 Svetlana Zholkovsky <svetlanaz-at-mainsoft.com>
1855 * In following classes added TARGET_J2EE or/and TARGET_JVM
1860 - CapabilitiesLoader.cs
1861 - HttpApplication.cs
1862 - HttpApplicationFactory.cs
1866 * Added Mainsoft's specific files :
1867 - GhHttpAsyncResult.jvm.cs
1869 2005-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1871 * HttpRequest.cs: avoid one intermediate buffer when reading the request
1872 body and fail for over limit content length when the content type is
1873 not handled as form or multipart data.
1875 2005-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1877 * HttpResponse.cs: fix the check in Close() so that CloseConnection is
1878 called even if there has been no final Flush. Fixes bug #75176.
1880 2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1882 * HttpParseException.cs:
1884 * HttpApplication.cs: updates for 1.1 service pack.
1886 2005-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1888 * HttpUtility.cs: fix InvalidCastException.
1890 2005-06-05 Kornél Pál <kornelpal@hotmail.com>
1892 * HttpWriter.cs: Fixed: _OutputFilter.Close () was called twice.
1894 2005-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1896 * HttpUtility.cs: modified HtmlDecode so that it does not need to call
1897 Int32.Parse and handles improper &# sequences. Fixes bug #74907.
1899 2005-05-26 Lluis Sanchez Gual <lluis@novell.com>
1901 * SiteMapNodeCollection.cs: Implemented missing methods. The collection
1902 does not inherit from CollectionBase any more.
1903 * SiteMapNode.cs: Track api changes.
1904 * SiteMapProvider.cs: Moved several methods to the new
1905 StaticSiteMapProvider class. Other fixes.
1906 * XmlSiteMapProvider.cs: Watch changes in the xml files. Other fixes.
1907 * SiteMapProviderCollection.cs: Minor fixes.
1908 * SiteMap.cs: Added missing event. Avoid double check lock.
1909 * StaticSiteMapProvider.cs: New class that implements some of the
1910 funtionality of SiteMapProvider.
1912 2005-05-25 Ben Maurer <bmaurer@ximian.com>
1914 * MimeTypes.cs: Remove extra spaces, they were typos. Fixes 75049.
1916 2005-05-13 Atsushi Enomoto <atsishi@ximian.com>
1918 * HttpUtility.cs : UrlDecodeToBytes() incorrectly decoded escaped
1919 characters. Patch by Kazuki Oikawa.
1921 2005-05-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1923 * HttpRuntime.cs: PlatformID.Unix.
1925 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1927 * HttpResponse.cs: cleaned up the .ctors, fix IsClientConnected and just
1928 Clear the _Headers array instead of creating a new ArrayList in
1931 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1933 * HttpResponse.cs: we had 2 variables to track client connection status.
1934 Use only one. Increase the buffer size to 28KB when writing from a file.
1936 * StaticFileHandler.cs: set the Content-Type before writing the file.
1937 This allows flushing before all the content is written.
1939 * HttpApplication.cs: use the variable instead of the property when
1940 setting the Principal for the current process.
1942 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1944 * ReusableMemoryStream.cs:
1945 * HttpWriter.cs: keep a pool of buffers to avoid allocations.
1947 2005-05-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1949 * HttpResponse.cs: no need to save/restore the thread culture when
1950 getting the Date header. According to Ben's profiling, this is a big
1951 deal in performance.
1953 * HttpRuntime.cs: ignore exceptions that might be thrown when unloading
1956 2005-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1958 * HttpApplicationFactory.cs: ignore any exception thrown when invoking
1959 an application event.
1961 2005-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1963 * HttpBrowserCapabilities.cs: fix Win32 property.
1965 2005-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1967 * HttpResponse.cs: only add the charset when explicitly set or for
1968 well-known content types.
1970 2005-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1972 * HttpCachePolicy.cs:
1973 * HttpAsyncResult.cs:
1974 * HttpClientCertificate.cs:
1977 * HttpCacheVaryByHeaders.cs:
1978 * HttpBrowserCapabilities.cs:
1980 * HttpCacheVaryByParams.cs: no more warnings.
1982 * QueueManager.cs: check for local connections with minLocalFreeThreads.
1984 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1986 * ServerVariablesCollection.cs: shuffled variables, added missing ones
1987 and call a method in HttpRequest to set the HTTP_ variables.
1989 * HttpRequest.cs: new method to add HTTP_ variables to a collection.
1991 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1993 * HttpRequest.cs: GetAllHeaders was returning the value twice instead
1994 of 'name: value'. When HTTP_ is requested on the output, don't include
1997 2005-03-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1999 * HttpCookieCollection.cs: when adding more than one cookie with the
2000 same name, the last one is the winner.
2002 2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2004 * HttpRequest.cs: correctly store the value cookies in Params. Fixes
2007 2005-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2009 * HttpRequest.cs: Path and FilePath also change when RewritePath is
2010 called. Fixes bug #73055.
2012 2005-02-23 Sebastien Pouliot <sebastien@ximian.com>
2014 * HttpRequest.cs: Make sure that any access after a ValidateInput
2015 throws an exception if the data isn't safe.
2017 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2019 * CapabilitiesLoader.cs: fix the path, as machine.config is now in a
2020 x.x/ directory below $PREFIX/etc/mono.
2022 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2024 * HttpRequest.cs: fail on unicode full-width '<' and '>' too. Fixes
2025 a security report (http://secunia.com/advisories/14325) that wan't
2026 reported to us before public disclosure.
2028 2005-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2030 * HttpResponse.cs: send the calculated content length even when it's 0.
2033 2005-02-04 Lluis Sanchez Gual <lluis@novell.com>
2035 * HttpContext.cs: Added internal property to keep a reference to
2036 the last accessed page. Page uses this to implement PreviousPage.
2038 2005-02-02 Lluis Sanchez Gual <lluis@novell.com>
2040 * ProcessModelInfo.cs: Fixed warning.
2042 2005-02-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2044 * TraceContext.cs: writing a message without any other argument is not
2045 a warniing. Fixes bug #72017.
2047 2005-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2049 * HttpApplication.cs: if there are no more handlers, finish the
2050 request and ensure we call Complete on it. Now FreeTextBox 3.0 works.
2052 2004-12-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2054 * HttpRequest.cs: honor the maxRequestSize limit from machine.config.
2056 2004-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2058 * HttpApplication.cs: reread application CultureInfo as web.config
2059 might have changed. Fixes bug #62539.
2061 2004-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2063 * HttpResponse.cs: fixed ApplyAppPathModifier to insert the session ID.
2065 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2067 * HttpApplicationFactory.cs: monitor changes in global.asax and bin
2068 directory and shutdown the application when that happens. Fixes bug
2071 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2073 * ReusableMemoryStream.cs: copied from System.IO.MemoryStream and
2074 slightly modified to allow expanding the buffer for cases on which the
2075 regular MemoryStream don't allow it.
2077 * HttpWriter.cs: use the new ReusableMemoryStream and fix bug #59841.
2078 Otherwise we would have to allocate a new MemoryStream...
2080 2004-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2082 * HttpApplication.cs: Create() is now GetInstance().
2084 2004-11-18 Lluis Sanchez Gual <lluis@novell.com>
2086 * SiteMapNodeCollection.cs: Added missing properties.
2087 * HttpParseException.cs: Added 2.0 methods and properties.
2088 * SiteMapNode.cs: Added missing methods and properties.
2089 * SiteMapProvider.cs, XmlSiteMapProvider.cs,
2090 SiteMapProviderCollection.cs: IProvider does not exist any
2091 more, it is now ProviderBase.
2092 * ISiteMapProvider.cs: Deleted.
2093 * ParserErrorCollection.cs, ParserError.cs, SiteMapResolveEventArgs.cs:
2095 * SiteMap.cs: Minor fixes.
2097 2004-11-15 Lluis Sanchez Gual <lluis@novell.com>
2099 * SiteMapProviderCollection.cs: Fixed warning.
2100 * HttpApplication.cs: Added new 2.0 events.
2102 2004-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2104 * HttpResponse.cs: added internl SetHeadersSent.
2105 * HttpRuntime.cs: don't throw the 'headers already sent' exception
2106 if we're sending a runtime error.
2108 2004-11-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2110 * HttpApplication.cs: undo the TimeoutManager.(Add|Remove) shuffling.
2111 It causes troubles under heavy load.
2113 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2115 * SiteMap.cs: don't lock on Type.
2116 * CapabilitiesLoader.cs: avoid 2 locks when loading data.
2118 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2120 * HttpRequest.cs: patch by Dennis Gervalle that fixes PhysicalPath in
2121 presence of rewriting.
2123 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2125 * HttpApplication.cs: don't hang if a sync step is aborted. Fixes the
2126 system.web portion of bug #68270.
2128 2004-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2130 * TraceContext.cs: don't cast to Page is the handler it's
2133 2004-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2135 * HttpRequest.cs: CurrentExecutionFilePath is the one that
2136 changes when Transfer or Execute are used, not FilePath.
2138 * HttpServerUtility.cs: moved form saving/restoring from
2139 Transfer to Execute, as it's needed there too. the query string is
2140 correctly set now. Fixes bug #67388.
2142 * HttpContext.cs: use SetCurrentExePath instead of SetFilePath.
2144 2004-10-03 Ben Maurer <bmaurer@ximian.com>
2146 * HttpResponse.cs: use UtcNow
2148 2004-10-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2150 * HttpResponse.cs: SuppressContent does not throw and clears all the
2151 buffered output. Fixes bug #67213.
2153 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2155 * HttpUtility.cs: UrlPathEncode is static. Fixes bug #67155.
2157 2004-09-29 Ben Maurer <bmaurer@ximian.com>
2159 * HttpContext.cs, TimeoutManager: Use DateTime.UtcNow.
2161 2004-09-25 Ben Maurer <bmaurer@ximian.com>
2163 * HttpApplication.cs: Make sure requests are removed from
2164 the timeout manager. Fixes a major leak. #66751.
2166 2004-09-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2168 * HttpApplicationFactory.cs:
2169 * HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
2172 2004-09-12 Ben Maurer <bmaurer@ximian.com>
2174 * HttpContext.cs: use CallContext. It is a little bit faster.
2176 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2178 * HttpStaticObjectsCollection.cs: don't share static session objects
2179 declared in the application file across the application, but on a
2180 per-session basis. Fixes bug #65446.
2182 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2184 * HttpServerUtility.cs: in Transfer(path), don't keep form data if
2185 the transfer is done from inside a page that received a postback.
2188 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2190 * HttpValueCollection.cs: fixed signature of ToString (). Closes bug
2193 2004-09-06 Ben Maurer <bmaurer@users.sourceforge.net>
2195 * HttpWriter.cs (.ctor): Dont create teh StreamWriter twice
2196 (Clear): Don't recreate the MemoryStream and StreamWriter
2198 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2200 * HttpApplication.cs: only add/remove to/from the timeout
2201 manager when we're in a interruptible step.
2203 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2205 * TraceContext.cs: when IsEnabled has not been set, return the value
2206 from the TraceManager. Fixes bug #63469.
2208 2004-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2210 * HttpRuntime.cs: initialize the response writer when finishing a
2211 request because it cannot be queued. Under heavy load we made new
2212 requests be processed before the ones that might be queued. This is
2215 * QueueManager.cs: instead of queueing/dequeuing separately, we now
2216 have a single method that does everything needed to decide which one
2217 will be the next request processed.
2219 2004-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2221 * HttpRuntime.cs: removed initializations to null in .cctor. Prevent
2222 other requests from avoiding the lock if they are received before the
2223 configuration system is inited. Ensure that the queue manager is not
2224 null before using it (it can be null while the first request is being
2227 2004-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2229 * HttpServerUtility.cs: ensure we have a full virtual path for the
2230 request being executed.
2232 2004-08-02 Duncan Mak <duncan@ximian.com>
2234 * ApplicationShutdownReason.cs: Fixed typos.
2236 * HttpCookieMode.cs:
2237 * HttpDataTransferMode.cs:
2238 * HttpRequestPriority.cs: Added [Serializable] attribute.
2240 2004-08-02 Duncan Mak <duncan@ximian.com>
2242 * ApplicationShutdownReason.cs:
2243 * HttpCookieMode.cs:
2244 * HttpDataTransferMode.cs:
2245 * HttpRequestPriority.cs: Added 2.0 enumerations.
2247 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2249 * HttpApplication.cs: the file not found might be a dependency.
2251 2004-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2253 * HttpCookie.cs: use invariant when formatting expires date. Fixes bug
2256 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2258 * HttpApplication.cs: don't keep the session around if we got it from
2259 the context. Fixes bug #61232.
2261 2004-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2263 * HttpUtility.cs: fixed stupid bug in UrlDecode from bytes. Closes bug
2266 2004-07-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2268 * TraceContext.cs: added internal HaveTrace property whose
2269 value is true when the page has a Trace attribute.
2271 2004-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2273 * TraceData.cs: fixed <br> output. Closes bug #60181.
2275 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2277 * HttpUtility.cs: check for control characters in the string to encode
2278 or decode and return the same string if there are none.
2280 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2282 * HttpApplication.cs: change/restore the IPrincipal in their own methods
2283 and make them internal.
2285 2004-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2287 * HttpContext.cs: reverting Pedro's patch and sending mail with test
2290 2004-06-09 Pedro Martnez Juli <yoros@wanadoo.es>
2292 * HttpContext: User property returns its own "user" value because
2293 the context can walk through different Threads. When "User" property
2294 is changed, change "Thread.CurrentPrincipal" too.
2296 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2298 * HttpRequest.cs: removed extra ^Ms and fixed style of last patch.
2300 2004-06-08 Alon Gazit <along@mainsoft.com>
2302 * HttpRequest.cs: Add a patch for HttpRequest.ServerVariables.
2304 2004-06-07 Sebastien Pouliot <sebastien@ximian.com>
2306 * HttpContext.cs: User property now get/set Thread.CurrentPrincipal.
2307 Fix (at least partially) #59683.
2309 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2311 * HttpRequest.cs: reverting patch from Alon Gazit. Uses the above file
2312 that doesn't compile.
2314 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2316 * TraceData.cs: fixes nullref in an application that relies on
2317 r ["Message"] not being null. Closes bug #59679.
2319 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2321 * HttpCachePolicy.cs: implemented SetAllowResponseInBrowserHistory.
2323 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2325 * HttpRuntime.cs: implemented a 5 simple properties that were TODOs.
2327 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2329 * HttpBrowserCapabilities.cs: implemented ClrVersion and GetClrVersions.
2330 * HttpException.cs: removed MonoTODO.
2332 2004-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2334 * TraceContext.cs: don't check if HttpRuntime.TraceManager
2335 is enabled when writing.
2337 2004-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2339 * HttpRequest.cs: added ClientTarget internal property.
2341 2004-06-03 Lluis Sanchez Gual <lluis@ximian.com>
2343 * HttpApplication.cs: Clear the http handler list after releasing the
2346 2004-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2348 * TraceData.cs: html-encode the messages written to the trace. Fixes
2351 2004-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2353 * HttpWorkerRequest.cs: the hashtables are now case-insensitive. Thanks
2356 2004-05-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2358 * HttpRequest.cs: nullify _sRequestRootVirtualDir and baseVirtualDir
2359 when SetFilePath is called. This way the cached values are reset and
2360 get the right value in case someone (namely SessionStateModule +
2361 cookieless session) changes the FilePath after the property cached its
2362 value. Fixes bug #59364.
2364 2004-05-27 Patrik Torstensson <totte@hiddenpeaks.com>
2366 * HttpApplicationFactory.cs: Added SignalError (still todo)
2368 2004-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2370 * HttpResponse.cs: remove hardcoded "HTTP/1.0" version that kept
2371 chunked encoding disabled. Fixed chunked suffix and end. Send the
2372 'lastchunk' marked when in the final Flush even if the content length
2373 is 0. This makes mod-mono-server work fine with chunked encoding.
2375 * HttpRuntime.cs: Set the _firstRequest* variables to true
2376 earlier. TraceContext don't take any parameter now.
2378 * TraceManager.cs: don't need a context. Use GetAppConfig.
2380 2004-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2382 * HttpApplication.cs: set culture/uiculture from configuration and
2383 restore it after each step. Fixes bug #52851.
2385 2004-05-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2387 * HttpUtility.cs: use lower case in UrlEncode like MS does. Delay
2388 entities hashtable creation until it's really needed.
2390 2004-05-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2392 * HttpApplicationFactory.cs: if no module matches the name found for a
2393 possible event, ignore it. Fixes bug #58542.
2395 2004-05-16 Patrik Torstensson <totte@hiddenpeaks.com>
2397 * HttpRuntime (Init): Removed old todo
2398 * HttApplication : Implemented IHttpHandlerFactory recycling
2400 2004-04-28 Patrik Torstensson
2402 * HttpApplicationState.cs: Performance, usage of ReaderWriter lock,
2405 2004-04-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2407 * HttpUtility.cs: return null in HtmlDecode for null input instead of
2408 throwing an exception. Patch by Jan Jaros (bug #57083).
2410 2004-04-10 Vladimir Vukicevic <vladimir@pobox.com>
2412 * TimeoutManager.cs: Swap the order of initialization of contexts
2413 and the Timer, to avoid race condition of CheckTimeouts being called
2414 before contexts gets initialized.
2416 2004-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2418 * HttpRequestStream.cs: patch from Jan Jaros that fixes bug #56080.
2419 Now the posted file content does not have the boundaries and headers
2422 2004-03-25 Alon Gazit <along@mainsoft.com>
2424 * HttpRequest.cs: fix ValidateCookieCollection() to prevent
2425 InvalidCastException.
2427 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2429 * HttpValueCollection.cs: don't UrlDecode cookies. Fixes bug #55254.
2431 2004-03-01 Larry Ewing <lewing@ximian.com>
2433 * HttpUtility.cs: fix UrlEncodeToBytes count check.
2435 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2437 * HttpServerUtility.cs:
2438 * HttpUtility.cs: added some checks for null. Fixed UrlPathEncode (bug
2441 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2443 * HttpUtility.cs: fixed length check. Closes bug #54201.
2444 Thanks to Michal Moskal. Use MemoryStream instead of an ArrayList when
2447 2004-02-11 Jackson Harper <jackson@ximian.com>
2449 * TraceData.cs: Use ToString for cookie/header/var name values so
2450 null is handled properly.
2452 2004-02-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2454 * HttpApplication.cs: ApplicationState is inited by the factory so,
2455 return that value in the property. when we use the context Session,
2456 cache it in the instance field.
2458 * HttpApplicationFactory.cs: fixed target Type for the event when
2459 hooking application and module events. Initialize application
2460 and session scope objects. Fixes non-aplication events hook up.
2462 * HttpStaticObjectsCollection.cs: added StaticItem and delay the
2463 creation of the objects until they are requested.
2465 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2467 * HttpApplicationFactory.cs: fixlet for session events hook.
2469 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2471 * HttpApplicationFactory.cs: attach all events from Type and BaseType
2472 at the same time. Fixes bug #53454.
2474 2004-01-27 Jackson Harper <jackson@ximian.com>
2476 * HttpCachePolicy.cs: varybyparams::GetResponseHeader can return
2477 null now, dont hadd the header if it does.
2478 * HttpCacheVaryByParams.cs: Return null if there are no items.
2480 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2482 * HttpCachePolicy.cs: it's not public.
2483 * HttpRuntime.cs: wait for requests before disposing the queue.
2485 2004-01-15 Jackson Harper <jackson@ximian.com>
2487 * HttpCachePolicy.cs: Fix typo causing varyby params headers to be
2488 created when they shouldn't be.
2490 2004-01-14 Jackson Harper <jackson@ximian.com>
2492 * TraceData.cs: Fix some typos in the output text. Fix control
2493 position when adding controls recursively.
2495 2004-01-14 Jackson Harper <jackson@ximian.com>
2497 * HttpCachePolicy.cs: Expose duration and sliding properties.
2499 2004-01-14 Jackson Harper <jackson@ximian.com>
2501 * HttpCachePolicy.cs: Add an event that is fired when the
2502 cacheability is updated. The response uses this to determine
2503 whether or not it needs to cache itself.
2504 * HttpResponse.cs: When the cacheability is updated either create
2505 or dispose of the cached raw response based on whether or not we
2506 wil need it. This allows output caching to be controlled
2509 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2511 * HttpContext.cs: add setter for ConfigTimeout.
2512 * HttpException.cs: added Description property and HTML encode some
2515 * HttpRequest.cs: support request validation.
2517 * HttpRequestValidationException.cs: added message and description.
2519 * HttpServerUtility.cs: implemented ScriptTimeout.
2521 2004-01-11 Jackson Harper <jackson@ximian.com>
2523 * TraceManager.cs: Dont crash if there is no trace config element.
2525 2004-01-11 Jackson Harper <jackson@ximian.com>
2527 * HttpRequest.cs: Add property for determining if the request is
2530 2004-01-10 Jackson Harper <jackson@ximian.com>
2532 * TraceContext.cs: Handle tracing when it is enabled in the config
2533 file but not on the page.
2534 * TraceManager.cs: Get settings from the configuration object.
2535 * HttpRuntime.cs: Create trace manager in the first request start
2536 so it can get configuration settings.
2538 2004-01-10 Jackson Harper <jackson@ximian.com>
2540 * TraceContext.cs: Save the request path in the trace data.
2541 * TraceData.cs: Add RequestPath property, make some rendering
2542 methods internal static so the TraceHandler can use them.
2543 * TraceManager.cs: Expose trace data, add a method for clearing
2546 2004-01-10 Jackson Harper <jackson@ximian.com>
2548 * HttpRuntime.cs: Add trace manager
2549 * TraceManager.cs: New class for handling trace configuration and
2550 storing trace data objects.
2551 * TraceContext.cs: Save trace data to the trace manager. Fix typo.
2553 2004-01-10 Jackson Harper <jackson@ximian.com>
2555 * TraceData.cs: New class for storing trace data. Data is stored
2556 here instead of the trace context so it can be saved and accessed
2557 from the trace handler.
2558 * TraceContext.cs: Save data in the TraceData object, let the
2559 trace data object handle the rendering.
2561 2004-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2563 * HttpRequest.cs: use ContentEncoding for QueryString. Fixes bug #52577.
2564 Thanks to Jan Jaros (mono-bug@jerryweb.info).
2566 * HttpRequestValidationException.cs: fix comment.
2568 2004-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2570 * HttpException.cs: default to error 500. Fixes bug #52623.
2572 2004-01-04 Jackson Harper <jackson@ximian.com>
2574 * TraceContext.cs: Store and render trace info times. Also render
2575 cookie sizes. Remove debug code.
2577 2004-01-04 Jackson Harper <jackson@ximian.com>
2579 * HttpResponse.cs: Set the cached response date header so it can
2581 * HttpResponseHeader.cs: Let values be set so we can update cached
2582 response header values.
2584 2004-01-04 Jackson Harper <jackson@ximian.com>
2586 * HttpResponse.cs: Implement RemoveOutputCacheItem.
2588 2004-01-04 Jackson Harper <jackson@ximian.com>
2590 * HttpCachePolicy.cs: Add internal method to get the vary by custom string
2591 * HttpCacheVaryByHeaders.cs: Add internal method to get the header names.
2593 2004-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2595 * HttpRuntime.cs: implemented MachineConfigurationDirectory,
2597 2004-1-1 Alon Gazit <along@mainsoft.com>
2598 * HttpWriter.cs: add check in Write() in order to prevent
2599 NullReferenceException.
2601 2004-1-1 Alon Gazit <along@mainsoft.com>
2602 * HttpResponse.cs: implemented ExpiresAbsolute and Expires.
2604 2003-12-18 Jackson Harper <jackson@ximian.com>
2606 * TraceContext.cs: Write () methods are not warnings.
2608 2003-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2610 * HttpBrowserCapabilities.cs: added GetClrVersions ().
2611 * HttpCachePolicy.cs: added SetAllowResponseInBrowserHistory ().
2612 * HttpContext.cs: added set_Current and RewritePath (s, s, s) for 1.1.
2613 * HttpRequest.cs: added set_ContentType, SetPathInfo and ValidateInput.
2614 * HttpRequestValidationException.cs: new class for 1.1
2615 * HttpResponse.cs: added RedirectLocation.
2616 * HttpRuntime.cs: added UnloadAppDomain.
2617 * HttpServerUtility.cs: Execute (s, t, b) is internal for < 1.2
2618 * HttpUtility.cs: copied UrlPathEncode from HttpServerUtility.
2619 * HttpWorkerRequest.cs: added [ComVisible] and made the ctor public.
2621 2003-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2623 * HttpContext.cs: implemented IsCustomErrorEnabled and
2624 IsDebuggingEnabled. Added internal ErrorPage property.
2626 * HttpRuntime.cs: on error, check if we have a custom error page enabled
2627 to handle it and redirect.
2629 * HttpResponse.cs: added RedirectCustomError (), which actually does
2630 the redirection to the error page.
2632 2003-12-16 Jackson Harper <jackson@ximian.com>
2634 * TraceContext.cs: Render all the data, and the stylesheet.
2636 2003-12-16 Jackson Harper <jackson@ximian.com>
2638 * TraceContext.cs: Add incomplete render method.
2640 2003-12-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2642 * CapabilitiesLoader.cs: loads browser detection and capabilities data
2643 from browscap.ini file by Gary J. Keith.
2645 * HttpBrowserCapabilities.cs: removed almost all TODOs.
2647 * HttpRequest.cs: fixed Browser property.
2649 2003-12-15 Jackson Harper <jackson@ximian.com>
2651 * TraceContext.cs: Initial implementation of storing data.
2652 * HttpContext.cs: Create and expose a trace object.
2654 2003-12-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2656 * HttpApplication.cs: ThreadAbortException is ok on Redirect.
2657 * HttpContext.cs: added TimeoutPossible property.
2658 * HttpResponse.cs: throw ThreadAbortException if End () is called within
2659 a step in which is possible to timeout.
2663 2003-12-04 Jackson Harper <jackson@ximian.com>
2665 * HttpRequest.cs: Cleanup method.
2667 2003-12-04 Jackson Harper <jackson@ximian.com>
2669 * HttpValueCollection.cs: Allow blank value names. Posting
2670 <blank>=SomeValue is valid. And occurs if a radio button does
2671 not have its name set.
2673 2003-12-03 Jackson Harper <jackson@ximian.com>
2675 * HttpResponse.cs: Actually apply an app path modifier in
2676 ApplyAppPathModifer and add a method to set the app path modifier.
2677 * HttpRequest.cs: Add utility method for setting a request header.
2679 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2681 * HttpApplication.cs: handle FileNotFound and DirectoryNotFound
2682 exceptions when creating the handler to generate a better error page.
2684 * HttpException.cs: display the http_code if available. Changed all
2685 \n by \r\n to make the hidden stack trace readable.
2687 * StaticFileHandler.cs: don't send the real path in th eerror.
2689 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2691 * HttpContext.cs: updated GetConfig and GetAppConfig to new API.
2693 * HttpResponse.cs: separate initialization of the HttpWriter, as it
2694 tries to read configuration settings while the config. system is not
2695 available (ie, before the first request).
2697 * HttpRuntime.cs: delayed queueManager and response writer
2698 initialization until the configuration system is working.
2700 2003-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2702 * HttpRuntime.cs: added request queue handling.
2704 * QueueManager.cs: simple request queue.
2706 * TimeoutManager.cs: added some locks to prevent the enumerator used in
2707 CheckTimeouts to be out of synch.
2709 2003-11-25 Jackson Harper <jackson@ximian.com>
2711 * HttpStaticObjectsCollection.cs: Add methods for serialization
2712 and conversion to/from byte arrays.
2714 2003-11-21 Jackson Harper <jackson@ximian.com>
2716 * HttpResponse.cs: When caching data set the content length in the
2717 cached repsonse so that only that amount will be written back to
2718 the client. Add method to write a range of binary data.
2719 * HttpCacheVaryByParams.cs: Add method to retrieve param names.
2721 2003-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2723 * HttpApplication.cs:
2725 * HttpRuntime.cs: add timeout handling.
2726 * TimeoutManager.cs: new class that takes care of aborting threads on
2729 2003-11-19 Jackson Harper <jackson@ximian.com>
2731 * HttpWriter.cs: Use a constant for the buffer size so the cache
2732 can get the buffer size. Add method to get the buffer.
2733 * HttpResponse.cs: Methods for getting data to cache, and setting
2734 vars from the cache.
2735 * HttpCachePolicy.cs: Expose a pages cache expire time.
2737 2003-11-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2740 * HttpWriter.cs: some fixes to allow closing a response stream without
2743 2003-11-13 Jackson Harper <jackson@ximian.com>
2745 * HttpCachePolicy.cs: Make sure cacheability and maxage get
2746 set. Add method to set Http response header data
2747 * HttpCacheVaryByParams.cs: Add method to create a response header.
2748 * HttpCacheability.cs: Add ServerAndPrivate and ServerAndNoCache.
2749 * HttpResponse.cs: Set cache headers.
2751 2003-11-11 Ben Maurer <bmaurer@users.sourceforge.net>
2753 * HttpModuleCollection.cs (GetKey): Recursion, again!
2755 2003-11-11 Ben Maurer <bmaurer@users.sourceforge.net>
2757 * HttpClientCertificate.cs (ValidUntil): recursion!
2759 2003-11-08 Ben Maurer <bmaurer@users.sourceforge.net>
2761 * SiteMapNode.cs (GetDataSourceView): Implement.
2762 * SiteMapProvider.cs: Typo fixing.
2763 * XmlSiteMapProvider.cs: We shouldnt resolve here.
2765 2003-11-08 Ben Maurer <bmaurer@users.sourceforge.net>
2767 * SiteMap.cs (Init): implement a hack that doesnt need the config
2768 stuff. Should do that later.
2769 * SiteMapNodeCollection (OnValidate): Fix recursion.
2770 * SiteMapProvider.cs: We dont implement some culture stuff work
2771 around it. Fix typo.
2772 * XmlSiteMapProvider.cs: Added.
2774 2003-11-07 Ben Maurer <bmaurer@users.sourceforge.net>
2776 * ISiteMapProvider.cs:
2779 * SiteMapNodeCollection.cs:
2780 * SiteMapProvider.cs:
2781 * SiteMapProviderCollection.cs: V2 sitemap related stuff.
2783 2003-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2785 * HttpRequest.cs: don't attempt to read more bytes than specified
2788 2003-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2793 * HttpValueCollection.cs: encoding fixes/updates.
2795 * HttpWriter.cs: when updating the encoding, flush the existing stream.
2798 2003-11-04 Ben Maurer <bmaurer@users.sourceforge.net>
2800 * HttpContext.cs (IsCustomErrorEnabled): dont throw exception, just
2801 return false (which makes sense, as the custom errors *arent* enabled;
2803 * HttpResponseStream.cs: you actually can write with len = 0
2805 2003-11-03 Jackson Harper <jackson@ximian.com>
2807 * HttpResponse.cs (ContentEncoding): Throw
2808 ArgumentNullException. Patch by Yaron Shkop.
2810 2003-10-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
2812 * HttpMultipartContentParser.cs : Quick fix for cygwin build.
2813 CSC complains that constant char cannot be casted as byte.
2815 2003-10-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2817 * HttpApplication.cs: added AssemblyLocation property.
2819 2003-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2821 * HttpApplicationFactory.cs: use NoParamsInvoker.
2822 * HttpRequest.cs: support request filters.
2823 * HttpRequestStream.cs: mono-stylized and added new Set method.
2825 * NoParamsInvoker.cs: proxy class to invoke user-provided methods
2826 without parameters that are invoked by EventHandlers.
2828 2003-10-13 Lluis Sanchez Gual <lluis@ximian.com>
2830 * HttpResponse.cs: Changed harcoded switch to en-US culture to a switch
2831 to invariant culture.
2833 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2836 * HttpServerUtility.cs: change the response writer in Execute. Thanks
2837 to Rich Alimi <rich@velvetsea.net> for noticing this.
2839 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2841 * HttpApplicationFactory.cs: support for wiring up events without
2844 2003-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2846 * HttpUtility.cs: small memory usage reduction.
2848 2003-10-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2850 * HttpApplication.cs: pass the Uri, not the file path to
2851 when looking for a handler.
2853 2003-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2855 * HttpRequest.cs: small fix needed when reading big POST data.
2857 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
2859 * HttpRequest.cs: Url property: use GetLocalAddress() to get the address
2860 (this will get the address from the request headers).
2862 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
2864 * HttpServerUtility.cs: In Transfer(), preserve the query string if
2867 2003-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2869 * HttpApplication.cs: ensure we do all the EndRequest steps. Don't
2870 filter the output on error.
2872 * HttpResponse.cs: modified DoFilter to allow bypassing filtering.
2874 2003-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2876 * HttpApplication.cs: when the request is completed or an
2877 error happens, execute all the delegates attached to EndRequest, not
2878 only the last one. This makes xsp/test/authtest work again.
2880 * HttpMethodNotAllowedHandler.cs: fixed description for http
2883 2003-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2885 * HttpRequest.cs: quick way of checking that the path is within the
2886 root for the application. Thanks to Johannes for reporting.
2888 * HttpRuntime.cs: use the status code from teh exception when it'ss a
2891 * StaticFileHandler.cs: forbidden is 403.
2893 2003-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2895 * HttpServerUtility.cs: fixed path and query. Path by Rich Alimi
2896 <rich@velvetsea.net>.
2898 2003-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2900 * HttpException.cs: make the unhandled error more like the MS one.
2901 * HttpRuntime.cs: set a 500 error code on unhandled exceptions.
2903 2003-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2905 * HttpResponse.cs: flush headers when the body length is 0.
2906 * StaticFileHandler.cs: added If-Modified-Since handling patch slightly
2907 modified from the original by Piers Haken <piersh@friskit.com>.
2909 2003-08-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2911 * HttpResponse.cs: another patch from totte and me. This one prevents
2912 writing output if the client have disconnected and filters the data
2913 when there's a non-final Flush in the middle of the process.
2915 2003-08-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2917 * HttpApplication.cs: fixed typos. Closes bug #44197.
2919 2003-08-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2921 * HttpApplication.cs:
2922 * HttpApplicationFactory.cs: fix duplicate application OnStart events.
2924 Patch by Patrik Torstensson.
2926 2003-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2928 * HttpApplicationFactory.cs: use the correct Delegate.CreateDelegate
2929 overload. The previous one only admits static methods.
2931 2003-08-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2933 * ProcessModelInfo.cs: Fixed signature
2935 2003-07-30 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
2937 * WebCategoryAttribute.cs: Implemented localization
2938 * WebSysDescriptionAttribute.cs: Implemented localization
2940 2003-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2942 * HttpRuntime.cs: also clear the headers that may have been set upon
2943 error processing the request.
2945 2003-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2947 * HttpResponseStreamProxy.cs: reformatted. Fixed infinite recursion in
2950 * HttpWriter.cs: flush the filter after writing.
2952 2003-07-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2954 * HttpWriter.cs: avoid duplicating the MemoryStream byte buffer.
2956 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2958 * HttpContext.cs: Session doesn't have a setter.
2960 * HttpResponse.cs: Request is private.
2962 2003-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2964 * HttpRequest.cs: fixed Headers property. It was getting known headers
2965 values instead of known headers names.
2967 2003-07-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2969 * HttpApplication.cs: prevent nullref if an error happens before context
2971 * HttpException.cs: small fix in the stack trace sent.
2972 * HttpUtility.cs: the lock is not needed.
2974 2003-06-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2976 * HttpRequest.cs: added REMOTE_PORT.
2977 * HttpValueCollection.cs: fixed bug #45490.
2979 2003-05-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2981 * HttpApplication.cs:
2982 * HttpApplicationFactory.cs: fire application start and session
2985 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2987 * HttpException.cs: encode as HTML the inner exception that
2988 is appended as a comment at the end of error pages.
2990 2003-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2992 * HttpWriter.cs: don't do anything in Flush. Fixes #42249.
2994 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2996 * HtmlizedException.cs: added more virtual methods.
2998 * HttpException.cs: some work on the output when there's a source
3001 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3003 * HtmlizedException.cs: simplified to cope with the new interface.
3005 * HttpApplicationFactory.cs: use the application file parser to get the
3008 * HttpException.cs: small changes. Needs some more work on
3011 2003-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3013 * HttpRequest.cs: fixed Url property.
3015 2003-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3017 * HtmlizedException.cs:
3018 * HttpException.cs: display the correct line number in error messages.
3020 2003-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3022 * HttpCachePolicy.cs: implemented all TODOs.
3023 * HttpRequestStream.cs: make it internal.
3025 2003-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3027 * HttpContext.cs: implemented RewritePath in other way.
3028 * HttpRequest.cs: removed SetPhysicalPath and added SetForm.
3029 * HttpServerUtility.cs: implemented Transfer (string, bool).
3031 2003-03-16 Daniel Lopez Ridruejo <daniel @ rawbyte.com>
3032 * HttpContext.cs : Implemented RewritePath
3033 * HttpRequest.cs : Added internal function SetPhysicalPath
3035 2003-03-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3037 * HttpServerUtility.cs: implemented Transfer ().
3039 2003-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3041 * HttpRuntime.cs: Cache no longer have a Dispose method.
3043 * HttpServerUtility.cs: removed MonoTODO.
3045 2003-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3047 * HttpHelper.cs: store the values in an ArrayList to get them in correct
3050 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3052 * HttpApplicationFactory.cs: Global.asax takes precedence over
3053 global.asax if it exists.
3055 * HttpRequest.cs: use allowCrossAppMapping in MapPath.
3057 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3059 * HttpApplication.cs: CreateHttpHandler is now internal.
3061 * HttpRequest.cs: allow setting QueryStringRaw, which
3062 invalidates the data obtained from the previous value. Added internal
3065 * HttpServerUtility.cs: implemented Execute and GetLastError.
3067 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3069 * HttpServerUtility.cs: style.
3071 2003-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3073 * HttpApplication.cs: only execute the EndRequest step on error
3074 condition or request marked as completed. This prevent page events from
3075 being called when, for example, the url authorization module forbids
3078 2003-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3080 * HttpRequest.cs: implemented the indexer.
3082 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3084 * HtmlizedException.cs: base class for exceptions that makes it easy to
3085 generate error pages.
3087 * HttpException.cs: improved error displaying.
3089 * HttpRuntime.cs: removed debugging output.
3091 2003-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3093 * HttpApplication.cs: display the error instead of hanging when we get
3094 any error before the last step of the request.
3096 2003-02-04 Tim Haynes <thaynes@openlinksw.com>
3098 * HttpApplicationFactory.cs: fixed HttpRuntime.Close() to decrement
3101 2003-01-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3103 * HttpRequest.cs: added BaseVirtualDir property and use it in MapPath.
3105 2003-01-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3107 * HttpRequest.cs: implemented CurrentExecutionFilePath.
3109 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3111 * HttpApplication.cs: keep _lasterror if no context. Attach
3112 application events *after* modules initialization (if not, User is not
3113 set when the user handler is called).
3115 * HttpApplicationFactory.cs: made all methods related to
3116 AttachEvents static. I will fix OnStart/OnEnd for application and
3119 * HttpRequest.cs: don't initialize cookies twice.
3121 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3124 (ApplyAppPathModifiers): return the root directory for "".
3126 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3128 * HttpUtility.cs: fixed HtmlDecode to avoid ArgumentOutOfRangeException.
3130 2003-01-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3132 * HttpApplication.cs: added new state to handle default authentication.
3134 2003-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3136 * HttpContext.cs: removed hack to get the User.
3138 2003-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3140 * HttpUtility.cs: fixed bug #36038. Thanks to juancri@tagnet.org for
3141 reporting the bug and how to fix it.
3143 2002-12-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3145 * HttpCookie.cs: send 'expires' in the header.
3147 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3149 * HttpValueCollection.cs: patch from Botjan Vizin
3150 <bostjan.vizin@siol.net> that implements ToString (bool).
3152 2002-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3154 * HttpApplicationFactory.cs: add the context as parameter when building
3155 the application Type.
3157 * HttpCookie.cs: new internal constructor.
3158 * HttpCookieCollection.cs: new internal method to make a cookie expire.
3160 * HttpRequest.cs: MapPath fixes.
3161 * HttpResponse.cs: implemented ApplyAppPathModifier.
3162 * HttpRuntime.cs: fixed typo in AppDomainAppVirtualPath.
3164 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3166 * HttpContext.cs: hack to create a default user when there's no one.
3167 Implemented GetConfig (string).
3169 * HttpRequest.cs: fixes to MapPath (string).
3171 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3173 * HttpRuntime.cs: avoid nulls and exception when getting resource
3176 * StaticFileHandler.cs: added file name to error message.
3178 2002-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3180 * HttpResponse.cs: avoid sending chunked content for HTTP/1.1.
3182 2002-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3184 * HttpApplicationFactory.cs: get the events from the application class,
3185 fire Application/Session Start/End and add the others as application
3188 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3190 * HttpApplicationFactory.cs: compile global.asax file if it exists.
3192 2002-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3194 * HttpRequest.cs: provide a default Browser until we detect it.
3196 (End): do not close the connection here.
3197 (Flush (bool)): send the headers when, for example, Redirect () is
3200 2002-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3202 * HttpException.cs: simple error output.
3204 2002-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3206 * HttpApplication.cs: style.
3207 * HttpException.cs: style.
3208 * HttpRuntime.cs: only flush the response if there are no errors.
3209 Otherwise, write an error output.
3210 * HttpWriter.cs: change Unicode to UTF8.
3212 2002-11-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3214 * HttpApplication.cs: don't begin the request using ExecuteNextAsync
3215 (it fails to work on NetServ).
3217 * HttpWorkerRequest.cs: typo.
3219 2002-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3221 * HttpValueCollection.cs: the value may contain trailing '=' as it is
3222 UrlEncoded. Don't split name=value based on '='.
3224 2002-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3226 * HttpCookie.cs: made GetCookieHeader internal.
3228 * HttpRequest.cs: get cookies from request.
3230 * HttpResponse.cs: send cookies. Implemented
3231 AddFileDependencies (). Added check for _Writer == null in Flush
3232 (Patrik ;-). Clear the content if HEAD or SupressContent == true.
3233 Removed redirect hack used in old server.
3235 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3237 * HttpRequest.cs: fixed GetRawContent (). Now it only tries to read at
3238 most ContentLength bytes.
3240 * HttpResponse.cs: now it sends the headers. Added
3241 X-Powered-By header :-).
3243 * HttpRuntime.cs: fixed typo.
3245 * HttpValueCollection.cs: cosmetic changes.
3247 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3249 * HttpApplication.cs: reenabled a few lines of code
3250 (ThreadPool already fixed).
3255 * HttpValueCollection.cs:
3256 * HttpWriter.cs: Use WebEncoding.Encoding.
3258 2002-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3260 * HttpWriter.cs: changed encoding of the writer from Unicode to UTF8.
3261 This fixes sending bytes and allows mixing byte with chars.
3263 2002-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3265 * HttpResponse.cs: implemented WriteFile methods.
3266 * MimeTypes.cs: removed duplicated entries.
3268 2002-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3270 * HttpResponse.cs: don't throw exception in a couple of
3271 methods not yet implemented.
3273 2002-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3275 * HttpApplication.cs: fixed type and handle factories when creating
3276 IHttpHandler for a request.
3278 2002-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3280 * HttpApplication.cs: use handlers from configuration.
3281 * HttpContext.cs: get handlers from ConfigurationSettings.
3283 2002-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3285 * HttpMethodNotAllowedHandler.cs:
3287 * StaticFileHandler.cs: Modified file.
3289 * HttpUtility.cs: implemented all missing methods.
3292 2002-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3294 * System.Web/HttpApplication.cs: use the static file handler.
3295 * System.Web/HttpForbiddenHandler.cs: handler to forbid access.
3296 * System.Web/HttpMethodNotAllowedHandler.cs: handler for method not
3299 * System.Web/HttpUtility.cs: finished all UrlDecode methods.
3300 * System.Web/MimeTypes.cs: map from file extension to MIME type.
3301 * System.Web/StaticFileHandler.cs: serves static files
3303 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3305 * System.Web/HttpApplication.cs:
3306 * System.Web/HttpApplicationFactory.cs:
3307 * System.Web/HttpRequest.cs:
3308 * System.Web/HttpRuntime.cs: we are now able to compile pages and use
3309 HttpApplication, HttpRuntime and SimpleWorkerRequest.
3311 2002-09-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3313 * HttpApplication.cs: added some missing methods.
3314 * HttpApplicationFactory.cs: get event handlers for the application.
3315 * HttpAsyncResult.cs: little fixes.
3316 * HttpRequest.cs: make Encoding work even with no worker request.
3318 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3320 * HttpWorkerRequest.cs: mcs doesn't go crazy. It's just me, that forgot
3321 to add HttpMapPath to the list file...
3323 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3325 * HttpWorkerRequest.cs: fixes compilation with mcs. I will add a bug
3326 report when i get a test case.
3328 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3330 * HttpApplicationFactory.cs:
3331 * HttpCachePolicy.cs:
3332 * HttpResponseHeader.cs:
3333 * HttpResponseStream.cs:
3334 * HttpResponseStreamProxy.cs:
3335 * HttpValueCollection.cs: misc. fixes based on class status page.
3337 * IHttpMapPath.cs: New file.
3339 * HttpRequest.cs: implemented ContentEncoding.
3340 * HttpWorkerRequest.cs: mono-stylized and implemented
3341 SendResponseFromMemory.
3343 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3345 * HttpContext.cs: reformatted.
3346 * HttpStaticObjectsCollection.cs: implemented GetEnumertor, CopyTo and
3349 2002-08-05 Patrik Torstensson <ptorsten@hotmail.com>
3351 * HttpApplication.cs: Implemented a state machine to allow handling of
3352 HttpModules and HttpHandlers. Implementation of async handlers.
3354 * HttpApplicationFactory.cs: Factory for creating HttpApplication
3355 instances, including caching.
3357 * HttpRuntime.cs: Usage of the new HttpApplicationFactory to get a
3358 application instance to execute requests in and implementation of
3359 request execution (still no request queue).
3361 * HttpAsyncResult.cs: New file to handle async module results.
3363 * HttpRequest.cs: Change signature of Dispose
3364 * HttpResponse.cs: new internal method allowing filtering to happen
3365 during the request flow in the state machine.
3367 2002-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3369 * HttpApplication.cs: events were not being initialized.
3371 2002-07-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3373 * ProcessModelInfo.cs: fixed compilation.
3375 2002-07-25 Tim Coleman <tim@timcoleman.com>
3376 * ProcessModelInfo.cs:
3378 * HttpParseException.cs:
3379 * HttpCompileException.cs:
3380 * HttpUnhandledException.cs:
3381 Internal constructors added to these
3383 2002-07-24 Tim Coleman <tim@timcoleman.com>
3385 Fix constructor, reference to shutdownreason.
3387 2002-07-24 Tim Coleman <tim@timcoleman.com>
3388 * HttpCachePolicy.cs:
3389 Added stubbs to this class.
3390 * HttpCacheability.cs:
3391 * HttpCacheRevalidation.cs:
3392 * HttpValidationStatus.cs:
3393 * ProcessShutdownReason.cs:
3396 Reorder the enumerations (and in some cases make
3397 one-based) in order to agree with the .NET
3398 implementation, based on the class status page.
3400 Implementation of this class.
3402 2002-07-23 Tim Coleman <tim@timcoleman.com>
3403 * HttpCompileException.cs:
3404 * HttpParseException.cs:
3405 * HttpUnhandledException.cs:
3407 * HttpApplication.cs:
3408 * HttpBrowserCapabilities.cs:
3409 Added missing methods stubbs and attributes based
3410 on the class status page. Also reformatted some
3411 source for consistency.
3413 2002-07-23 Tim Coleman <tim@timcoleman.com>
3414 * HttpUtility.cs: Moved entities hashtable into main
3415 class as a static object, so we don't instantiate
3416 a new one every time. Also put the hashtable
3417 building into a lock block.
3419 2002-07-22 Tim Coleman <tim@timcoleman.com>
3420 * HttpUtility.cs: Cleanup of the code, implementation
3421 of HtmlDecode/HtmlEncode functions
3423 2002-07-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3425 * HttpResponse.cs: quick&dirty hack to make redirection work. Should
3426 be out of there once we have SimpleWorkerRequest.
3428 2002-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3430 * HttpUtility.cs: little typo, big headache.
3432 2002-07-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3434 * HttpRuntime.cs: don't throw NotImplemented in a couple of methods.
3436 2002-06-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3438 * System.Web/HttpResponse.cs:
3440 Fixes based on class status page:
3442 - Add attributes (DefaultEvent, ParseChildren).
3444 - Explicitly implement some interfaces (IPostBackDataHandler
3445 and IPostBackEventHandler).
3446 - Implemented some missing methods.
3448 2002-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3451 (Session): return null instead of throwing an exception.
3454 (HttpMethod): return RequestType if not set.
3455 (GetRawContent): return QueryString if we don't have a
3458 * HttpUtility.cs: fixed Decode and Encode.
3460 2002-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3462 * HttpApplication.cs:
3463 * HttpContext.cs: added System.Web.SessionState namespace.
3465 * HttpSessionState.cs: removed. It is under
3466 System.Web.SessionState.
3468 2002-06-10 Duncan Mak <duncan@ximian.com>
3470 * HttpBrowserCapabilities.cs (BackgroundSounds): Fixed typo.
3472 2002-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3474 * HttpRequest.cs: implemented Browser property.
3476 2002-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3478 * HttpBrowserCapabilities.cs: stubbed out.
3480 2002-05-18 Miguel de Icaza <miguel@ximian.com>
3482 * HttpRuntime.cs: Reformat file.
3484 2002-05-07 Duncan Mak <duncan@ximian.com>
3486 * HttpBrowserCapabilities.cs: Added, replacing
3487 HttpBrowserCapabilites because of typo.
3489 * HttpBrowserCapabilites.cs: Removed, replaced by above.
3491 * HttpRequest.cs (Browser): Fixed typo.
3493 2002-04-12 Patrik Torstensson <patrik.torstensson@labs2.com>
3495 * HttpApplication.cs: Minor updates
3496 * HttpApplicationState.cs: Ready.
3497 * HttpClientCertificate.cs: Signature updates
3498 * HttpValueCollection.cs: ready
3499 * HttpStaticObjectsCollection.cs: ready
3500 * HttpResponseHeader.cs: made internal only
3501 * HttpResponse.cs: Signature updates
3502 * HttpPostedFile.cs: ready
3503 * HttpCacheVaryByHeaders.cs: ready (except communication to policy)
3504 * HttpCacheVaryByParams.cs: ready (except communication to policy)
3506 System.Web is now over 60% ready..
3508 2002-04-11 Patrik Torstensson <patrik.torstensson@labs2.com>
3510 * HttpException.cs: 95% ready, only windows dependent code left
3511 * HttpFileCollection.cs: Finished.
3512 * HttpRequest.cs: Minor fixes and fixed signature problems
3513 * HttpResponse.cs: Implementation of missing methods and signature problems
3514 * HttpResponseHeader.cs: Fixed signature problems
3515 * HttpRuntime.cs: Fixed signature problems
3516 * HttpServerUtility.cs: Added support for HttpApplication
3517 * HttpSessionState.cs: Fixed signature issues
3518 * HttpUtility.cs: fixed signature issues
3519 * HttpValueCollection.cs: Support for cookie parsing and fixed signature issues
3520 * HttpWorkerRequest.cs: Fixed small signature issue
3521 * HttpWriter.cs: Fixed signature issue
3522 * HttpApplication.cs: Basic implementation
3523 * HttpApplicationState.cs: Small fixes to support major change comming up
3524 * HttpBrowserCapabilities.cs: Added Type method
3525 * HttpClientCertificate.cs: Almost ready, needs to parse certificate.
3526 * HttpContext.cs: Fixed signature issues and added last methods.
3527 * HttpCookie.cs: Full implementation
3528 * HttpCookieCollection.cs: Full implementation
3529 * TraceContext.cs: Methods implemented.
3530 * HttpPostedFile.cs: Placeholder
3531 * HttpStaticObjectsCollection.cs: Placeholder
3532 * HttpModuleCollection.cs: Ready, will be used during the major revamp.
3534 * Fixed a number of other small signature problems also (class status page)
3537 2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>
3539 * HttpWorkerRequest.EndOfSendNotification.cs Removed (included in WorkerRequest)
3540 * Checkin of all new files (noted in last changenote)
3542 2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>
3544 * HttpContext.cs: First implementation (basic support, few methods left to impl)
3545 * HttpException.cs: Partial implementation (basic support)
3546 * HttpHelper.cs: Header parse helper, used by runtime (non public)
3547 * HttpRequest.cs: Implementation (all methods there, not all fully impl)
3548 * HttpRequestStream.cs: Full implementation
3549 * HttpResponse.cs: Partial implementation(almost all methods)
3550 * HttpResponseHeader.cs: Header helper
3551 * HttpResponseStream.cs: Full implementation - Response stream support
3552 * HttpResponseStreamProxy.cs: Implementation - filter support
3553 * HttpRuntime.cs: Rewrite to support one IHttpModule (use for testing the runtime)
3554 * HttpServerUtility.cs: Implemented usage of HttpContext for methods
3555 and moved encoding functions to HttpUtility.
3557 * HttpUtility.cs: Added encoding/decoding functions from HttpServerUtility and
3558 added the Attribute encoding functions.
3560 * HttpValueCollection.cs: Implementation.
3561 * HttpWorkerRequest.cs: Rewrite and implementation of all methods (ready)
3562 * HttpWriter.cs: Implementation (with filter support)
3564 * HttpFileCollection: Added dummy class (placeholder)
3565 * HttpApplication.cs: Added dummy class (placeholder)
3566 * HttpApplicationState.cs: Added dummy class (placeholder)
3567 * HttpBrowserCapabilities.cs: Added dummy class (placeholder)
3568 * HtttpCachePolicy.cs: Added dummy class (placeholder)
3569 * HttpClientCertificate.cs: Added dummy class (placeholder)
3570 * HttpSessionState.cs: Added dummy class (placeholder)
3571 * TraceContext.cs: Added dummy class (placeholder)
3574 2002/04/10 Nick Drochak <ndrochak@gol.com>
3576 * HttpServerUtility.cs: Fix build breaker.
3578 2002-03-28 Wictor Wiln <wictor@iBizkit.se>
3580 * HttpServerUtils.cs : Added some more functionality
3582 2002-03-28 Martin Baulig <martin@gnome.org>
3584 * HttpServerUtils.cs (UrlDecode): You cannot implicitly cast a
3585 char to a string, use ToString() instead.
3587 2002-03-16 Gaurav Vaish <gavish@iitk.ac.in>
3589 * WebCategoryAttribute.cs
3590 : Added private attribute.
3592 2002-03-16 Gaurav Vaish <gavish@iitk.ac.in>
3594 * HttpRuntime.cs : Stubbed methods for
3595 FormatStringResource(...) in agreement with the various
3596 overloads available at String.Format(...)
3598 2002-01-08 Gaurav Vaish <gavish@iitk.ac.in>
3600 * TODOAttribute.cs : Added, as an internal class to the assembly
3602 2002-01-03 Nick Drochak <ndrochak@gol.com>
3604 * HttpRuntime.cs: remove uneeded exception variable from catch and
3605 initialize remaining instance members to avoid compile warnings
3607 2002-01-02 Nick Drochak <ndrochak@gol.com>
3609 * HttpRuntime.cs: fix spelling error/variable name change.
3611 2001-12-18 Gaurav Vaish <gvaish@iitk.ac.in>
3613 * HttpRuntime.cs : Initial implementation
3615 2001-08-29 Bob Smith <bob@thestuff.net>
3617 * HttpWorkerRequest.cs: Partial Implementation.
3619 2001-08-16 Bob Smith <bob@thestuff.net>
3621 * HttpCookieCollection.cs, HttpCookie.cs: Bug fixes.
3623 2001-08-09 Bob Smith <bob@thestuff.net>
3625 * BeginEventHandler.cs: Implemented.
3626 * EndEventHandler.cs: Implemented.
3627 * HttpCacheability.cs: Implemented.
3628 * HttpCacheRevalidation.cs: Implemented.
3629 * HttpCacheValidateHandler.cs: Implemented.
3630 * HttpCookieCollection.cs: Implemented.
3631 * HttpCookie.cs: Implemented.
3632 * HttpValidationStatus.cs: Implemented.
3633 * HttpWorkerRequest.EndOfSendNotification.cs: Implemented.
3634 * IHttpAsyncHandler.cs: Implemented.
3635 * IHttpHandler.cs: Implemented.
3636 * IHttpHandlerFactory.cs: Implemented.
3637 * IHttpModule.cs: Implemented.
3638 * ProcessShutdownReason.cs: Implemented.
3639 * ProcessStatus.cs: Implemented.
3640 * TraceMode.cs: Implemented.