2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System.Web / System.Web / ChangeLog
index 3dd7ffa017cdd342c6df558f5200f77190678ea0..b103f65d7d52680cbd7fa2cf168e739adc14198f 100644 (file)
-2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
-    * HttpApplicationFactory.cs: Compilation fixes for TARGET_J2EE. Under
-         TARGET_J2EE static fields are shared by all app domains. We handle this
-         difference by explicitly getting/setting values from the app domain.
-         Since HttpApplicationFactory has many static fields, I refactored it to
-         have one static instance and moved the static fields into instance fields.
+2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpApplication.cs: fixed typo when setting UI culture. Closes bug
+       #76189.
+
+2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpRequest.cs: new SetFilePath() that does not conflict with
+       SetCurrentExePath. Now when transfering from a page to another,
+       CurrentExecutionFilePath and FilePath are correct.
+
+2005-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TraceContext.cs: add new method to store size of controls.
+       * TraceData.cs: render control size.
+       * HttpResponse.cs: new internal method to get the number of bytes of
+       buffered output.
+       * HttpResponseStream.cs: added Length property to the Buckets and new
+       GetTotalLength.
+
+2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * TraceData.cs: we have to change the method of getting a control render
+       size. MS does not do this or otherwise would run into the same bug
+       (#76051) that this patch fixes. This is temporarily setting the size
+       to 0.
+
+2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpResponseStream.cs: implemented Send(stream) for files. Fixes bug
+       #76145.
+
+2005-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpRuntime.cs: catch errors when compiling global.asax and
+       initializing the application. Fixes bug #76090.
+
+2005-09-14  Sebastien Pouliot  <sebastien@ximian.com> 
+       * BrowserCapabilities.cs: Fixed changes (in 2.0) with versions. Fixed
+       compare with "True" (culture and case sensitivity).
+       * HttpApplicationState.cs: Added LinkDemand for Minimal. Use the 
+       internal HttpStaticObjectsCollection ctor to avoid the UnmanagedCode
+       demand.
+       * HttpContext.cs: Added LinkDemand for Minimal. Added 2.0 properties
+       and methods to test CAS on them.
+       * HttpRequest.cs: Added LinkDemand for Minimal. Ensure we return 
+       proper values when worker_request is null.
+       * HttpResponse.cs: Added LinkDemand for Minimal. Ensure we return 
+       proper values when context or WorkerRequest is null. Added 2.0 
+       properties and methods to test CAS on them.
+       * HttpRuntime.cs: Added LinkDemand for Minimal. Added PathDiscovery 
+       demands for properties returning directories. Added demand for High 
+       level on AppDomainAppId and AppDomainId properties, Low level on 
+       IsOnUNCShare, Medium level on ProcessRequest and a demand for 
+       UnmanagedCode on UnloadAppDomain method. Constructor also has a 
+       UnmanagedCode demand for 1.x.
+       * HttpStaticObjectsCollection.cs: Added LinkDemand for Minimal. Added
+       a UnmanagedCode demand to public ctor. Added internal ctor without the
+       demand. Changed Serialize and Deserialize methods to public for 2.0.
+
+2005-09-14  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * HttpWorkerRequest.cs: Removed TODO for 2.0 APIs and return the 
+       default values for them.
+
+2005-09-13  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * HttpApplication.cs: : Added LinkDemand and InheritanceDemand (class)
+       for Minimal. Changed AssemblyLocation to a property (so it doesn't 
+       require special permission, PathDiscovery) to create an instance. 
+       Protected Modules property with a Demand for High level. Added some 
+       missing HttpException for null context.
+       * HttpServerUtility.cs: Added LinkDemand for Minimal. Added demands 
+       for UnmanagedCode on all CreateObject* methods. Added demand for 
+       Medium level on MachineName and ScriptTimeout properties. Added new
+       overloaded Transfer method (2.0) to test CAS on it.
+       * HttpUtility.cs: Added LinkDemand for Minimal. Added [Obsolete] to 
+       ctor (2.0). Changed some return values when 'count' is 0. Added 
+       ParseQueryString (overload) methods for 2.0 (to enabled CAS testing on
+       them).
+       * HttpWorkerRequest.cs: Added LinkDemand and InheritanceDemand (class)
+       for Minimal. Added RequestTraceIdentifier and RootWebConfigPath (2.0) 
+       properties, GetPreloadedEntityBody, GetPreloadedEntityBodyLength, 
+       GetTotalEntityBodyLength and ReadEntityBody (2.0) methods to test CAS 
+       on them. Fixed SendResponseFromMemory to ignore IntPtr.Zero (used in 
+       tests without failures).
+       * ServerVariablesCollection.cs: Fixed loadServerVariablesCollection 
+       when HttpWorkerRequest is null.
+       * TraceContext.cs: Added LinkDemand for Minimal. Fixed default Mode 
+       (SortByTime). Added new (2.0) TraceFinished event to test CAS on it.
+
+2005-09-13  Sebastien Pouliot  <sebastien@ximian.com> 
+       * HttpBrowserCapabilities.cs: Added LinkDemand and InheritanceDemand 
+       (class) for Minimal. Note that current MCS has problem compiling 
+       security attributes on partial class (bug #75969).
+       * HttpCachePolicy.cs: Added LinkDemand for Minimal. Added 2.0 methods
+       (stub) to enable CAS tests on them.
+       * HttpCacheVaryByHeaders.cs: Added LinkDemand for Minimal.
+       * HttpCacheVaryByParams.cs: Added LinkDemand for Minimal.
+       * HttpClientCertificate.cs: Added LinkDemand and InheritanceDemand 
+       (class) for Minimal.
+       * HttpCookie.cs: Added LinkDemand for Minimal.
+       * HttpCookieCollection.cs: Added LinkDemand for Minimal.
+       * HttpFileCollection.cs: Added LinkDemand for Minimal.
+       * HttpModuleCollection.cs: Added LinkDemand for Minimal.
+       * HttpPostedFile.cs: Added LinkDemand for Minimal.
+       * HttpRequestPriority.cs: Fix enum values.
+       * HttpWriter.cs: Added LinkDemand for Minimal.
+
+2005-09-13  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * ProcessInfo.cs: Added LinkDemand and InheritanceDemand (class) for
+       Minimal.
+       * ProcessModelInfo.cs: Added LinkDemand and InheritanceDemand (class)
+       for Minimal. Methods GetCurrentProcessInfo and GetHistory are also
+       protected by Demand for High level.
+
+2005-09-13  Sebastien Pouliot  <sebastien@ximian.com> 
+       * HttpCompileException.cs: Added new public ctors and [Serializable]
+       to 2.0. Added new Message property and GetObjectData (protected by a
+       demand for SerializationFormatter) for 2.0. Fixed line-ending.
+       * HttpException.cs: Added LinkDemand and InheritanceDemand (class) for
+       Minimal. Renamed parameters to match documentation.
+       * HttpParseException.cs: Added LinkDemand (class) for Minimal. Added
+       demand for SerializationFormatter on GetObjectData method. Fixed 
+       line-ending.
+       * HttpRequestValidationException.cs: Added new public ctors and 
+       [Serializable] to 2.0. Added LinkDemand for Minimal.
+       * HttpUnhandledException.cs: Added new public ctors and [Serializable]
+       to 2.0. Removed unused internal ctor. Added LinkDemand for Minimal.
+       Fixed line-ending.
+
+2005-09-13  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * HttpResponseSubstitutionCallback.cs: New. 2.0 delegate.
+       * TraceContextEventArgs.cs: New. 2.0 class.
+       * TraceContextEventHandler.cs: New. 2.0 delegate.
+
+2005-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpRequest.cs: use GetServerName instead of GetLocalAddress when
+       building the Url.
+
+2005-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpRequest.cs: fix the indexer.
+
+2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpPostedFile.cs: fixes in Seek and Position.
+
+2005-09-08  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * HttpRequest.cs: Make sure the MemoryStream created have their 
+       contents marked as public - or else you can't call GetBuffer on them!
+
+2005-09-08  Miguel de Icaza  <miguel@novell.com>
+
+       * HttpRequest.cs: Patch from Juraj Skripsky <js@hotfeet.ch> that
+       fixes UrlReferrer. 
+
+2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpPostedFile.cs: Make this class actually work. Every time we read,
+       we have to position the underlying stream.
+
+2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpRequest.cs: reading multipart/form-data works again.
+
+2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
+       * HttpRequest.cs: Under TARGET_JVM the input stream must allow GetBuffer.
+
+2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
+       * HttpApplicationFactory.cs: TARGET_J2EE/JVM fix.
+
+2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpRequest.cs: correctly detect multipart/form-data.
+
+2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpApplicationFactory.cs: recycle after invoking session_end.
+
+2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpRuntime.cs: remove Console.
+
+       * HttpApplicationFactory.cs: don't hook Session_End, but keep
+       the MethodInfo around for later invocation if needed. Don't call
+       GetMethods() for every HttpApplication (or derived class) instances.
+       Added a method, used by SessionStateModule, that will create use an
+       application without context to invoke Session_End. Keep a pool of
+       applications that are meant to be used by this method only.
+
+       * HttpApplication.cs: add a SetSession method and do not
+       attach all the events if the application is for Session_End only.
+
+2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpRuntime.cs: actually unload the domain when requested. Reformatted
+       FinishUnavailable() and removed the 'Location' header form the error.
+
+       * HttpApplicationFactory.cs: set up the watcher for the bin directory.
+       This also prevents a nullref when global.asax is changed.
+
+2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpApplication.cs: fixed bug introduced when moving GetHandler call
+       around. Now we get error pages again.
+
+2005-09-06  Miguel de Icaza  <miguel@novell.com>
+
+       * HttpApplication.cs: Catch EndRequest errors as well.
+
+2005-09-05  Miguel de Icaza  <miguel@novell.com>
+
+       * HttpApplication.cs: Invoke EndRequest handler before OutputPage
+       as FormsAuthentication will issue a Redirect from the EndRequest 
+       handler. 
+
+2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpApplication.cs: when writing an error message, catch the possible
+       write error.
+
+2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpResponseStream.cs: prevent invalid cast exception if the first
+       thing written is a file.
+
+2005-09-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpApplication.cs: fix invalid cast exception (bug #75926).
+
+2005-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpApplicationFactory.cs: only trigger the Application_Start event
+       once. It was being invoked more than once when several clients were
+       hitting the server at the same time on startup.
+
+2005-09-01 Eyal Alaluf <eyala@mainsoft.com>
+
+       * HttpContext.cs HttpResponse.cs HttpWorkerRequest.cs HttpRuntime.cs
+         HttpApplicationFactory.cs HttpApplication.cs: TARGET_J2EE/JVM fixes.
+         Mostly workaround limited AppModel in TARGET_J2EE.
+
+2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpResponse.cs: if the request method is HEAD, that's equivalent to
+       SuppressContent. Added an internal TransmitFile that allows setting the
+       final_flush flag.
+       * StaticFileHandler.cs: use the new internal TransmitFile and remove
+       generation of Content-Length header, as now it's computed correctly.
+       * HttpApplication.cs: remove debugging stuff.
+       * HttpResponseStream.cs: suppress_content is checked in HttpResponse.
+
+2005-08-31  Miguel de Icaza  <miguel@novell.com>
+
+       Removed debugging info.
+       
+       * HttpApplication.cs: Add support for async handlers. 
+
+       Add extra 2.x methods. 
+
+2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * BrowserCapabilities.cs: removed extra 'using'.
+
+       * HttpApplication.cs: use just the 'modcoll' to hold the collection of
+       modules instead of having a separate 'modules' one.
+
+2005-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * HttpApplication.cs: clone the module collection so that
+       it's not shared between HttpApplications. Call GetHandler() in the
+       right place.
+
+2005-08-30  Miguel de Icaza  <miguel@novell.com>
+
+       * HttpApplication.cs: Add the new 2.x method overloads that take a
+       data object.
+
+       (RunHooks): Pass the extra data instead of null.
+
+       * HttpCookie.cs (HttpOnly): Add 2.x cookie header.
+
+       * BrowserCapabilities.cs: Move the core of the capabilities into a
+       separate file.  Use partial classes to choose what version to
+       compile against.
+
+       * HttpBrowserCapabilities.cs: Update to move the code elsewhere.
+
+2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
+
+       * HttpResponseStream.cs: Fix a bug introduced by last fix (thanks to
+       Ben)
+
+2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
+
+       * HttpResponseStream.cs: Compilation fixes for TARGET_JVM. TARGET_JVM
+       does not support unsafe code. I localized all unsafe code within Chunk
+       & Block and created a managed version of Chunk.
+
+2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
+       * HttpApplicationFactory.cs: Compilation fixes for TARGET_J2EE. Under
+       TARGET_J2EE static fields are shared by all app domains. We handle
+       this difference by explicitly getting/setting values from the app
+       domain.  Since HttpApplicationFactory has many static fields, I
+       refactored it to have one static instance and moved the static fields
+       into instance fields.
 
 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
-    * HttpRequest.cs: Disable use of IntPtrStream for TARGET_JVM
+
+       * HttpRequest.cs: Disable use of IntPtrStream for TARGET_JVM
 
 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
-    * HttpContext.cs: Compilation fixes for TARGET_J2EE/JVM
+
+       * HttpContext.cs: Compilation fixes for TARGET_J2EE/JVM
 
 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>