* HandlerFactoryConfiguration.cs: FileMatchingInfo array must be
created anew on each request (before the result is cached). Fixes
bug #335669.
svn path=/trunk/mcs/; revision=89812
* HttpApplication.cs: introduced HTTP handler cache to save time
on repetitive handler collection traversals. On busy sites the
traversal of the default 26 handlers may account for thousands of
unnecessary calls to configsystem.LocateHandler method, which may
also involve executing a regex. The cache is cleared whenever the
HTTP handler collection is modified.
2007-11-02 Marek Habersack <[email protected]>
* HttpHandlerActionCollection.cs: clear http handler cache in
HttpApplication if the collection is modified.
2007-11-02 Marek Habersack <[email protected]>
* HandlerFactoryConfiguration.cs: clear the HttpApplication HTTP
handler cache whenever the collection is modified.
svn path=/trunk/mcs/; revision=88716
* HttpHandlerAction.cs: exact path matching must be done on the
original string in PathMatches, not on the sliced one. Fixes bug
#335669.
2007-10-24 Marek Habersack <[email protected]>
* HandlerFactoryConfiguration.cs: exact path matching must be done
on the original string in PathMatches, not on the sliced one.
* FileMatchingInfo.cs: refactoring - this code used to live in
both 1.1 and 2.0 profiles. At the same time, fixe the way
MatchExact is created - the slash is prepended only if the path
doesn't begin with it.
2007-10-24 Marek Habersack <[email protected]>
* System.Web.dll.sources: added
System.Web.Configuration/FileMatchingInfo.cs
svn path=/trunk/mcs/; revision=88121
* TemplateParser.cs: refactoring - use HttpApplication.LoadType to
actually look up types.
* ControlBuilder.cs: as above
2007-05-15 Marek Habersack <[email protected]>
* BuildProviderCollection.cs: refactoring - use
HttpApplication.LoadType to actually look up the type.
* HttpHandlerAction.cs: as above
* WebConfigurationHost.cs: refactoring - moved the LoadType to
HttpApplication to share the code between 1.1 and 2.0 profiles.
2007-05-15 Marek Habersack <[email protected]>
* ObjectDataSourceView.cs: refactoring - use
HttpApplication.LoadType to look up types.
2007-05-15 Marek Habersack <[email protected]>
* HttpApplication.cs: refactoring - moved LoadType from
WebConfigurationHost here and made it internal static, in order to
make the code avaliable from all the places where extended type
loading is required.
svn path=/trunk/mcs/; revision=77396
* HttpContext.cs (GetGlobalResourceObject): remove unused variable.
* StaticFileHandler.cs (ProcessRequest): remove unused variable.
* HttpApplication.cs (ProcessError): Remove unused variable.
2007-01-20 Miguel de Icaza <[email protected]>
* ClientBuildManager.cs: Remove unused variable (this could be a
real problem, we never use the appPhysicalTargetDir)
* AssemblyBuilder.cs: Remove unused field.
* AppResourceFilesCollection.cs: Remove unused field.
* TemplateControlCompiler.cs (GetExpressionFromString): Remove
unused variable.
* AppResourcesCompiler.cs: Remove unused variable.
* AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
parameter.
* PageCompiler.cs: Put InternalCreatePageProperty inside the
NET_2_0 block to eliminate warnings.
2007-01-20 Miguel de Icaza <[email protected]>
* HandlerFactoryConfiguration.cs (LoadType): remove unused
variable.
(ctor): do not assign parent, we do not use it, keep the code for
reference.
2007-01-20 Miguel de Icaza <[email protected]>
* ApplicationManager.cs: Remove unused variable.
(ShutdownAll) remove unused variables.
* ApplicationHost.cs: Protect create_dir lock
2007-01-20 Miguel de Icaza <[email protected]>
* SqlRoleProvider.cs: comment out unused code.
* SqlMembershipProvider.cs: Removed unused variables.
Remove unused variable.
* AnonymousIdentificationModule.cs (ClearAnonymousIdentifier):
remove unused variable. This might be a real bug.
2007-01-20 Miguel de Icaza <[email protected]>
* SessionStateModule.cs: Removed unused variables.
2007-01-20 Miguel de Icaza <[email protected]>
* SessionDictionary.cs: Removed unused variable (dirty).
2007-01-20 Miguel de Icaza <[email protected]>
* XhtmlTextWriter.cs: comment out unused code.
* ThemeProvider.cs: comment out unused code.
* DataSourceView.cs: Comment unused variable.
* ClientScriptManager.cs: Put the expandoAttributes inside the 2.0
code
* Control.cs: Put _templateControl inside the NET_2_0 ifdef
2007-01-20 Miguel de Icaza <[email protected]>
* HtmlHead.cs: comment out unused code, in particular metadata is
commented out because nothing could have triggered its creation.
* HtmlButton.cs: Move declaration of `csm' inside the 1.1 case.
2007-01-20 Miguel de Icaza <[email protected]>
* DataControlFieldCollection.cs (RemoveAt): remove unused
variable.
* RoleGroupCollection.cs (OnValidate): Flag as protected, as it
should not show up.
* RadioButton.cs (RaisePostDataChangedEvent): This method was not
used in 1.0, so put the whole method in 2.0
2007-01-20 Miguel de Icaza <[email protected]>
* WebPart.cs: Remove
* PersonalizableAttribute.cs: Remove extra API that was wrong as well.
2006-11-28 Miguel de Icaza <[email protected]>
* WebPart.cs:
2007-01-20 Miguel de Icaza <[email protected]>
* FileUtils.cs (CreateTemporaryFile): Remove unused variable.
svn path=/trunk/mcs/; revision=71399
* HttpHandlersSectionHandler.cs:
* HandlerFactoryConfiguration.cs: we need to use a copy of the parent
mappings, otherwise we may remove mappings from the parent. Fix a typo
when removing the item from the collection. Now LocateHandler searches
first for this configuration mappings and then for the parent ones.
Fixes (truly) bug #76842.
svn path=/trunk/mcs/; revision=53839
* HandlerFactoryConfiguration.cs: my previous patch broke the
* order in which handlers are searched. This one fixes that,
* while not breaking bug 76842 again.
svn path=/trunk/mcs/; revision=53743
* HandlerFactoryConfiguration.cs: copy the parents' mappings
into the new one to allow for removing without affecting the
parent configuration mappings. Fixes bug #76842.
svn path=/trunk/mcs/; revision=53610
* HandlerFactoryConfiguration.cs: when using regex matching, pass the
original full virtual path, not just the file name. The regex matches
the end of the path. Fixes bug #76536.
svn path=/trunk/mcs/; revision=52154
* HandlerFactoryConfiguration.cs: fix path matching so that
/xxx/WebResource.axd works. If we're going to match using a regexp,
generate it in the constructor, not on every request.
svn path=/trunk/mcs/; revision=49061
* SimpleWorkerRequestTest.cs: Do not use the "/tmp" directory as
that makes the tests fail if we create a hosted
SimpleWorkerRequest.
Instead use the current directory, and before starting up, create
a bin directory and copy the assembly there to allow us to create
a host.
Also, replicate the tests for when we are hosted in a new
appdomain, as "MapPath" does work in this case. When running
SimpleWorkerRequest on the main domain MapPath always returns
null.
2005-07-12 Miguel de Icaza <[email protected]>
* UnitTest.cs: Update test suite.
2005-07-07 Miguel de Icaza <[email protected]>
* XmlTest.cs: Added test.
2005-07-07 Miguel de Icaza <[email protected]>
* LabelTest.cs: Add test.
2005-07-06 Miguel de Icaza <[email protected]>
* FontUnitTest.cs: New unit tests.
* UnitTest.cs: Add support for different cultures and the Decimal
separator,
* UnitTest.cs: Add tests for null and "" arguments to Parse and
Unit(string) which produce IsEmpty units.
* UnitTest.cs: Fresh file with tests.
2005-07-30 Miguel de Icaza <[email protected]>
* OutputCacheModule.cs: Make synchronous.
2005-08-15 Miguel de Icaza <[email protected]>
* HttpApplication.cs: Update comments
* HttpPostedFile.cs: Use a substream to read from the uploaded
multiparts.
* HttpRequest.cs: use new code to read the uploaded files.
2005-08-12 Miguel de Icaza <[email protected]>
2.x API fixage and small additions:
* HttpResponse.cs: Make constructor internal.
* HttpRequest.cs (IsLocal): Expose if NET_2.x
* HttpContext.cs: Remove internal routine.
* HttpApplication.cs: Add 2.x events.
* HttpRequest.cs: Another iFolder issue: I was not setting up the
uri_builder here.
Fixes to get iFolder to work:
* HttpApplicationFactory.cs: Set the context when we are initting
the application.
* HttpApplication.cs (SetContext): helper routine.
* HttpResponse.cs: Implement the various cache operations:n
Expires, ExpiresAbsolute, CacheControl.
Actually produce the Cache-Control header, the "Cache" property
takes precedence over the compatibility settings (Expires,
ExpiresAbsolutely and CacheControl).
* HttpCachePolicy.cs: Fix style.
Fix the generation of the headers, use lower-case values, do not
add the max-value if the value is zero.
Allow for all possible values in SetCacheability.
* HttpRuntime.cs (ClrInstallDirectory): Implement.
* HttpResponseStream.cs: Remove debugging stuff.
2005-08-11 Miguel de Icaza <[email protected]>
Big chunked handling rewrite, and integration of Ben's unmanaged
output stream.
* HttpWriter.cs: Delegate chunked encoding writing to the
HttpResponse.
* HttpResponse.cs: Rework the chunked encoding system, centralize
it all.
* HttpResponseStream.cs: Deploy Ben's bucket-base unmanaged
buffers code.
Changed the way that we handle chunked encoding, centralize it
all;
Remove a lot of manual handling of buffering turned off, and
instead delegate it all to Flush, fixes several issues with the
new framework.
* HttpWorkerRequest.cs (SendResponseFromMemory (IntPtr, int)):
Provide a default implementation since currently XSP does not have
this method implemented.
2005-08-10 Miguel de Icaza <[email protected]>
* ServerVariablesCollection.cs: For Ben. Implement the header
fetching here, do not implement it in HttpRequest.cs.
2005-08-09 Miguel de Icaza <[email protected]>
* HttpRuntime.cs (AspInstallDirectory): Implement.
2005-08-04 Miguel de Icaza <[email protected]>
* HttpApplicationFactory.cs: Change "Start" event like the "End"
event, and only do this once, when we init the type.
Fire the "Application_Start" event after we create the type.
2005-08-02 Miguel de Icaza <[email protected]>
* HttpResponse.cs: Stub for TransmitFile.
* HttpRequest.cs (IsAuthenticated): Implement.
2005-08-01 Miguel de Icaza <[email protected]>
* HttpRequest.cs: Cope with implementations of HttpWorkerRequest
(unpatched xsp) that do not send back the PreloadedEntityBody.
* HttpApplication.cs: keep track of the factory.
(Dispose): Only dispose once, clean up other variables, release
the ManualResetEvent.
Release the handler to the factory.
* HttpApplicationFactory.cs: Implement a stack to reuse the
applications.
* HttpRequest.cs: On uploads, if the ContentLenght is zero, throw
a 411.
* HttpRuntime.cs: Recycle the application after using it.
* HttpPostedFile.cs: Implement SaveAs.
* HttpContext.cs: Return the "Server" property.
2005-08-01 Miguel de Icaza <[email protected]>
* HttpRequest.cs (Cookies, Forms): Add validation.
(Forms): Add application/x-www-form-urlencoded parsing and
multipart/form-data parsing.
(HttpMultiPart): Implement new class to load multi-part data from
a stream since there is no longer a byte [] that holds the data
(currently we have an unmanaged IntPtr buffer wrapped as a
stream). Also the 2.x framework will add support for large
uploads which are sent directly to disk, which will require the
FileStream interface.
(Path, PathInfo): Fill a couple more methods to avoid crashes.
* HttpContext.cs: Fill another one to get web services summary
page painting. The page does not work though.
* HttpApplication.cs: Rework the pipeline to not depend on
`finally', as `finally' would not be invoked if we choose not to
call the pipeline again (which happens if the `stop' variable is
set).
Instead force the pipeline to go to the shutdown, and yield from
there after all the release-state callbacks have been invoked.
2005-07-31 Miguel de Icaza <[email protected]>
* HttpApplication.cs: Remove debugging messages since the compiler
bug has been fixed.
You must use at least mcs from revision 47879 for the application
pipeline to work.
2005-07-30 Miguel de Icaza <[email protected]>
* HttpContext.cs: Error handling methods.
* HttpResponse.cs: Trigger the last event.
* HttpRuntime.cs: Add queueing of the next request.
* HttpApplication.cs: Deploy the new yield-based application
pipeline, add error handling to the pipeline.
* HttpApplication.cs (AsyncRequestState): Just use the done event
from the parent.
2005-07-29 Miguel de Icaza <[email protected]>
* HttpResponseStream.cs, HttpRequest.cs: Fix bugs found by nunit.
* HttpApplication.cs: Fix a race condition.
* HttpResponseStream.cs: Fix bug, send the size of the buffer that
we have so far instead of the internal size of the buffer. This
will need work later to ensure we enforce the Content-Length
maximum output size if set.
* ServerVariablesCollection.cs: This class now inherits from
NameValueCollection, we should probably review what the middle
class did, there are no dependencies on it.
I need to write tests to investigate if something is missing or
has changed in this implementation.
2005-07-27 Miguel de Icaza <[email protected]>
* HttpRequest.cs: No happy replies here, send a 411.
2005-07-26 Miguel de Icaza <[email protected]>
* HttpResponse.cs: use_chunked is now a byte-array, if not null,
we use it to hold the size of the chunked so we do not have to
allocate many of these.
(SendSize): Helper routine to send the chunked headers.
(BinaryWrite): First user of the chunked writer.
* HttpApplication.cs: Do not crash if they request a Server
instance, but throw a NotImplementedException.
* HttpRequest.cs: fix a few problems exposed by the regression
test suite.
* HttpRequest.cs (Cookies): use Chris' new constructor to get the
cookies parsed.
: The big Uri rework: instead of using QueryString
as the population mechanism, populate an UriBuilder from the
various HttpWorkerRequest methods.
* HttpWorkerRequest.cs (GetProtocol): Implement in terms of
IsSecure().
* HttpResponse.cs: Pointed by Ben, Write (null) is a nop instead
of a crash.
* HttpContext.cs: Add a couple of properties to help the 2.x
build.
* HttpResponse.cs: Make ContentLength a long, add back support for
session's app_path_mod.
(ApplyAppPathmodifier): put back.
(End): Pass a flag to abort so we can tell the exceptions appart
in HttpApplication.
(WriteHeaders): Send the HTTP status.
(Redirect): Implement.
(Write): Use the Output property to load writer when needed.
* HttpRequest.cs (ctor): Temporary use of InitFromWR, will fix
later.
(MakeInputStream): check content-length size, use routines to load
the preloaded data, handle incomplete transfers.
(Query): Do not insert null keys into the collection.
(Url): implement.
(UrlReferer): implement.
* HttpApplication.cs (RunHooks): Catch Thread.Abort, and call
Thread.ResetAbort after each step.
Ensure that ReleaseState is called if we ever succeed in acquiring
the state even if we have stopped the request pipeline.
Report file not found, directory not found.
2005-07-25 Miguel de Icaza <[email protected]>
* HttpCookieCollection.cs: Add expiration of the cookie.
* HttpRequest.cs: Add check for ContentLength, use
GetPreloadedEntityBody, correct number of bytes uploaded.
2005-07-21 Miguel de Icaza <[email protected]>
* HttpResponseHeader.cs: Our implementation of HttpResponse only
uses the text headers, does not use any constants as XSP would go
through a slower code path anyways.
2005-07-20 Miguel de Icaza <[email protected]>
* HttpApplication.cs: Ongoing work on pipeline, I will need to
redo this later.
2005-07-19 Miguel de Icaza <[email protected]>
* HttpContext.cs (GetService): Implement. Return all of the
properties that we have access to. Make HttpWorkerRequest the
first match as this is the only likely reason people need to use
this.
* IntPtrStream.cs: Bring from corlib.
* MultiPartContentParser.cs: use a MemoryStream as HttpInputStream
will now be using IntPtrStream.
* HttpRequest.cs (MakeInputStream): move code that loads the
request here
(CloseInputStream): Helper method that we will call later to
ensure that we dispose properly the malloced() block.
(BinaryRead): Implemented.
* HttpInputStream.cs: Rewrite to be a descendant of
IntPtrStream.cs
2005-07-18 Miguel de Icaza <[email protected]>
* HttpApplication.cs (Modules): Add modules support and
AsyncResult.
2005-07-17 Miguel de Icaza <[email protected]>
* HttpRequest.cs (Headers, InputStream): implemented two more
properties.
* HttpInputStream.cs: All we need is a MemoryStream with writable
set to false.
* HttpPostedFile.cs: Use a Stream.
2005-07-15 Miguel de Icaza <[email protected]>
* HttpRequest.cs:
2005-07-14 Miguel de Icaza <[email protected]>
* HttpRuntime.cs: Return a few of the values from the AppDomain
data.
Put the application shutdown process.
* HttpApplicationFactory.cs (AddEvent): Fixed bug when more than
one method existed.
(FireEvent): Do not ignore errors.
* HttpContext.cs (GetAppConfig, GetConfig): First success, use
ConfigurationSettings.GetConfig to get the value that QueueManager
needed.
2005-07-13 Miguel de Icaza <[email protected]>
* HttpRequest.cs: More work on this file
* HttpRequest.cs, HttpApplication.cs, HttpContext.cs,
HttpRuntime.cs: New from scratch implementation.
2005-08-25 Miguel de Icaza <[email protected]>
* HtmlHead.cs: Implement constructor, pass the tag.
2005-07-26 Miguel de Icaza <[email protected]>
* HtmlForm.cs: It is possible to have keys with no values in the
query string, do not try to process those on the foreach loop.
The question is: what should happen if I only get the key?
Example: file_with_a_form.aspx?a
2005-07-09 Miguel de Icaza <[email protected]>
* DataBindingHandlerAttribute.cs: Create the "Default" property.
2005-07-07 Miguel de Icaza <[email protected]>
* HtmlTextWriter.cs: Return the stuff in lowercase to pass the
tests.
* StateBag.cs: Add NET_2_0 SetDirty method to get the build
going.
2005-08-15 Miguel de Icaza <[email protected]>
* SessionStateModule.cs: Make this use the synch api as the module
was synchronous anyways
2005-07-25 Miguel de Icaza <[email protected]>
* FormsAuthentication.cs (SignOut): Force the cookie to have it
expire in the past.
2005-07-26 Miguel de Icaza <[email protected]>
* Style.cs: Temporary methods to help buliding .NET 2.x
2005-07-12 Miguel de Icaza <[email protected]>
* Unit.cs: If the units are pixels, then truncate the value.
2005-07-07 Miguel de Icaza <[email protected]>
* Xml.cs: New implementation. R00lz.
2005-07-07 Miguel de Icaza <[email protected]>
* Unit.cs: Add TypeConverter, so that web_panel.aspx works again.
* UnitConverter.cs: Add new file, learned from the
System.Drawing.ColorConverter.
2005-07-06 Miguel de Icaza <[email protected]>
* FontUnit.cs: New file.
* Unit.cs: New file.
Added support for null and empty string constructors.
2005-07-05 Miguel de Icaza <[email protected]>
* Label.cs: First control.
2005-08-09 Miguel de Icaza <[email protected]>
* WebServiceCompiler.cs: Use the new DynamicDir method.
* BaseCompiler.cs: Use the DynamicBase property as a hint, but
since this value is null most of the time, compute the real value.
Added Bonus: if the directory has some kind of permission problem,
try a different directory name.
2005-07-13 Miguel de Icaza <[email protected]>
* AspGenerator.cs (AspGenerator.CheckLanguage): Use
BaseParser.Context for the context.
svn path=/trunk/mcs/; revision=48918
* System.Web/HttpApplication.cs: CreateHttpHandler is now internal.
* System.Web/HttpRequest.cs: allow setting QueryStringRaw, which
invalidates the data obtained from the previous value. Added internal
SetFilePath method.
* System.Web/HttpServerUtility.cs: implemented Execute and GetLastError.
* System.Web.Configuration/HandlerFactoryConfiguration.cs: first search
in the mappings of this instance, then in the parent.
svn path=/trunk/mcs/; revision=11642
* System.Web/HttpApplication.cs: use handlers from configuration.
* System.Web/HttpContext.cs: get handlers from ConfigurationSettings.
* System.Web.Caching/Cache.cs: little fixes.
* System.Web.Configuration/HttpHandlerTypeMapper.cs: removed.
* System.Web.Configuration/HandlerFactoryConfiguration.cs: readded. I
removed it by mistake.
* System.Web.Configuration/HandlerItem.cs: only load the type if
we gotta validate it. Implemented initial IsMatch.
* System.Web.Configuration/HttpConfigurationContext.cs: New file.
* System.Web.Configuration/HttpHandlersSectionHandler.cs: validate is
optional (default true). Use HttpHandlerTypeMapper.
* System.Web.UI/SimpleHandlerFactory.cs: new handler for .ashx files.
svn path=/trunk/mcs/; revision=8053
* list: added new files in System.Web.Configuration.
* System.Web.Configuration/HandlerFactoryConfiguration.cs: removed.
* System.Web.Configuration/HandlerItem.cs: added validation field.
* System.Web.Configuration/HttpHandlerTypeMapper.cs: holds mappings
between verbs and wilcards and their associated HandlerItem.
* System.Web.Configuration/HttpHandlersSectionHandler.cs: this one
processes system.web/httpHandlers section of machine.config file.
svn path=/trunk/mcs/; revision=8030