* HttpResponseStream.cs: Added argument checks to Write. Modified
[mono.git] / mcs / class / System.Web / System.Web / ChangeLog
index c39d2b0edb4375290e7cfa836c28044cc44138f8..b5a3fca58f656da332806788c62d34c0ff110a28 100644 (file)
@@ -1,3 +1,285 @@
+2009-07-13  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * HttpResponseStream.cs: Added argument checks to Write. Modified
+       methods/properties that requires a readable stream to throw
+       NotSupportedException instead of InvalidOperationException for
+       compatibility with MS.
+
+2009-07-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpApplication.cs: use GetSection instead of
+       OpenWebConfiguration+GetSection.
+
+2009-07-09  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpContext.cs: fall back to default resource provider factory
+       if the factory provided by user doesn't have the required object
+       in Get{Global,Local}ResourceObject. Fixes bug #520397
+       Refactored the GetResourceObject method and the
+       ResourceManagerCacheKey class to DefaultResourceProvider.
+
+2009-07-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * ParserError.cs: add 3 missing setters. Patch from Daniel Gagne.
+
+2009-06-15  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpCachePolicy.cs: SetHeaders adds max-age when MaxAge is set
+       to TimeSpan.Zero by calling SetMaxAge. Fixes bug #513000
+
+2009-06-05  Marek Habersack  <mhabersack@novell.com>
+
+       * VirtualPathUtility.cs: IsValidVirtualPath no longer uses
+       WebConfigurationManager.GetSection to retrieve the verification
+       setting. Instead, the setting is retrieved in the static
+       constructor.
+
+       * HttpRequest.cs: ApplyUrlMapping must not use
+       WebConfigurationManager.GetSection as it would cause a recursive
+       call loop. Code to detect whether url mappings are in effect has
+       been moved to a static constructor.
+
+2009-06-04  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpResponse.cs: version header configuration is read lazily
+       now.
+
+       * HttpException.cs: do not show version info if custom errors are
+       in effect. Fixes bug #509092
+       Don't generate trace for 403. Fixes bug #509092
+
+       * HttpApplicationFactory.cs: OnFileChanged ignores the directory
+       part of the file triggering the event. Fixes bug #509998
+
+2009-06-03  Marek Habersack  <mhabersack@novell.com>
+
+       * VirtualPathUtility.cs: IsValidVirtualPath now checks the value
+       of the
+       HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\VerificationCompatibility
+       registry key when running on Windows and also consults the
+       mono-specific system.web/monoSettings configuration section to see
+       what is the verificationCompatibility property set to. If either
+       of the two is set to 1, Mono will not verify the validity of
+       the current request's path. Fixes bug #509163
+
+       * HttpApplicationFactory.cs: OnFileChanged must check whether the
+       modified location is a directory before it decides to ignore it
+       when watcher's filter is "?eb.?config". Fixes bug #509450 (see
+       also bug #495011)
+
+       * HttpForbiddenHandler.cs: updated the error message to match
+       .NET, added requested path and description. Fixes bug #509092
+
+       * HttpException.cs: if trace is not requested, don't output <!--
+       following the version information in WriteFileBottom. Fixes bug
+       #509475
+       GetDefaultErrorMessage appends trace only if showTrace is
+       true. Fixes bug #509092
+
+2009-06-02  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpApplication.cs: LocateHandler needs to pass current request
+       path and filepath to WebConfigurationManager when retrieving
+       system.web/httpHandlers section as only this will guarantee that
+       any <location> elements relating to the current request's which
+       contain system.web/httpHandlers section will be correctly read and
+       used. Also fixes reading httpHandlers section if it's found in
+       web.config located in a subdirectory. Fixes bug #509069
+
+       * HttpException.cs: 403 errors get same treatment as 404
+       below. Fixes bug #509092
+
+2009-06-01  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpException.cs: if custom errors are enabled and the error
+       code is 404 show the "standard" 404 error message instead of the
+       default custom error mode one. Fixes bug #508649
+
+2009-05-28  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpUtility.cs: fixed UrlDecode for encoded strings which
+       should be converted to byte sequences longer than 2 bytes. Fixes
+       bug #507666
+
+2009-05-14  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpApplication.cs: LocateHandler won't cache if a default
+       handler was returned.
+
+2009-05-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * MimeTypes.cs: add silverlight related types.
+
+2009-04-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpContext.cs:
+       * HttpWorkerRequest.cs:
+       * HttpRuntime.cs: if other parts of the system are using the
+       threadpool and we queue requests, once the threadpool is free we
+       might still not get back to use it to the maximum extent possible.
+       Adding a few more calls to QueuePendingRequest ensures that does not
+       happen.
+
+2009-04-24  Marek Habersack  <mhabersack@novell.com>
+
+       * HtmlizedException.cs: make HtmlException derive from
+       HttpException. System.Web.Mvc relies upon compile and parse
+       exception being descendants of HttpException or otherwise it will
+       catch and ignore compilation/parsing errors.
+
+2009-04-16  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpContext.cs: local resources code now uses the custom
+       resource provider factory, just like the global resources
+       code. Fixes bug #493263
+
+2009-04-15  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpApplicationFactory.cs: if a notification is received from a
+       FileSystemWatcher which was configured to watch for
+       subdirectories, uses a filter (currently we have just one such
+       watcher - waiting for changes to '?eb.?onfig') and the event
+       doesn't match the filter, ignore the event. Fixes bug #495011
+
+2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpUtility.cs: the collection returned from ParseQueryString knows
+       how to convert the key/value pairs to a string.
+
+2009-04-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpResponseStream.cs: use the unsafe version when copying buffers.
+
+2009-04-06  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpRuntime.cs: added a new internal static property
+       IsDebuggingEnabled
+
+       * HttpContext.cs: IsDebuggingEnabled now calls
+       HttpRuntime.IsDebuggingEnabled
+
+2009-04-03  Gert Driesen  <drieseng@users.sourceforge.net>
+
+       * HttpRuntime.cs: Avoid ANE on Windows when HttpRuntime is used
+       outside of ASP.NET. Fixed compiler warning by setting
+       assemblyMappingEnabled.
+
+2009-04-02  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpException.cs: if there are more lines with errors, display
+       them all.
+
+2009-03-31  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpApplicationFactory.cs: use glob patterns to watch for
+       changes to global.asax and web.config files.
+       Set up recursive watch on web.config in a separate thread, to
+       minimize application startup delay. Fixes bug #490497
+
+       * VirtualPath.cs: added code to detect whether the VirtualPath
+       instance represents a fake virtual path (IsFake property).
+       Added new property DirectoryNoNormalize which returns
+       non-normalized directory for the VirtualPath instance.
+       Made ToString () a bit more friendly and well-behaved.
+
+2009-03-26  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpWorkerRequest.cs: use a generic dictionary to keep header
+       names in 2.0+.
+       GetKnown{Request,Response}HeaderIndex doesn't use the switch
+       anymore.
+
+       * HttpResponse.cs: WriteHeaders now checks whether a header to be
+       sent is a known one or not and uses the appropriate method to send
+       that header. Partial fix for bug #488702
+
+2009-03-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpResponse.cs: ClearHeaders() also resets cacheability.
+       Bug #485557 fixed.
+
+2009-03-21  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpResponse.cs: added two missing 3.0+ properties -
+       SubStatusCode and TrySkipIisCustomErrors.
+
+2009-03-04  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpRuntime.cs: do not clean the dynamic base directory in
+       DoUnload, it can cause race conditions.
+
+2009-03-03  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpResponse.cs: fully implemented the Headers property.
+       It is also used in the 1.1 profile, but is internal.
+
+       * HttpCookie.cs: GetCookieHeader renamed to GetCookieHeaderValue -
+       now returns a string with the header value.
+
+       * HttpCacheVaryByParams.cs: GetResponseHeader renamed to
+       GetResponseHeaderValue - now returns a string with the header
+       value.
+
+       * HttpCachePolicy.cs: SetHeaders now takes a NameValueCollection
+       instead of an ArrayList
+
+       * HttpRequest.cs: avoid calculating the same value twice in
+       MakeInputStream
+
+2009-03-02 Everaldo Canuto <ecanuto@novell.com>
+
+       * HttpResponse.cs: Headers property implementation.
+       
+2009-02-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * Web/HttpResponseHeader.cs:
+       * Web/HttpResponse.cs:
+       * Web/QueueManager.cs:
+       * Web/HttpRequest.cs:
+       * Web/TraceManager.cs:
+       * Web/HttpServerUtility.cs:
+       * Web/HttpApplication.cs: use GetWebApplication
+       instead of GetSection for application level configuration.
+
+2009-02-26  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpResponse.cs: added DisableKernelCache and TransmitFile
+       methods.
+
+       * IisTraceListener.cs: added + implemented
+
+2009-02-25  Marek Habersack  <mhabersack@novell.com>
+
+       * HttpApplication.cs: let the current context known that
+       MapRequestHandler is done.
+
+       * HttpContext.cs: implemented RemapHandler
+
+2009-02-24  Marek Habersack  <mhabersack@novell.com>
+
+       * TempFileStream.cs: the class is internal
+
+       * VirtualPathUtility.cs: ToAbsolute (string, string, bool) is
+       internal
+
+       * HttpException.cs: made the HttpException (int httpCode, string
+       message, Exception innerException, string resourceName) internal.
+
+2009-02-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpServerUtility.cs: allow Transfer to static files too.
+
+2009-02-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpWriter.cs: new Response property and WriteUTF8Ptr
+       method.
+       * HttpResponseStream.cs: added support for writing from an
+       IntPtr. copied the memcpy method from String.cs.
+
+2009-02-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * HttpApplicationFactory.cs: check of global.asax was precompiled.
+
 2009-01-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
 
        * HttpApplicationFactory.cs: fix check that avoids lock. Keep one