1 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3 * HttpResponse.cs: don't duplicate the 'charset=' and don't send a
4 charset for unknown MIME types.
5 * StaticFileHandler.cs: set the Content-Length header here.
6 * HttpRequest.cs: prevent nullrefs when we have no 'charset='.
8 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10 * StaticFileHandler.cs: use TransmitFile instead of WriteFile. This way
11 xsp will use sendfile().
13 2005-08-28 Chris Toshok <toshok@ximian.com>
15 * SiteMapNode.cs: fix IHierarchyData.GetParent.
17 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20 * IntPtrStream.cs: now we only have a read-only MemoryStream or an
21 IntPtrStream. The copy is moved into HttpRequest.
23 2005-08-26 Sebastien Pouliot <sebastien@ximian.com>
25 * WebCategoryAttribute.cs: New. Required internal attribute.
26 * WebSysDescriptionAttribute.cs: New. Required internal attribute.
28 2005-08-26 Jackson Harper <jackson@ximian.com>
30 * HttpResponseStream.cs: Use GetBuffer so the memory isn't
33 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
35 * HttpApplication.cs: GetHandler might return null when, for example,
36 a web service fails, but that does not mean that returning a null
37 handler should throw another exception, as the web service code
38 serialized the error as a faultString. So if the handler is null, just
39 don't call ProcessRequest and keep going.
41 2005-08-26 Jackson Harper <jackson@ximian.com>
43 * HttpResponse.cs: Send the cached headers if this is a cached
44 response. Save the headers, date header, and page data. Fix a typo.
45 * HttpResponseStream.cs: Add new accesor to get a byte [] of the
48 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
50 * HttpWorkerRequest.cs: SetEndOfSendNotification is a noop. No matter
51 what callback you use that never gets called. In XSP I actually
52 implement something for this method.
53 * HttpServerUtility.cs: unused variable.
55 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
57 * HttpInputStream.cs: new ctor that takes a byte [].
58 * IntPtrStream.cs: make it work on a byte [] too.
61 (ContentLength): return 0 for negative numbers or error parsing, but
62 keep content_length negative in those cases.
63 (MakeInputStream): when there's no content-length (or it's negative),
64 we still read the request into a MemoryStream. Use
65 IsEntireEntityIsPreloaded() as a fast path.
67 2005-08-25 Sebastien Pouliot <sebastien@ximian.com>
69 * HttpClientCertificate.cs: On 1.x the .ctor throws a
70 ArgumentNullException (but 2.0 throws a NRE).
72 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
74 * HttpRequest.cs: HttpMethod deserves its own field. Fix IsLocal.
76 2005-08-25 Chris Toshok <toshok@ximian.com>
78 * HttpApplication.cs (IsReusable): return true.
79 (InitOnce): remove the initialization of handler_factory from
81 (GetHandler) and move it here, so we make sure to load handlers
82 from all needed web.config files.
84 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
86 * HttpServerUtility.cs: use GetHandler().
87 * HttpApplication.cs: remove obsolete method. Now Transfe/Execute work.
89 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
91 * HttpApplication.cs: no need for the local var. here.
93 2005-08-25 Chris Toshok <toshok@ximian.com>
95 * HttpApplication.cs (InitOnce): move the initialization of
96 modules above the call to HttpApplicationFactory.AttachEvents,
97 since that method accesses HttpApplication.Modules. Fixes
99 (IsReusable): mark TODO.
101 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
103 * HttpResponseHeader.cs: removed obsolete class.
104 * HttpResponse.cs: no more 'obsolete' warnings.
106 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
108 * HttpRuntime.cs: implemeted some missing properties.
110 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
112 * HttpResponse.cs: implemented RemoveOutputCacheItem().
114 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
116 * HttpApplication.cs: implemented GetVaryByCustomString().
118 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
120 * HttpRequest.cs: implemented SetHeader (allows adding a header
121 circumventing the read-only protection of the collection) and SetForm,
122 which just assigns a value of the 'form' collection.
123 * HttpServerUtility.cs: NameValueCollection -> WebROCollection.
125 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
128 * HttpRequest.cs: implemented RewritePath and supporting methods.
130 2005-08-22 Sebastien Pouliot <sebastien@ximian.com>
132 * HttpRequest.cs: Avoid NRE if work_request if null in the ctor.
133 * HttpResponse.cs: Avoid NRE if work_request if null in the ctor.
135 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
137 * HttpApplication.cs: if there's any exception thrown when getting the
138 handler, don't add an extra error to the context, as we already have
141 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
145 * HttpWorkerRequest.cs:
146 * HttpApplication.cs: added mising attributes and enabled methods
149 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
151 * WebROCollection.cs: a collection that allows setting IsReadOnly.
152 * HttpRequest.cs: implemented MapImageCoordinates(). Use WebROCollection
153 instead of a NameValueCollection in Form, Headers, Params, QueryString.
155 2005-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
157 * HttpInputStream.cs: new copy ctor.
158 * IntPtrStream.cs: getters for base_address and size.
159 * HttpRequest.cs: implemented SaveAs(). Use a wrapper on top of
160 InputStream so that reading POST form or files does not modify the state
161 if InputStream. Don't use uri_builder.Query in QueryStringRaw, as it
164 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
166 * HttpRequest.cs: implemented UserLanguages and reuse code from
169 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
171 * HttpRequest.cs: implemented AcceptTypes.
173 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
175 * HttpRequest.cs: implemented this[] in terms of Params. Don't add the
176 header collection in Params.
178 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
180 * HttpRequest.cs: fix Files property.
181 * HttpApplication.cs: invoke the default authentication event after all
182 the other auth. modules.
184 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
186 * ServerVariablesCollection.cs: mark the collection as read-only except
187 when we fill it. Add the HTTP_blah key/value pairs too.
189 2005-08-18 Chris Toshok <toshok@ximian.com>
191 * HttpRequest.cs (get_Params): implement.
193 2005-08-17 Chris Toshok <toshok@ximian.com>
195 * HttpResponse.cs: HttpResponse's Cookie's collection acts
196 differently than HttpRequests in that it never returns null from
197 the "this [string]" accessor.
199 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
201 * HttpRequest.cs: check length 0 case when reading a POST.
203 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
205 * HttpContext.cs: added security attributes for User and
206 SkipAuthorization properties.
207 * HttpApplicationFactory.cs: AttachEvents is now called form the
208 application .ctor. Recycle instead of dispose.
209 * HttpApplication.cs: attach events to the newly created application.
211 2005-08-15 Jackson Harper <jackson@ximian.com>
213 * ApplicationShutdownReason.cs: make build
215 2005-08-15 Miguel de Icaza <miguel@novell.com>
217 * HttpApplication.cs: Update comments
219 * HttpPostedFile.cs: Use a substream to read from the uploaded
222 * HttpRequest.cs: use new code to read the uploaded files.
224 2005-08-12 Miguel de Icaza <miguel@novell.com>
226 2.x API fixage and small additions:
228 * HttpResponse.cs: Make constructor internal.
230 * HttpRequest.cs (IsLocal): Expose if NET_2.x
232 * HttpContext.cs: Remove internal routine.
234 * HttpApplication.cs: Add 2.x events.
236 * HttpRequest.cs: Another iFolder issue: I was not setting up the
239 Fixes to get iFolder to work:
241 * HttpApplicationFactory.cs: Set the context when we are initting
244 * HttpApplication.cs (SetContext): helper routine.
246 * HttpResponse.cs: Implement the various cache operations:n
247 Expires, ExpiresAbsolute, CacheControl.
249 Actually produce the Cache-Control header, the "Cache" property
250 takes precedence over the compatibility settings (Expires,
251 ExpiresAbsolutely and CacheControl).
253 * HttpCachePolicy.cs: Fix style.
255 Fix the generation of the headers, use lower-case values, do not
256 add the max-value if the value is zero.
258 Allow for all possible values in SetCacheability.
260 * HttpRuntime.cs (ClrInstallDirectory): Implement.
262 * HttpResponseStream.cs: Remove debugging stuff.
264 2005-08-11 Miguel de Icaza <miguel@novell.com>
266 Big chunked handling rewrite, and integration of Ben's unmanaged
269 * HttpWriter.cs: Delegate chunked encoding writing to the
272 * HttpResponse.cs: Rework the chunked encoding system, centralize
275 * HttpResponseStream.cs: Deploy Ben's bucket-base unmanaged
278 Changed the way that we handle chunked encoding, centralize it
281 Remove a lot of manual handling of buffering turned off, and
282 instead delegate it all to Flush, fixes several issues with the
285 * HttpWorkerRequest.cs (SendResponseFromMemory (IntPtr, int)):
286 Provide a default implementation since currently XSP does not have
287 this method implemented.
289 2005-08-11 Sebastien Pouliot <sebastien@ximian.com>
291 * HttpClientCertificate.cs: Culture insensitive int parsing. Fixed
294 2005-08-10 Miguel de Icaza <miguel@novell.com>
296 * ServerVariablesCollection.cs: For Ben. Implement the header
297 fetching here, do not implement it in HttpRequest.cs.
299 2005-08-10 Sebastien Pouliot <sebastien@ximian.com>
301 * HttpClientCertificate.cs: Changed IsPresent logic so that new unit
302 tests will work as expected.
304 2005-08-10 Sebastien Pouliot <sebastien@ximian.com>
306 * HttpClientCertificate.cs: Implemented, except for validation. Note
307 that the HttpWorkerRequest derived classes must be updated to supply
308 the required informations.
309 * HttpRequest.cs: Create an HttpClientCertificate on first call to
312 2005-08-09 Miguel de Icaza <miguel@novell.com>
314 * HttpRuntime.cs (AspInstallDirectory): Implement.
316 2005-08-09 Sebastien Pouliot <sebastien@ximian.com>
318 * HttpClientCertificate.cs: New. Stub. It won't be fun to test.
320 2005-08-04 Ben Maurer <bmaurer@ximian.com>
322 * HttpContext.cs: Kill a NIE.
324 2005-08-04 Miguel de Icaza <miguel@novell.com>
326 * HttpApplicationFactory.cs: Change "Start" event like the "End"
327 event, and only do this once, when we init the type.
329 Fire the "Application_Start" event after we create the type.
331 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
333 * HttpApplication.cs: catch a ThreadAbort (coming from Response.End)
336 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
338 * HttpResponse.cs: setting the Status property resets the
339 StatusDescription (see the tests) and the default value for the
340 description is the one provided by GetStatusDescription() in
343 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
345 * HttpRequest.cs: s/boundry/boundary/ and fix typo in array creation.
347 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
349 * HttpApplication.cs: add call to EndOfRequest when everything is said
352 2005-08-02 Miguel de Icaza <miguel@novell.com>
354 * HttpResponse.cs: Stub for TransmitFile.
356 * HttpRequest.cs (IsAuthenticated): Implement.
358 2005-08-01 Miguel de Icaza <miguel@novell.com>
360 * HttpRequest.cs: Cope with implementations of HttpWorkerRequest
361 (unpatched xsp) that do not send back the PreloadedEntityBody.
363 * HttpApplication.cs: keep track of the factory.
364 (Dispose): Only dispose once, clean up other variables, release
365 the ManualResetEvent.
366 Release the handler to the factory.
368 * HttpApplicationFactory.cs: Implement a stack to reuse the
371 * HttpRequest.cs: On uploads, if the ContentLenght is zero, throw
374 * HttpRuntime.cs: Recycle the application after using it.
376 * HttpPostedFile.cs: Implement SaveAs.
378 * HttpContext.cs: Return the "Server" property.
380 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
382 * HttpServerUtility.cs: implemented missing bits.
384 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
386 * HttpRequest.cs: query string was getting a '?' as the start of the
387 first variable name. This makes the asmx help page work again.
389 2005-08-01 Miguel de Icaza <miguel@novell.com>
391 * HttpRequest.cs (Cookies, Forms): Add validation.
392 (Forms): Add application/x-www-form-urlencoded parsing and
393 multipart/form-data parsing.
395 (HttpMultiPart): Implement new class to load multi-part data from
396 a stream since there is no longer a byte [] that holds the data
397 (currently we have an unmanaged IntPtr buffer wrapped as a
398 stream). Also the 2.x framework will add support for large
399 uploads which are sent directly to disk, which will require the
400 FileStream interface.
402 (Path, PathInfo): Fill a couple more methods to avoid crashes.
404 * HttpContext.cs: Fill another one to get web services summary
405 page painting. The page does not work though.
407 * HttpApplication.cs: Rework the pipeline to not depend on
408 `finally', as `finally' would not be invoked if we choose not to
409 call the pipeline again (which happens if the `stop' variable is
412 Instead force the pipeline to go to the shutdown, and yield from
413 there after all the release-state callbacks have been invoked.
415 2005-07-31 Miguel de Icaza <miguel@novell.com>
417 * HttpApplication.cs: Remove debugging messages since the compiler
420 You must use at least mcs from revision 47879 for the application
423 2005-07-30 Miguel de Icaza <miguel@novell.com>
425 * HttpContext.cs: Error handling methods.
427 * HttpResponse.cs: Trigger the last event.
429 * HttpRuntime.cs: Add queueing of the next request.
431 * HttpApplication.cs: Deploy the new yield-based application
432 pipeline, add error handling to the pipeline.
434 * HttpApplication.cs (AsyncRequestState): Just use the done event
437 2005-07-29 Miguel de Icaza <miguel@novell.com>
439 * HttpResponseStream.cs, HttpRequest.cs: Fix bugs found by nunit.
441 * HttpApplication.cs: Fix a race condition.
443 * HttpResponseStream.cs: Fix bug, send the size of the buffer that
444 we have so far instead of the internal size of the buffer. This
445 will need work later to ensure we enforce the Content-Length
446 maximum output size if set.
448 * ServerVariablesCollection.cs: This class now inherits from
449 NameValueCollection, we should probably review what the middle
450 class did, there are no dependencies on it.
452 I need to write tests to investigate if something is missing or
453 has changed in this implementation.
455 2005-07-27 Miguel de Icaza <miguel@novell.com>
457 * HttpRequest.cs: No happy replies here, send a 411.
459 2005-07-27 Chris Toshok <toshok@ximian.com>
461 * HttpResponseHeader.cs: remove spew.
463 2005-07-27 Chris Toshok <toshok@ximian.com>
465 * HttpResponseHeader.cs (HttpResponseHandler..ctor): use
466 HttpWorkerRequest.GetKnownResponseHeaderName instead of
467 GetKnownRequestHeaderName. Fixes Response.Redirect until miguel's
468 new HttpReponse is online.
470 2005-07-26 Miguel de Icaza <miguel@novell.com>
472 * HttpResponse.cs: use_chunked is now a byte-array, if not null,
473 we use it to hold the size of the chunked so we do not have to
474 allocate many of these.
475 (SendSize): Helper routine to send the chunked headers.
476 (BinaryWrite): First user of the chunked writer.
478 * HttpApplication.cs: Do not crash if they request a Server
479 instance, but throw a NotImplementedException.
481 * HttpRequest.cs: fix a few problems exposed by the regression
484 * HttpRequest.cs (Cookies): use Chris' new constructor to get the
487 : The big Uri rework: instead of using QueryString
488 as the population mechanism, populate an UriBuilder from the
489 various HttpWorkerRequest methods.
491 * HttpWorkerRequest.cs (GetProtocol): Implement in terms of
494 * HttpResponse.cs: Pointed by Ben, Write (null) is a nop instead
497 * HttpContext.cs: Add a couple of properties to help the 2.x
500 * HttpResponse.cs: Make ContentLength a long, add back support for
501 session's app_path_mod.
502 (ApplyAppPathmodifier): put back.
503 (End): Pass a flag to abort so we can tell the exceptions appart
505 (WriteHeaders): Send the HTTP status.
506 (Redirect): Implement.
507 (Write): Use the Output property to load writer when needed.
509 * HttpRequest.cs (ctor): Temporary use of InitFromWR, will fix
511 (MakeInputStream): check content-length size, use routines to load
512 the preloaded data, handle incomplete transfers.
513 (Query): Do not insert null keys into the collection.
515 (UrlReferer): implement.
517 * HttpApplication.cs (RunHooks): Catch Thread.Abort, and call
518 Thread.ResetAbort after each step.
520 Ensure that ReleaseState is called if we ever succeed in acquiring
521 the state even if we have stopped the request pipeline.
523 Report file not found, directory not found.
525 2005-07-25 Miguel de Icaza <miguel@novell.com>
527 * HttpCookieCollection.cs: Add expiration of the cookie.
529 * HttpRequest.cs: Add check for ContentLength, use
530 GetPreloadedEntityBody, correct number of bytes uploaded.
532 2005-07-21 Miguel de Icaza <miguel@novell.com>
534 * HttpResponseHeader.cs: Our implementation of HttpResponse only
535 uses the text headers, does not use any constants as XSP would go
536 through a slower code path anyways.
538 2005-07-21 Chris Toshok <toshok@ximian.com>
540 * HttpBrowserCapabilities.cs: enable support for the W3CDomVersion
541 and EcmaScriptVersion properties.
543 2005-07-21 Chris Toshok <toshok@ximian.com>
545 * HttpResponseHeader.cs: hi, i'm stupid and missed String.Replace.
547 2005-07-21 Chris Toshok <toshok@ximian.com>
549 * HttpResponseHeader.cs: url encode just \r and \n if they're
550 present in the value.
552 2005-07-20 Chris Toshok <toshok@ximian.com>
554 * HttpPostedFile.cs: add missing ContentLength property.
556 2005-07-20 Chris Toshok <toshok@ximian.com>
558 * HttpCookieCollection.cs: add a new ctor that takes a string (the
559 contents of the Cookies: header).
561 2005-07-20 Chris Toshok <toshok@ximian.com>
563 * HttpCookieCollection.cs: add another ctor (internal, but not
564 obsolete, so we aren't passing a stupid HttpResponse in in order
565 to change the behavior of the collection.)
567 * HttpCookie.cs: init this.values in the internal ctor.
569 2005-07-20 Chris Toshok <toshok@ximian.com>
571 * HttpCookieCollection.cs: use "auto-fill mode" when we're dealing
572 with an HttpResponse's cookie collection. That is, create the
573 cookie if the consumer looks it up.
575 2005-07-20 Miguel de Icaza <miguel@novell.com>
577 * HttpApplication.cs: Ongoing work on pipeline, I will need to
580 2005-07-19 Miguel de Icaza <miguel@novell.com>
582 * HttpContext.cs (GetService): Implement. Return all of the
583 properties that we have access to. Make HttpWorkerRequest the
584 first match as this is the only likely reason people need to use
587 * IntPtrStream.cs: Bring from corlib.
589 * MultiPartContentParser.cs: use a MemoryStream as HttpInputStream
590 will now be using IntPtrStream.
592 * HttpRequest.cs (MakeInputStream): move code that loads the
594 (CloseInputStream): Helper method that we will call later to
595 ensure that we dispose properly the malloced() block.
596 (BinaryRead): Implemented.
598 * HttpInputStream.cs: Rewrite to be a descendant of
601 2005-07-18 Miguel de Icaza <miguel@novell.com>
603 * HttpApplication.cs (Modules): Add modules support and
606 2005-07-18 Chris Toshok <toshok@ximian.com>
608 * HttpResponseHeader.cs: initial implementation.
610 2005-07-18 Chris Toshok <toshok@ximian.com>
612 * HttpModuleCollection.cs (HttpModuleCollection.GetKey): add
615 * HttpFileCollection.cs: initial implementation.
617 2005-07-18 Chris Toshok <toshok@ximian.com>
619 * HttpModuleCollection.cs (HttpModuleCollection.CopyTo): implement
622 2005-07-18 Chris Toshok <toshok@ximian.com>
624 * HttpModuleCollection.cs: initial implementation.
626 2005-07-18 Chris Toshok <toshok@ximian.com>
628 * HttpCacheVaryByHeaders.cs: only add the header if it's not
631 * HttpCacheVaryByParams.cs: only add the param if it's not already
634 2005-07-18 Chris Toshok <toshok@ximian.com>
636 * HttpCookie.cs (HttpCookie+CookieNVC.Set): new override to fix an
639 2005-07-17 Miguel de Icaza <miguel@novell.com>
641 * HttpRequest.cs (Headers, InputStream): implemented two more
644 * HttpInputStream.cs: All we need is a MemoryStream with writable
647 * HttpPostedFile.cs: Use a Stream.
649 2005-07-16 Chris Toshok <toshok@ximian.com>
651 * HttpCacheVaryByHeaders.cs: make sure we set vary_by_unspecified
652 = false in the custom setter.
654 2005-07-16 Chris Toshok <toshok@ximian.com>
656 * HttpCacheVaryByParams.cs: initial implementation.
658 2005-07-16 Chris Toshok <toshok@ximian.com>
660 * HttpCacheVaryByHeaders.cs: initial implementation.
662 2005-07-15 Chris Toshok <toshok@ximian.com>
664 * HttpCookie.cs: one more time.
666 2005-07-15 Chris Toshok <toshok@ximian.com>
668 * HttpCookie.cs (HttpCookie.GetCookieHeader): use
671 2005-07-15 Chris Toshok <toshok@ximian.com>
673 * HttpCookie.cs (HttpCookie.GetCookieHeader): implement to fix
676 2005-07-15 Chris Toshok <toshok@ximian.com>
678 * HttpCookieCollection.cs: initial implementation (with a couple
679 of labeled inefficiencies.)
681 2005-07-15 Chris Toshok <toshok@ximian.com>
683 * HttpCookie.cs (HttpCookie.get_HasKeys): use values.HasKeys()
684 instead of trying to be smart about it ourselves.
686 2005-07-15 Chris Toshok <toshok@ximian.com>
688 * HttpCookie.cs: initial implementation. we fail one unit test,
689 but it might be due to a bug in NameValueCollection.
691 2005-07-15 Miguel de Icaza <miguel@novell.com>
695 2005-07-14 Miguel de Icaza <miguel@novell.com>
697 * HttpRuntime.cs: Return a few of the values from the AppDomain
700 Put the application shutdown process.
702 * HttpApplicationFactory.cs (AddEvent): Fixed bug when more than
705 (FireEvent): Do not ignore errors.
707 * HttpContext.cs (GetAppConfig, GetConfig): First success, use
708 ConfigurationSettings.GetConfig to get the value that QueueManager
711 2005-07-14 Dick Porter <dick@ximian.com>
713 * HttpPostedFile.cs: New basic implementation; needs someone to
714 figure out what a HttpRequestStream does
716 2005-07-13 Miguel de Icaza <miguel@novell.com>
718 * HttpRequest.cs: More work on this file
720 * HttpRequest.cs, HttpApplication.cs, HttpContext.cs,
721 HttpRuntime.cs: New from scratch implementation.
723 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
725 * SiteMap.cs: Read provider info from the configuration files.
727 2005-06-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
729 * HttpResponseHeader.cs: URL encode \r and \n in header values. Fixes
732 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
734 * HttpUtility.cs: fix another stupid buglet in htmldecode.
736 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
740 * HttpRequest.cs: use StrUtils (invariant culture).
742 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
744 * HttpRequest.cs: use StartsWith when looking for 'multipart/form-data'.
745 File uploading was broken since a few commits ago.
747 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
749 * HttpResponse.cs: ensure that the last chunk ('0\r\n\r\n') is sent
750 even if response.Close is called before a final flush. MS/IIS fails to
753 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
755 * HttpRequest.cs: don't print anything for unknown content types in
756 ParseFormData. Use lowercase compare.
758 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
760 * HttpResponse.cs: invariant love.
762 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
764 * HttpResponse.cs: avoid 1 string concat.
765 * HttpRequest.cs: fix BinaryRead. It was totally wrong.
767 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
769 * HttpUtility.cs: don't append an extra 0 when no digits seen. Fixes
772 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
774 * HttpUtility.cs: the lower limit for using &#xx; encoding is 160, not
775 128. Reset number back to 0 after use. Fixes bug #75365.
777 2005-06-19 Svetlana Zholkovsky <svetlanaz-at-mainsoft.com>
778 * In following classes added TARGET_J2EE or/and TARGET_JVM
783 - CapabilitiesLoader.cs
785 - HttpApplicationFactory.cs
789 * Added Mainsoft's specific files :
790 - GhHttpAsyncResult.jvm.cs
792 2005-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
794 * HttpRequest.cs: avoid one intermediate buffer when reading the request
795 body and fail for over limit content length when the content type is
796 not handled as form or multipart data.
798 2005-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
800 * HttpResponse.cs: fix the check in Close() so that CloseConnection is
801 called even if there has been no final Flush. Fixes bug #75176.
803 2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
805 * HttpParseException.cs:
807 * HttpApplication.cs: updates for 1.1 service pack.
809 2005-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
811 * HttpUtility.cs: fix InvalidCastException.
813 2005-06-05 Kornél Pál <kornelpal@hotmail.com>
815 * HttpWriter.cs: Fixed: _OutputFilter.Close () was called twice.
817 2005-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
819 * HttpUtility.cs: modified HtmlDecode so that it does not need to call
820 Int32.Parse and handles improper &# sequences. Fixes bug #74907.
822 2005-05-26 Lluis Sanchez Gual <lluis@novell.com>
824 * SiteMapNodeCollection.cs: Implemented missing methods. The collection
825 does not inherit from CollectionBase any more.
826 * SiteMapNode.cs: Track api changes.
827 * SiteMapProvider.cs: Moved several methods to the new
828 StaticSiteMapProvider class. Other fixes.
829 * XmlSiteMapProvider.cs: Watch changes in the xml files. Other fixes.
830 * SiteMapProviderCollection.cs: Minor fixes.
831 * SiteMap.cs: Added missing event. Avoid double check lock.
832 * StaticSiteMapProvider.cs: New class that implements some of the
833 funtionality of SiteMapProvider.
835 2005-05-25 Ben Maurer <bmaurer@ximian.com>
837 * MimeTypes.cs: Remove extra spaces, they were typos. Fixes 75049.
839 2005-05-13 Atsushi Enomoto <atsishi@ximian.com>
841 * HttpUtility.cs : UrlDecodeToBytes() incorrectly decoded escaped
842 characters. Patch by Kazuki Oikawa.
844 2005-05-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
846 * HttpRuntime.cs: PlatformID.Unix.
848 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
850 * HttpResponse.cs: cleaned up the .ctors, fix IsClientConnected and just
851 Clear the _Headers array instead of creating a new ArrayList in
854 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
856 * HttpResponse.cs: we had 2 variables to track client connection status.
857 Use only one. Increase the buffer size to 28KB when writing from a file.
859 * StaticFileHandler.cs: set the Content-Type before writing the file.
860 This allows flushing before all the content is written.
862 * HttpApplication.cs: use the variable instead of the property when
863 setting the Principal for the current process.
865 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
867 * ReusableMemoryStream.cs:
868 * HttpWriter.cs: keep a pool of buffers to avoid allocations.
870 2005-05-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
872 * HttpResponse.cs: no need to save/restore the thread culture when
873 getting the Date header. According to Ben's profiling, this is a big
876 * HttpRuntime.cs: ignore exceptions that might be thrown when unloading
879 2005-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
881 * HttpApplicationFactory.cs: ignore any exception thrown when invoking
882 an application event.
884 2005-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
886 * HttpBrowserCapabilities.cs: fix Win32 property.
888 2005-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
890 * HttpResponse.cs: only add the charset when explicitly set or for
891 well-known content types.
893 2005-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
895 * HttpCachePolicy.cs:
896 * HttpAsyncResult.cs:
897 * HttpClientCertificate.cs:
900 * HttpCacheVaryByHeaders.cs:
901 * HttpBrowserCapabilities.cs:
903 * HttpCacheVaryByParams.cs: no more warnings.
905 * QueueManager.cs: check for local connections with minLocalFreeThreads.
907 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
909 * ServerVariablesCollection.cs: shuffled variables, added missing ones
910 and call a method in HttpRequest to set the HTTP_ variables.
912 * HttpRequest.cs: new method to add HTTP_ variables to a collection.
914 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
916 * HttpRequest.cs: GetAllHeaders was returning the value twice instead
917 of 'name: value'. When HTTP_ is requested on the output, don't include
920 2005-03-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
922 * HttpCookieCollection.cs: when adding more than one cookie with the
923 same name, the last one is the winner.
925 2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
927 * HttpRequest.cs: correctly store the value cookies in Params. Fixes
930 2005-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
932 * HttpRequest.cs: Path and FilePath also change when RewritePath is
933 called. Fixes bug #73055.
935 2005-02-23 Sebastien Pouliot <sebastien@ximian.com>
937 * HttpRequest.cs: Make sure that any access after a ValidateInput
938 throws an exception if the data isn't safe.
940 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
942 * CapabilitiesLoader.cs: fix the path, as machine.config is now in a
943 x.x/ directory below $PREFIX/etc/mono.
945 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
947 * HttpRequest.cs: fail on unicode full-width '<' and '>' too. Fixes
948 a security report (http://secunia.com/advisories/14325) that wan't
949 reported to us before public disclosure.
951 2005-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
953 * HttpResponse.cs: send the calculated content length even when it's 0.
956 2005-02-04 Lluis Sanchez Gual <lluis@novell.com>
958 * HttpContext.cs: Added internal property to keep a reference to
959 the last accessed page. Page uses this to implement PreviousPage.
961 2005-02-02 Lluis Sanchez Gual <lluis@novell.com>
963 * ProcessModelInfo.cs: Fixed warning.
965 2005-02-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
967 * TraceContext.cs: writing a message without any other argument is not
968 a warniing. Fixes bug #72017.
970 2005-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
972 * HttpApplication.cs: if there are no more handlers, finish the
973 request and ensure we call Complete on it. Now FreeTextBox 3.0 works.
975 2004-12-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
977 * HttpRequest.cs: honor the maxRequestSize limit from machine.config.
979 2004-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
981 * HttpApplication.cs: reread application CultureInfo as web.config
982 might have changed. Fixes bug #62539.
984 2004-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
986 * HttpResponse.cs: fixed ApplyAppPathModifier to insert the session ID.
988 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
990 * HttpApplicationFactory.cs: monitor changes in global.asax and bin
991 directory and shutdown the application when that happens. Fixes bug
994 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
996 * ReusableMemoryStream.cs: copied from System.IO.MemoryStream and
997 slightly modified to allow expanding the buffer for cases on which the
998 regular MemoryStream don't allow it.
1000 * HttpWriter.cs: use the new ReusableMemoryStream and fix bug #59841.
1001 Otherwise we would have to allocate a new MemoryStream...
1003 2004-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1005 * HttpApplication.cs: Create() is now GetInstance().
1007 2004-11-18 Lluis Sanchez Gual <lluis@novell.com>
1009 * SiteMapNodeCollection.cs: Added missing properties.
1010 * HttpParseException.cs: Added 2.0 methods and properties.
1011 * SiteMapNode.cs: Added missing methods and properties.
1012 * SiteMapProvider.cs, XmlSiteMapProvider.cs,
1013 SiteMapProviderCollection.cs: IProvider does not exist any
1014 more, it is now ProviderBase.
1015 * ISiteMapProvider.cs: Deleted.
1016 * ParserErrorCollection.cs, ParserError.cs, SiteMapResolveEventArgs.cs:
1018 * SiteMap.cs: Minor fixes.
1020 2004-11-15 Lluis Sanchez Gual <lluis@novell.com>
1022 * SiteMapProviderCollection.cs: Fixed warning.
1023 * HttpApplication.cs: Added new 2.0 events.
1025 2004-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1027 * HttpResponse.cs: added internl SetHeadersSent.
1028 * HttpRuntime.cs: don't throw the 'headers already sent' exception
1029 if we're sending a runtime error.
1031 2004-11-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1033 * HttpApplication.cs: undo the TimeoutManager.(Add|Remove) shuffling.
1034 It causes troubles under heavy load.
1036 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1038 * SiteMap.cs: don't lock on Type.
1039 * CapabilitiesLoader.cs: avoid 2 locks when loading data.
1041 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1043 * HttpRequest.cs: patch by Dennis Gervalle that fixes PhysicalPath in
1044 presence of rewriting.
1046 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1048 * HttpApplication.cs: don't hang if a sync step is aborted. Fixes the
1049 system.web portion of bug #68270.
1051 2004-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1053 * TraceContext.cs: don't cast to Page is the handler it's
1056 2004-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1058 * HttpRequest.cs: CurrentExecutionFilePath is the one that
1059 changes when Transfer or Execute are used, not FilePath.
1061 * HttpServerUtility.cs: moved form saving/restoring from
1062 Transfer to Execute, as it's needed there too. the query string is
1063 correctly set now. Fixes bug #67388.
1065 * HttpContext.cs: use SetCurrentExePath instead of SetFilePath.
1067 2004-10-03 Ben Maurer <bmaurer@ximian.com>
1069 * HttpResponse.cs: use UtcNow
1071 2004-10-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1073 * HttpResponse.cs: SuppressContent does not throw and clears all the
1074 buffered output. Fixes bug #67213.
1076 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1078 * HttpUtility.cs: UrlPathEncode is static. Fixes bug #67155.
1080 2004-09-29 Ben Maurer <bmaurer@ximian.com>
1082 * HttpContext.cs, TimeoutManager: Use DateTime.UtcNow.
1084 2004-09-25 Ben Maurer <bmaurer@ximian.com>
1086 * HttpApplication.cs: Make sure requests are removed from
1087 the timeout manager. Fixes a major leak. #66751.
1089 2004-09-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1091 * HttpApplicationFactory.cs:
1092 * HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
1095 2004-09-12 Ben Maurer <bmaurer@ximian.com>
1097 * HttpContext.cs: use CallContext. It is a little bit faster.
1099 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1101 * HttpStaticObjectsCollection.cs: don't share static session objects
1102 declared in the application file across the application, but on a
1103 per-session basis. Fixes bug #65446.
1105 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1107 * HttpServerUtility.cs: in Transfer(path), don't keep form data if
1108 the transfer is done from inside a page that received a postback.
1111 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1113 * HttpValueCollection.cs: fixed signature of ToString (). Closes bug
1116 2004-09-06 Ben Maurer <bmaurer@users.sourceforge.net>
1118 * HttpWriter.cs (.ctor): Dont create teh StreamWriter twice
1119 (Clear): Don't recreate the MemoryStream and StreamWriter
1121 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1123 * HttpApplication.cs: only add/remove to/from the timeout
1124 manager when we're in a interruptible step.
1126 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1128 * TraceContext.cs: when IsEnabled has not been set, return the value
1129 from the TraceManager. Fixes bug #63469.
1131 2004-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1133 * HttpRuntime.cs: initialize the response writer when finishing a
1134 request because it cannot be queued. Under heavy load we made new
1135 requests be processed before the ones that might be queued. This is
1138 * QueueManager.cs: instead of queueing/dequeuing separately, we now
1139 have a single method that does everything needed to decide which one
1140 will be the next request processed.
1142 2004-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1144 * HttpRuntime.cs: removed initializations to null in .cctor. Prevent
1145 other requests from avoiding the lock if they are received before the
1146 configuration system is inited. Ensure that the queue manager is not
1147 null before using it (it can be null while the first request is being
1150 2004-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1152 * HttpServerUtility.cs: ensure we have a full virtual path for the
1153 request being executed.
1155 2004-08-02 Duncan Mak <duncan@ximian.com>
1157 * ApplicationShutdownReason.cs: Fixed typos.
1159 * HttpCookieMode.cs:
1160 * HttpDataTransferMode.cs:
1161 * HttpRequestPriority.cs: Added [Serializable] attribute.
1163 2004-08-02 Duncan Mak <duncan@ximian.com>
1165 * ApplicationShutdownReason.cs:
1166 * HttpCookieMode.cs:
1167 * HttpDataTransferMode.cs:
1168 * HttpRequestPriority.cs: Added 2.0 enumerations.
1170 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1172 * HttpApplication.cs: the file not found might be a dependency.
1174 2004-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1176 * HttpCookie.cs: use invariant when formatting expires date. Fixes bug
1179 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1181 * HttpApplication.cs: don't keep the session around if we got it from
1182 the context. Fixes bug #61232.
1184 2004-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1186 * HttpUtility.cs: fixed stupid bug in UrlDecode from bytes. Closes bug
1189 2004-07-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1191 * TraceContext.cs: added internal HaveTrace property whose
1192 value is true when the page has a Trace attribute.
1194 2004-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1196 * TraceData.cs: fixed <br> output. Closes bug #60181.
1198 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1200 * HttpUtility.cs: check for control characters in the string to encode
1201 or decode and return the same string if there are none.
1203 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1205 * HttpApplication.cs: change/restore the IPrincipal in their own methods
1206 and make them internal.
1208 2004-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1210 * HttpContext.cs: reverting Pedro's patch and sending mail with test
1213 2004-06-09 Pedro Martnez Juli <yoros@wanadoo.es>
1215 * HttpContext: User property returns its own "user" value because
1216 the context can walk through different Threads. When "User" property
1217 is changed, change "Thread.CurrentPrincipal" too.
1219 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1221 * HttpRequest.cs: removed extra ^Ms and fixed style of last patch.
1223 2004-06-08 Alon Gazit <along@mainsoft.com>
1225 * HttpRequest.cs: Add a patch for HttpRequest.ServerVariables.
1227 2004-06-07 Sebastien Pouliot <sebastien@ximian.com>
1229 * HttpContext.cs: User property now get/set Thread.CurrentPrincipal.
1230 Fix (at least partially) #59683.
1232 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1234 * HttpRequest.cs: reverting patch from Alon Gazit. Uses the above file
1235 that doesn't compile.
1237 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1239 * TraceData.cs: fixes nullref in an application that relies on
1240 r ["Message"] not being null. Closes bug #59679.
1242 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1244 * HttpCachePolicy.cs: implemented SetAllowResponseInBrowserHistory.
1246 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1248 * HttpRuntime.cs: implemented a 5 simple properties that were TODOs.
1250 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1252 * HttpBrowserCapabilities.cs: implemented ClrVersion and GetClrVersions.
1253 * HttpException.cs: removed MonoTODO.
1255 2004-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1257 * TraceContext.cs: don't check if HttpRuntime.TraceManager
1258 is enabled when writing.
1260 2004-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1262 * HttpRequest.cs: added ClientTarget internal property.
1264 2004-06-03 Lluis Sanchez Gual <lluis@ximian.com>
1266 * HttpApplication.cs: Clear the http handler list after releasing the
1269 2004-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1271 * TraceData.cs: html-encode the messages written to the trace. Fixes
1274 2004-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1276 * HttpWorkerRequest.cs: the hashtables are now case-insensitive. Thanks
1279 2004-05-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1281 * HttpRequest.cs: nullify _sRequestRootVirtualDir and baseVirtualDir
1282 when SetFilePath is called. This way the cached values are reset and
1283 get the right value in case someone (namely SessionStateModule +
1284 cookieless session) changes the FilePath after the property cached its
1285 value. Fixes bug #59364.
1287 2004-05-27 Patrik Torstensson <totte@hiddenpeaks.com>
1289 * HttpApplicationFactory.cs: Added SignalError (still todo)
1291 2004-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1293 * HttpResponse.cs: remove hardcoded "HTTP/1.0" version that kept
1294 chunked encoding disabled. Fixed chunked suffix and end. Send the
1295 'lastchunk' marked when in the final Flush even if the content length
1296 is 0. This makes mod-mono-server work fine with chunked encoding.
1298 * HttpRuntime.cs: Set the _firstRequest* variables to true
1299 earlier. TraceContext don't take any parameter now.
1301 * TraceManager.cs: don't need a context. Use GetAppConfig.
1303 2004-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1305 * HttpApplication.cs: set culture/uiculture from configuration and
1306 restore it after each step. Fixes bug #52851.
1308 2004-05-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1310 * HttpUtility.cs: use lower case in UrlEncode like MS does. Delay
1311 entities hashtable creation until it's really needed.
1313 2004-05-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1315 * HttpApplicationFactory.cs: if no module matches the name found for a
1316 possible event, ignore it. Fixes bug #58542.
1318 2004-05-16 Patrik Torstensson <totte@hiddenpeaks.com>
1320 * HttpRuntime (Init): Removed old todo
1321 * HttApplication : Implemented IHttpHandlerFactory recycling
1323 2004-04-28 Patrik Torstensson
1325 * HttpApplicationState.cs: Performance, usage of ReaderWriter lock,
1328 2004-04-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1330 * HttpUtility.cs: return null in HtmlDecode for null input instead of
1331 throwing an exception. Patch by Jan Jaros (bug #57083).
1333 2004-04-10 Vladimir Vukicevic <vladimir@pobox.com>
1335 * TimeoutManager.cs: Swap the order of initialization of contexts
1336 and the Timer, to avoid race condition of CheckTimeouts being called
1337 before contexts gets initialized.
1339 2004-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1341 * HttpRequestStream.cs: patch from Jan Jaros that fixes bug #56080.
1342 Now the posted file content does not have the boundaries and headers
1345 2004-03-25 Alon Gazit <along@mainsoft.com>
1347 * HttpRequest.cs: fix ValidateCookieCollection() to prevent
1348 InvalidCastException.
1350 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1352 * HttpValueCollection.cs: don't UrlDecode cookies. Fixes bug #55254.
1354 2004-03-01 Larry Ewing <lewing@ximian.com>
1356 * HttpUtility.cs: fix UrlEncodeToBytes count check.
1358 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1360 * HttpServerUtility.cs:
1361 * HttpUtility.cs: added some checks for null. Fixed UrlPathEncode (bug
1364 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1366 * HttpUtility.cs: fixed length check. Closes bug #54201.
1367 Thanks to Michal Moskal. Use MemoryStream instead of an ArrayList when
1370 2004-02-11 Jackson Harper <jackson@ximian.com>
1372 * TraceData.cs: Use ToString for cookie/header/var name values so
1373 null is handled properly.
1375 2004-02-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1377 * HttpApplication.cs: ApplicationState is inited by the factory so,
1378 return that value in the property. when we use the context Session,
1379 cache it in the instance field.
1381 * HttpApplicationFactory.cs: fixed target Type for the event when
1382 hooking application and module events. Initialize application
1383 and session scope objects. Fixes non-aplication events hook up.
1385 * HttpStaticObjectsCollection.cs: added StaticItem and delay the
1386 creation of the objects until they are requested.
1388 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1390 * HttpApplicationFactory.cs: fixlet for session events hook.
1392 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1394 * HttpApplicationFactory.cs: attach all events from Type and BaseType
1395 at the same time. Fixes bug #53454.
1397 2004-01-27 Jackson Harper <jackson@ximian.com>
1399 * HttpCachePolicy.cs: varybyparams::GetResponseHeader can return
1400 null now, dont hadd the header if it does.
1401 * HttpCacheVaryByParams.cs: Return null if there are no items.
1403 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1405 * HttpCachePolicy.cs: it's not public.
1406 * HttpRuntime.cs: wait for requests before disposing the queue.
1408 2004-01-15 Jackson Harper <jackson@ximian.com>
1410 * HttpCachePolicy.cs: Fix typo causing varyby params headers to be
1411 created when they shouldn't be.
1413 2004-01-14 Jackson Harper <jackson@ximian.com>
1415 * TraceData.cs: Fix some typos in the output text. Fix control
1416 position when adding controls recursively.
1418 2004-01-14 Jackson Harper <jackson@ximian.com>
1420 * HttpCachePolicy.cs: Expose duration and sliding properties.
1422 2004-01-14 Jackson Harper <jackson@ximian.com>
1424 * HttpCachePolicy.cs: Add an event that is fired when the
1425 cacheability is updated. The response uses this to determine
1426 whether or not it needs to cache itself.
1427 * HttpResponse.cs: When the cacheability is updated either create
1428 or dispose of the cached raw response based on whether or not we
1429 wil need it. This allows output caching to be controlled
1432 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1434 * HttpContext.cs: add setter for ConfigTimeout.
1435 * HttpException.cs: added Description property and HTML encode some
1438 * HttpRequest.cs: support request validation.
1440 * HttpRequestValidationException.cs: added message and description.
1442 * HttpServerUtility.cs: implemented ScriptTimeout.
1444 2004-01-11 Jackson Harper <jackson@ximian.com>
1446 * TraceManager.cs: Dont crash if there is no trace config element.
1448 2004-01-11 Jackson Harper <jackson@ximian.com>
1450 * HttpRequest.cs: Add property for determining if the request is
1453 2004-01-10 Jackson Harper <jackson@ximian.com>
1455 * TraceContext.cs: Handle tracing when it is enabled in the config
1456 file but not on the page.
1457 * TraceManager.cs: Get settings from the configuration object.
1458 * HttpRuntime.cs: Create trace manager in the first request start
1459 so it can get configuration settings.
1461 2004-01-10 Jackson Harper <jackson@ximian.com>
1463 * TraceContext.cs: Save the request path in the trace data.
1464 * TraceData.cs: Add RequestPath property, make some rendering
1465 methods internal static so the TraceHandler can use them.
1466 * TraceManager.cs: Expose trace data, add a method for clearing
1469 2004-01-10 Jackson Harper <jackson@ximian.com>
1471 * HttpRuntime.cs: Add trace manager
1472 * TraceManager.cs: New class for handling trace configuration and
1473 storing trace data objects.
1474 * TraceContext.cs: Save trace data to the trace manager. Fix typo.
1476 2004-01-10 Jackson Harper <jackson@ximian.com>
1478 * TraceData.cs: New class for storing trace data. Data is stored
1479 here instead of the trace context so it can be saved and accessed
1480 from the trace handler.
1481 * TraceContext.cs: Save data in the TraceData object, let the
1482 trace data object handle the rendering.
1484 2004-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1486 * HttpRequest.cs: use ContentEncoding for QueryString. Fixes bug #52577.
1487 Thanks to Jan Jaros (mono-bug@jerryweb.info).
1489 * HttpRequestValidationException.cs: fix comment.
1491 2004-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1493 * HttpException.cs: default to error 500. Fixes bug #52623.
1495 2004-01-04 Jackson Harper <jackson@ximian.com>
1497 * TraceContext.cs: Store and render trace info times. Also render
1498 cookie sizes. Remove debug code.
1500 2004-01-04 Jackson Harper <jackson@ximian.com>
1502 * HttpResponse.cs: Set the cached response date header so it can
1504 * HttpResponseHeader.cs: Let values be set so we can update cached
1505 response header values.
1507 2004-01-04 Jackson Harper <jackson@ximian.com>
1509 * HttpResponse.cs: Implement RemoveOutputCacheItem.
1511 2004-01-04 Jackson Harper <jackson@ximian.com>
1513 * HttpCachePolicy.cs: Add internal method to get the vary by custom string
1514 * HttpCacheVaryByHeaders.cs: Add internal method to get the header names.
1516 2004-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1518 * HttpRuntime.cs: implemented MachineConfigurationDirectory,
1520 2004-1-1 Alon Gazit <along@mainsoft.com>
1521 * HttpWriter.cs: add check in Write() in order to prevent
1522 NullReferenceException.
1524 2004-1-1 Alon Gazit <along@mainsoft.com>
1525 * HttpResponse.cs: implemented ExpiresAbsolute and Expires.
1527 2003-12-18 Jackson Harper <jackson@ximian.com>
1529 * TraceContext.cs: Write () methods are not warnings.
1531 2003-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1533 * HttpBrowserCapabilities.cs: added GetClrVersions ().
1534 * HttpCachePolicy.cs: added SetAllowResponseInBrowserHistory ().
1535 * HttpContext.cs: added set_Current and RewritePath (s, s, s) for 1.1.
1536 * HttpRequest.cs: added set_ContentType, SetPathInfo and ValidateInput.
1537 * HttpRequestValidationException.cs: new class for 1.1
1538 * HttpResponse.cs: added RedirectLocation.
1539 * HttpRuntime.cs: added UnloadAppDomain.
1540 * HttpServerUtility.cs: Execute (s, t, b) is internal for < 1.2
1541 * HttpUtility.cs: copied UrlPathEncode from HttpServerUtility.
1542 * HttpWorkerRequest.cs: added [ComVisible] and made the ctor public.
1544 2003-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1546 * HttpContext.cs: implemented IsCustomErrorEnabled and
1547 IsDebuggingEnabled. Added internal ErrorPage property.
1549 * HttpRuntime.cs: on error, check if we have a custom error page enabled
1550 to handle it and redirect.
1552 * HttpResponse.cs: added RedirectCustomError (), which actually does
1553 the redirection to the error page.
1555 2003-12-16 Jackson Harper <jackson@ximian.com>
1557 * TraceContext.cs: Render all the data, and the stylesheet.
1559 2003-12-16 Jackson Harper <jackson@ximian.com>
1561 * TraceContext.cs: Add incomplete render method.
1563 2003-12-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1565 * CapabilitiesLoader.cs: loads browser detection and capabilities data
1566 from browscap.ini file by Gary J. Keith.
1568 * HttpBrowserCapabilities.cs: removed almost all TODOs.
1570 * HttpRequest.cs: fixed Browser property.
1572 2003-12-15 Jackson Harper <jackson@ximian.com>
1574 * TraceContext.cs: Initial implementation of storing data.
1575 * HttpContext.cs: Create and expose a trace object.
1577 2003-12-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1579 * HttpApplication.cs: ThreadAbortException is ok on Redirect.
1580 * HttpContext.cs: added TimeoutPossible property.
1581 * HttpResponse.cs: throw ThreadAbortException if End () is called within
1582 a step in which is possible to timeout.
1586 2003-12-04 Jackson Harper <jackson@ximian.com>
1588 * HttpRequest.cs: Cleanup method.
1590 2003-12-04 Jackson Harper <jackson@ximian.com>
1592 * HttpValueCollection.cs: Allow blank value names. Posting
1593 <blank>=SomeValue is valid. And occurs if a radio button does
1594 not have its name set.
1596 2003-12-03 Jackson Harper <jackson@ximian.com>
1598 * HttpResponse.cs: Actually apply an app path modifier in
1599 ApplyAppPathModifer and add a method to set the app path modifier.
1600 * HttpRequest.cs: Add utility method for setting a request header.
1602 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1604 * HttpApplication.cs: handle FileNotFound and DirectoryNotFound
1605 exceptions when creating the handler to generate a better error page.
1607 * HttpException.cs: display the http_code if available. Changed all
1608 \n by \r\n to make the hidden stack trace readable.
1610 * StaticFileHandler.cs: don't send the real path in th eerror.
1612 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1614 * HttpContext.cs: updated GetConfig and GetAppConfig to new API.
1616 * HttpResponse.cs: separate initialization of the HttpWriter, as it
1617 tries to read configuration settings while the config. system is not
1618 available (ie, before the first request).
1620 * HttpRuntime.cs: delayed queueManager and response writer
1621 initialization until the configuration system is working.
1623 2003-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1625 * HttpRuntime.cs: added request queue handling.
1627 * QueueManager.cs: simple request queue.
1629 * TimeoutManager.cs: added some locks to prevent the enumerator used in
1630 CheckTimeouts to be out of synch.
1632 2003-11-25 Jackson Harper <jackson@ximian.com>
1634 * HttpStaticObjectsCollection.cs: Add methods for serialization
1635 and conversion to/from byte arrays.
1637 2003-11-21 Jackson Harper <jackson@ximian.com>
1639 * HttpResponse.cs: When caching data set the content length in the
1640 cached repsonse so that only that amount will be written back to
1641 the client. Add method to write a range of binary data.
1642 * HttpCacheVaryByParams.cs: Add method to retrieve param names.
1644 2003-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1646 * HttpApplication.cs:
1648 * HttpRuntime.cs: add timeout handling.
1649 * TimeoutManager.cs: new class that takes care of aborting threads on
1652 2003-11-19 Jackson Harper <jackson@ximian.com>
1654 * HttpWriter.cs: Use a constant for the buffer size so the cache
1655 can get the buffer size. Add method to get the buffer.
1656 * HttpResponse.cs: Methods for getting data to cache, and setting
1657 vars from the cache.
1658 * HttpCachePolicy.cs: Expose a pages cache expire time.
1660 2003-11-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1663 * HttpWriter.cs: some fixes to allow closing a response stream without
1666 2003-11-13 Jackson Harper <jackson@ximian.com>
1668 * HttpCachePolicy.cs: Make sure cacheability and maxage get
1669 set. Add method to set Http response header data
1670 * HttpCacheVaryByParams.cs: Add method to create a response header.
1671 * HttpCacheability.cs: Add ServerAndPrivate and ServerAndNoCache.
1672 * HttpResponse.cs: Set cache headers.
1674 2003-11-11 Ben Maurer <bmaurer@users.sourceforge.net>
1676 * HttpModuleCollection.cs (GetKey): Recursion, again!
1678 2003-11-11 Ben Maurer <bmaurer@users.sourceforge.net>
1680 * HttpClientCertificate.cs (ValidUntil): recursion!
1682 2003-11-08 Ben Maurer <bmaurer@users.sourceforge.net>
1684 * SiteMapNode.cs (GetDataSourceView): Implement.
1685 * SiteMapProvider.cs: Typo fixing.
1686 * XmlSiteMapProvider.cs: We shouldnt resolve here.
1688 2003-11-08 Ben Maurer <bmaurer@users.sourceforge.net>
1690 * SiteMap.cs (Init): implement a hack that doesnt need the config
1691 stuff. Should do that later.
1692 * SiteMapNodeCollection (OnValidate): Fix recursion.
1693 * SiteMapProvider.cs: We dont implement some culture stuff work
1694 around it. Fix typo.
1695 * XmlSiteMapProvider.cs: Added.
1697 2003-11-07 Ben Maurer <bmaurer@users.sourceforge.net>
1699 * ISiteMapProvider.cs:
1702 * SiteMapNodeCollection.cs:
1703 * SiteMapProvider.cs:
1704 * SiteMapProviderCollection.cs: V2 sitemap related stuff.
1706 2003-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1708 * HttpRequest.cs: don't attempt to read more bytes than specified
1711 2003-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1716 * HttpValueCollection.cs: encoding fixes/updates.
1718 * HttpWriter.cs: when updating the encoding, flush the existing stream.
1721 2003-11-04 Ben Maurer <bmaurer@users.sourceforge.net>
1723 * HttpContext.cs (IsCustomErrorEnabled): dont throw exception, just
1724 return false (which makes sense, as the custom errors *arent* enabled;
1726 * HttpResponseStream.cs: you actually can write with len = 0
1728 2003-11-03 Jackson Harper <jackson@ximian.com>
1730 * HttpResponse.cs (ContentEncoding): Throw
1731 ArgumentNullException. Patch by Yaron Shkop.
1733 2003-10-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
1735 * HttpMultipartContentParser.cs : Quick fix for cygwin build.
1736 CSC complains that constant char cannot be casted as byte.
1738 2003-10-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1740 * HttpApplication.cs: added AssemblyLocation property.
1742 2003-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1744 * HttpApplicationFactory.cs: use NoParamsInvoker.
1745 * HttpRequest.cs: support request filters.
1746 * HttpRequestStream.cs: mono-stylized and added new Set method.
1748 * NoParamsInvoker.cs: proxy class to invoke user-provided methods
1749 without parameters that are invoked by EventHandlers.
1751 2003-10-13 Lluis Sanchez Gual <lluis@ximian.com>
1753 * HttpResponse.cs: Changed harcoded switch to en-US culture to a switch
1754 to invariant culture.
1756 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1759 * HttpServerUtility.cs: change the response writer in Execute. Thanks
1760 to Rich Alimi <rich@velvetsea.net> for noticing this.
1762 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1764 * HttpApplicationFactory.cs: support for wiring up events without
1767 2003-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1769 * HttpUtility.cs: small memory usage reduction.
1771 2003-10-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1773 * HttpApplication.cs: pass the Uri, not the file path to
1774 when looking for a handler.
1776 2003-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1778 * HttpRequest.cs: small fix needed when reading big POST data.
1780 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
1782 * HttpRequest.cs: Url property: use GetLocalAddress() to get the address
1783 (this will get the address from the request headers).
1785 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
1787 * HttpServerUtility.cs: In Transfer(), preserve the query string if
1790 2003-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1792 * HttpApplication.cs: ensure we do all the EndRequest steps. Don't
1793 filter the output on error.
1795 * HttpResponse.cs: modified DoFilter to allow bypassing filtering.
1797 2003-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1799 * HttpApplication.cs: when the request is completed or an
1800 error happens, execute all the delegates attached to EndRequest, not
1801 only the last one. This makes xsp/test/authtest work again.
1803 * HttpMethodNotAllowedHandler.cs: fixed description for http
1806 2003-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1808 * HttpRequest.cs: quick way of checking that the path is within the
1809 root for the application. Thanks to Johannes for reporting.
1811 * HttpRuntime.cs: use the status code from teh exception when it'ss a
1814 * StaticFileHandler.cs: forbidden is 403.
1816 2003-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1818 * HttpServerUtility.cs: fixed path and query. Path by Rich Alimi
1819 <rich@velvetsea.net>.
1821 2003-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1823 * HttpException.cs: make the unhandled error more like the MS one.
1824 * HttpRuntime.cs: set a 500 error code on unhandled exceptions.
1826 2003-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1828 * HttpResponse.cs: flush headers when the body length is 0.
1829 * StaticFileHandler.cs: added If-Modified-Since handling patch slightly
1830 modified from the original by Piers Haken <piersh@friskit.com>.
1832 2003-08-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1834 * HttpResponse.cs: another patch from totte and me. This one prevents
1835 writing output if the client have disconnected and filters the data
1836 when there's a non-final Flush in the middle of the process.
1838 2003-08-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1840 * HttpApplication.cs: fixed typos. Closes bug #44197.
1842 2003-08-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1844 * HttpApplication.cs:
1845 * HttpApplicationFactory.cs: fix duplicate application OnStart events.
1847 Patch by Patrik Torstensson.
1849 2003-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1851 * HttpApplicationFactory.cs: use the correct Delegate.CreateDelegate
1852 overload. The previous one only admits static methods.
1854 2003-08-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1856 * ProcessModelInfo.cs: Fixed signature
1858 2003-07-30 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
1860 * WebCategoryAttribute.cs: Implemented localization
1861 * WebSysDescriptionAttribute.cs: Implemented localization
1863 2003-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1865 * HttpRuntime.cs: also clear the headers that may have been set upon
1866 error processing the request.
1868 2003-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1870 * HttpResponseStreamProxy.cs: reformatted. Fixed infinite recursion in
1873 * HttpWriter.cs: flush the filter after writing.
1875 2003-07-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1877 * HttpWriter.cs: avoid duplicating the MemoryStream byte buffer.
1879 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1881 * HttpContext.cs: Session doesn't have a setter.
1883 * HttpResponse.cs: Request is private.
1885 2003-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1887 * HttpRequest.cs: fixed Headers property. It was getting known headers
1888 values instead of known headers names.
1890 2003-07-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1892 * HttpApplication.cs: prevent nullref if an error happens before context
1894 * HttpException.cs: small fix in the stack trace sent.
1895 * HttpUtility.cs: the lock is not needed.
1897 2003-06-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1899 * HttpRequest.cs: added REMOTE_PORT.
1900 * HttpValueCollection.cs: fixed bug #45490.
1902 2003-05-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1904 * HttpApplication.cs:
1905 * HttpApplicationFactory.cs: fire application start and session
1908 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1910 * HttpException.cs: encode as HTML the inner exception that
1911 is appended as a comment at the end of error pages.
1913 2003-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1915 * HttpWriter.cs: don't do anything in Flush. Fixes #42249.
1917 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1919 * HtmlizedException.cs: added more virtual methods.
1921 * HttpException.cs: some work on the output when there's a source
1924 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1926 * HtmlizedException.cs: simplified to cope with the new interface.
1928 * HttpApplicationFactory.cs: use the application file parser to get the
1931 * HttpException.cs: small changes. Needs some more work on
1934 2003-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1936 * HttpRequest.cs: fixed Url property.
1938 2003-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1940 * HtmlizedException.cs:
1941 * HttpException.cs: display the correct line number in error messages.
1943 2003-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1945 * HttpCachePolicy.cs: implemented all TODOs.
1946 * HttpRequestStream.cs: make it internal.
1948 2003-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1950 * HttpContext.cs: implemented RewritePath in other way.
1951 * HttpRequest.cs: removed SetPhysicalPath and added SetForm.
1952 * HttpServerUtility.cs: implemented Transfer (string, bool).
1954 2003-03-16 Daniel Lopez Ridruejo <daniel @ rawbyte.com>
1955 * HttpContext.cs : Implemented RewritePath
1956 * HttpRequest.cs : Added internal function SetPhysicalPath
1958 2003-03-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1960 * HttpServerUtility.cs: implemented Transfer ().
1962 2003-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1964 * HttpRuntime.cs: Cache no longer have a Dispose method.
1966 * HttpServerUtility.cs: removed MonoTODO.
1968 2003-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1970 * HttpHelper.cs: store the values in an ArrayList to get them in correct
1973 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1975 * HttpApplicationFactory.cs: Global.asax takes precedence over
1976 global.asax if it exists.
1978 * HttpRequest.cs: use allowCrossAppMapping in MapPath.
1980 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1982 * HttpApplication.cs: CreateHttpHandler is now internal.
1984 * HttpRequest.cs: allow setting QueryStringRaw, which
1985 invalidates the data obtained from the previous value. Added internal
1988 * HttpServerUtility.cs: implemented Execute and GetLastError.
1990 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1992 * HttpServerUtility.cs: style.
1994 2003-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1996 * HttpApplication.cs: only execute the EndRequest step on error
1997 condition or request marked as completed. This prevent page events from
1998 being called when, for example, the url authorization module forbids
2001 2003-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2003 * HttpRequest.cs: implemented the indexer.
2005 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2007 * HtmlizedException.cs: base class for exceptions that makes it easy to
2008 generate error pages.
2010 * HttpException.cs: improved error displaying.
2012 * HttpRuntime.cs: removed debugging output.
2014 2003-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2016 * HttpApplication.cs: display the error instead of hanging when we get
2017 any error before the last step of the request.
2019 2003-02-04 Tim Haynes <thaynes@openlinksw.com>
2021 * HttpApplicationFactory.cs: fixed HttpRuntime.Close() to decrement
2024 2003-01-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2026 * HttpRequest.cs: added BaseVirtualDir property and use it in MapPath.
2028 2003-01-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2030 * HttpRequest.cs: implemented CurrentExecutionFilePath.
2032 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2034 * HttpApplication.cs: keep _lasterror if no context. Attach
2035 application events *after* modules initialization (if not, User is not
2036 set when the user handler is called).
2038 * HttpApplicationFactory.cs: made all methods related to
2039 AttachEvents static. I will fix OnStart/OnEnd for application and
2042 * HttpRequest.cs: don't initialize cookies twice.
2044 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2047 (ApplyAppPathModifiers): return the root directory for "".
2049 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2051 * HttpUtility.cs: fixed HtmlDecode to avoid ArgumentOutOfRangeException.
2053 2003-01-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2055 * HttpApplication.cs: added new state to handle default authentication.
2057 2003-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2059 * HttpContext.cs: removed hack to get the User.
2061 2003-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2063 * HttpUtility.cs: fixed bug #36038. Thanks to juancri@tagnet.org for
2064 reporting the bug and how to fix it.
2066 2002-12-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2068 * HttpCookie.cs: send 'expires' in the header.
2070 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2072 * HttpValueCollection.cs: patch from Botjan Vizin
2073 <bostjan.vizin@siol.net> that implements ToString (bool).
2075 2002-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2077 * HttpApplicationFactory.cs: add the context as parameter when building
2078 the application Type.
2080 * HttpCookie.cs: new internal constructor.
2081 * HttpCookieCollection.cs: new internal method to make a cookie expire.
2083 * HttpRequest.cs: MapPath fixes.
2084 * HttpResponse.cs: implemented ApplyAppPathModifier.
2085 * HttpRuntime.cs: fixed typo in AppDomainAppVirtualPath.
2087 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2089 * HttpContext.cs: hack to create a default user when there's no one.
2090 Implemented GetConfig (string).
2092 * HttpRequest.cs: fixes to MapPath (string).
2094 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2096 * HttpRuntime.cs: avoid nulls and exception when getting resource
2099 * StaticFileHandler.cs: added file name to error message.
2101 2002-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2103 * HttpResponse.cs: avoid sending chunked content for HTTP/1.1.
2105 2002-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2107 * HttpApplicationFactory.cs: get the events from the application class,
2108 fire Application/Session Start/End and add the others as application
2111 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2113 * HttpApplicationFactory.cs: compile global.asax file if it exists.
2115 2002-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2117 * HttpRequest.cs: provide a default Browser until we detect it.
2119 (End): do not close the connection here.
2120 (Flush (bool)): send the headers when, for example, Redirect () is
2123 2002-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2125 * HttpException.cs: simple error output.
2127 2002-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2129 * HttpApplication.cs: style.
2130 * HttpException.cs: style.
2131 * HttpRuntime.cs: only flush the response if there are no errors.
2132 Otherwise, write an error output.
2133 * HttpWriter.cs: change Unicode to UTF8.
2135 2002-11-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2137 * HttpApplication.cs: don't begin the request using ExecuteNextAsync
2138 (it fails to work on NetServ).
2140 * HttpWorkerRequest.cs: typo.
2142 2002-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2144 * HttpValueCollection.cs: the value may contain trailing '=' as it is
2145 UrlEncoded. Don't split name=value based on '='.
2147 2002-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2149 * HttpCookie.cs: made GetCookieHeader internal.
2151 * HttpRequest.cs: get cookies from request.
2153 * HttpResponse.cs: send cookies. Implemented
2154 AddFileDependencies (). Added check for _Writer == null in Flush
2155 (Patrik ;-). Clear the content if HEAD or SupressContent == true.
2156 Removed redirect hack used in old server.
2158 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2160 * HttpRequest.cs: fixed GetRawContent (). Now it only tries to read at
2161 most ContentLength bytes.
2163 * HttpResponse.cs: now it sends the headers. Added
2164 X-Powered-By header :-).
2166 * HttpRuntime.cs: fixed typo.
2168 * HttpValueCollection.cs: cosmetic changes.
2170 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2172 * HttpApplication.cs: reenabled a few lines of code
2173 (ThreadPool already fixed).
2178 * HttpValueCollection.cs:
2179 * HttpWriter.cs: Use WebEncoding.Encoding.
2181 2002-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2183 * HttpWriter.cs: changed encoding of the writer from Unicode to UTF8.
2184 This fixes sending bytes and allows mixing byte with chars.
2186 2002-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2188 * HttpResponse.cs: implemented WriteFile methods.
2189 * MimeTypes.cs: removed duplicated entries.
2191 2002-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2193 * HttpResponse.cs: don't throw exception in a couple of
2194 methods not yet implemented.
2196 2002-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2198 * HttpApplication.cs: fixed type and handle factories when creating
2199 IHttpHandler for a request.
2201 2002-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2203 * HttpApplication.cs: use handlers from configuration.
2204 * HttpContext.cs: get handlers from ConfigurationSettings.
2206 2002-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2208 * HttpMethodNotAllowedHandler.cs:
2210 * StaticFileHandler.cs: Modified file.
2212 * HttpUtility.cs: implemented all missing methods.
2215 2002-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2217 * System.Web/HttpApplication.cs: use the static file handler.
2218 * System.Web/HttpForbiddenHandler.cs: handler to forbid access.
2219 * System.Web/HttpMethodNotAllowedHandler.cs: handler for method not
2222 * System.Web/HttpUtility.cs: finished all UrlDecode methods.
2223 * System.Web/MimeTypes.cs: map from file extension to MIME type.
2224 * System.Web/StaticFileHandler.cs: serves static files
2226 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2228 * System.Web/HttpApplication.cs:
2229 * System.Web/HttpApplicationFactory.cs:
2230 * System.Web/HttpRequest.cs:
2231 * System.Web/HttpRuntime.cs: we are now able to compile pages and use
2232 HttpApplication, HttpRuntime and SimpleWorkerRequest.
2234 2002-09-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2236 * HttpApplication.cs: added some missing methods.
2237 * HttpApplicationFactory.cs: get event handlers for the application.
2238 * HttpAsyncResult.cs: little fixes.
2239 * HttpRequest.cs: make Encoding work even with no worker request.
2241 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2243 * HttpWorkerRequest.cs: mcs doesn't go crazy. It's just me, that forgot
2244 to add HttpMapPath to the list file...
2246 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2248 * HttpWorkerRequest.cs: fixes compilation with mcs. I will add a bug
2249 report when i get a test case.
2251 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2253 * HttpApplicationFactory.cs:
2254 * HttpCachePolicy.cs:
2255 * HttpResponseHeader.cs:
2256 * HttpResponseStream.cs:
2257 * HttpResponseStreamProxy.cs:
2258 * HttpValueCollection.cs: misc. fixes based on class status page.
2260 * IHttpMapPath.cs: New file.
2262 * HttpRequest.cs: implemented ContentEncoding.
2263 * HttpWorkerRequest.cs: mono-stylized and implemented
2264 SendResponseFromMemory.
2266 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2268 * HttpContext.cs: reformatted.
2269 * HttpStaticObjectsCollection.cs: implemented GetEnumertor, CopyTo and
2272 2002-08-05 Patrik Torstensson <ptorsten@hotmail.com>
2274 * HttpApplication.cs: Implemented a state machine to allow handling of
2275 HttpModules and HttpHandlers. Implementation of async handlers.
2277 * HttpApplicationFactory.cs: Factory for creating HttpApplication
2278 instances, including caching.
2280 * HttpRuntime.cs: Usage of the new HttpApplicationFactory to get a
2281 application instance to execute requests in and implementation of
2282 request execution (still no request queue).
2284 * HttpAsyncResult.cs: New file to handle async module results.
2286 * HttpRequest.cs: Change signature of Dispose
2287 * HttpResponse.cs: new internal method allowing filtering to happen
2288 during the request flow in the state machine.
2290 2002-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2292 * HttpApplication.cs: events were not being initialized.
2294 2002-07-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2296 * ProcessModelInfo.cs: fixed compilation.
2298 2002-07-25 Tim Coleman <tim@timcoleman.com>
2299 * ProcessModelInfo.cs:
2301 * HttpParseException.cs:
2302 * HttpCompileException.cs:
2303 * HttpUnhandledException.cs:
2304 Internal constructors added to these
2306 2002-07-24 Tim Coleman <tim@timcoleman.com>
2308 Fix constructor, reference to shutdownreason.
2310 2002-07-24 Tim Coleman <tim@timcoleman.com>
2311 * HttpCachePolicy.cs:
2312 Added stubbs to this class.
2313 * HttpCacheability.cs:
2314 * HttpCacheRevalidation.cs:
2315 * HttpValidationStatus.cs:
2316 * ProcessShutdownReason.cs:
2319 Reorder the enumerations (and in some cases make
2320 one-based) in order to agree with the .NET
2321 implementation, based on the class status page.
2323 Implementation of this class.
2325 2002-07-23 Tim Coleman <tim@timcoleman.com>
2326 * HttpCompileException.cs:
2327 * HttpParseException.cs:
2328 * HttpUnhandledException.cs:
2330 * HttpApplication.cs:
2331 * HttpBrowserCapabilities.cs:
2332 Added missing methods stubbs and attributes based
2333 on the class status page. Also reformatted some
2334 source for consistency.
2336 2002-07-23 Tim Coleman <tim@timcoleman.com>
2337 * HttpUtility.cs: Moved entities hashtable into main
2338 class as a static object, so we don't instantiate
2339 a new one every time. Also put the hashtable
2340 building into a lock block.
2342 2002-07-22 Tim Coleman <tim@timcoleman.com>
2343 * HttpUtility.cs: Cleanup of the code, implementation
2344 of HtmlDecode/HtmlEncode functions
2346 2002-07-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2348 * HttpResponse.cs: quick&dirty hack to make redirection work. Should
2349 be out of there once we have SimpleWorkerRequest.
2351 2002-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2353 * HttpUtility.cs: little typo, big headache.
2355 2002-07-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2357 * HttpRuntime.cs: don't throw NotImplemented in a couple of methods.
2359 2002-06-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2361 * System.Web/HttpResponse.cs:
2363 Fixes based on class status page:
2365 - Add attributes (DefaultEvent, ParseChildren).
2367 - Explicitly implement some interfaces (IPostBackDataHandler
2368 and IPostBackEventHandler).
2369 - Implemented some missing methods.
2371 2002-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2374 (Session): return null instead of throwing an exception.
2377 (HttpMethod): return RequestType if not set.
2378 (GetRawContent): return QueryString if we don't have a
2381 * HttpUtility.cs: fixed Decode and Encode.
2383 2002-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2385 * HttpApplication.cs:
2386 * HttpContext.cs: added System.Web.SessionState namespace.
2388 * HttpSessionState.cs: removed. It is under
2389 System.Web.SessionState.
2391 2002-06-10 Duncan Mak <duncan@ximian.com>
2393 * HttpBrowserCapabilities.cs (BackgroundSounds): Fixed typo.
2395 2002-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2397 * HttpRequest.cs: implemented Browser property.
2399 2002-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2401 * HttpBrowserCapabilities.cs: stubbed out.
2403 2002-05-18 Miguel de Icaza <miguel@ximian.com>
2405 * HttpRuntime.cs: Reformat file.
2407 2002-05-07 Duncan Mak <duncan@ximian.com>
2409 * HttpBrowserCapabilities.cs: Added, replacing
2410 HttpBrowserCapabilites because of typo.
2412 * HttpBrowserCapabilites.cs: Removed, replaced by above.
2414 * HttpRequest.cs (Browser): Fixed typo.
2416 2002-04-12 Patrik Torstensson <patrik.torstensson@labs2.com>
2418 * HttpApplication.cs: Minor updates
2419 * HttpApplicationState.cs: Ready.
2420 * HttpClientCertificate.cs: Signature updates
2421 * HttpValueCollection.cs: ready
2422 * HttpStaticObjectsCollection.cs: ready
2423 * HttpResponseHeader.cs: made internal only
2424 * HttpResponse.cs: Signature updates
2425 * HttpPostedFile.cs: ready
2426 * HttpCacheVaryByHeaders.cs: ready (except communication to policy)
2427 * HttpCacheVaryByParams.cs: ready (except communication to policy)
2429 System.Web is now over 60% ready..
2431 2002-04-11 Patrik Torstensson <patrik.torstensson@labs2.com>
2433 * HttpException.cs: 95% ready, only windows dependent code left
2434 * HttpFileCollection.cs: Finished.
2435 * HttpRequest.cs: Minor fixes and fixed signature problems
2436 * HttpResponse.cs: Implementation of missing methods and signature problems
2437 * HttpResponseHeader.cs: Fixed signature problems
2438 * HttpRuntime.cs: Fixed signature problems
2439 * HttpServerUtility.cs: Added support for HttpApplication
2440 * HttpSessionState.cs: Fixed signature issues
2441 * HttpUtility.cs: fixed signature issues
2442 * HttpValueCollection.cs: Support for cookie parsing and fixed signature issues
2443 * HttpWorkerRequest.cs: Fixed small signature issue
2444 * HttpWriter.cs: Fixed signature issue
2445 * HttpApplication.cs: Basic implementation
2446 * HttpApplicationState.cs: Small fixes to support major change comming up
2447 * HttpBrowserCapabilities.cs: Added Type method
2448 * HttpClientCertificate.cs: Almost ready, needs to parse certificate.
2449 * HttpContext.cs: Fixed signature issues and added last methods.
2450 * HttpCookie.cs: Full implementation
2451 * HttpCookieCollection.cs: Full implementation
2452 * TraceContext.cs: Methods implemented.
2453 * HttpPostedFile.cs: Placeholder
2454 * HttpStaticObjectsCollection.cs: Placeholder
2455 * HttpModuleCollection.cs: Ready, will be used during the major revamp.
2457 * Fixed a number of other small signature problems also (class status page)
2460 2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>
2462 * HttpWorkerRequest.EndOfSendNotification.cs Removed (included in WorkerRequest)
2463 * Checkin of all new files (noted in last changenote)
2465 2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>
2467 * HttpContext.cs: First implementation (basic support, few methods left to impl)
2468 * HttpException.cs: Partial implementation (basic support)
2469 * HttpHelper.cs: Header parse helper, used by runtime (non public)
2470 * HttpRequest.cs: Implementation (all methods there, not all fully impl)
2471 * HttpRequestStream.cs: Full implementation
2472 * HttpResponse.cs: Partial implementation(almost all methods)
2473 * HttpResponseHeader.cs: Header helper
2474 * HttpResponseStream.cs: Full implementation - Response stream support
2475 * HttpResponseStreamProxy.cs: Implementation - filter support
2476 * HttpRuntime.cs: Rewrite to support one IHttpModule (use for testing the runtime)
2477 * HttpServerUtility.cs: Implemented usage of HttpContext for methods
2478 and moved encoding functions to HttpUtility.
2480 * HttpUtility.cs: Added encoding/decoding functions from HttpServerUtility and
2481 added the Attribute encoding functions.
2483 * HttpValueCollection.cs: Implementation.
2484 * HttpWorkerRequest.cs: Rewrite and implementation of all methods (ready)
2485 * HttpWriter.cs: Implementation (with filter support)
2487 * HttpFileCollection: Added dummy class (placeholder)
2488 * HttpApplication.cs: Added dummy class (placeholder)
2489 * HttpApplicationState.cs: Added dummy class (placeholder)
2490 * HttpBrowserCapabilities.cs: Added dummy class (placeholder)
2491 * HtttpCachePolicy.cs: Added dummy class (placeholder)
2492 * HttpClientCertificate.cs: Added dummy class (placeholder)
2493 * HttpSessionState.cs: Added dummy class (placeholder)
2494 * TraceContext.cs: Added dummy class (placeholder)
2497 2002/04/10 Nick Drochak <ndrochak@gol.com>
2499 * HttpServerUtility.cs: Fix build breaker.
2501 2002-03-28 Wictor Wiln <wictor@iBizkit.se>
2503 * HttpServerUtils.cs : Added some more functionality
2505 2002-03-28 Martin Baulig <martin@gnome.org>
2507 * HttpServerUtils.cs (UrlDecode): You cannot implicitly cast a
2508 char to a string, use ToString() instead.
2510 2002-03-16 Gaurav Vaish <gavish@iitk.ac.in>
2512 * WebCategoryAttribute.cs
2513 : Added private attribute.
2515 2002-03-16 Gaurav Vaish <gavish@iitk.ac.in>
2517 * HttpRuntime.cs : Stubbed methods for
2518 FormatStringResource(...) in agreement with the various
2519 overloads available at String.Format(...)
2521 2002-01-08 Gaurav Vaish <gavish@iitk.ac.in>
2523 * TODOAttribute.cs : Added, as an internal class to the assembly
2525 2002-01-03 Nick Drochak <ndrochak@gol.com>
2527 * HttpRuntime.cs: remove uneeded exception variable from catch and
2528 initialize remaining instance members to avoid compile warnings
2530 2002-01-02 Nick Drochak <ndrochak@gol.com>
2532 * HttpRuntime.cs: fix spelling error/variable name change.
2534 2001-12-18 Gaurav Vaish <gvaish@iitk.ac.in>
2536 * HttpRuntime.cs : Initial implementation
2538 2001-08-29 Bob Smith <bob@thestuff.net>
2540 * HttpWorkerRequest.cs: Partial Implementation.
2542 2001-08-16 Bob Smith <bob@thestuff.net>
2544 * HttpCookieCollection.cs, HttpCookie.cs: Bug fixes.
2546 2001-08-09 Bob Smith <bob@thestuff.net>
2548 * BeginEventHandler.cs: Implemented.
2549 * EndEventHandler.cs: Implemented.
2550 * HttpCacheability.cs: Implemented.
2551 * HttpCacheRevalidation.cs: Implemented.
2552 * HttpCacheValidateHandler.cs: Implemented.
2553 * HttpCookieCollection.cs: Implemented.
2554 * HttpCookie.cs: Implemented.
2555 * HttpValidationStatus.cs: Implemented.
2556 * HttpWorkerRequest.EndOfSendNotification.cs: Implemented.
2557 * IHttpAsyncHandler.cs: Implemented.
2558 * IHttpHandler.cs: Implemented.
2559 * IHttpHandlerFactory.cs: Implemented.
2560 * IHttpModule.cs: Implemented.
2561 * ProcessShutdownReason.cs: Implemented.
2562 * ProcessStatus.cs: Implemented.
2563 * TraceMode.cs: Implemented.