* WebConfigurationManager.cs: if errors happen when opening the
configuration file, mark the manager as unsafe to prevent further
usage and avoid error loops.
2007-05-30 Marek Habersack <[email protected]>
* TraceManager.cs: Catch all the possible exceptions in the
constructor - the object MUST be created successfully (even if
there are errors).
* HttpRequest.cs: do not attempt to apply url mappings if the
configuration manager has errors.
* HttpRuntime.cs: handle static constructor exceptions later on,
during the first call to ReallyProcessRequest.
* QueueManager.cs: provide defaults for the parameters to be read
from the config file(s).
Catch all the possible exceptions in the constructor - the object
MUST be created successfully (even if there are errors).
svn path=/trunk/mcs/; revision=78208
* WebConfigurationManager.cs:
make configurations hashtable case-insensitive.
* WebConfigurationHost.cs: for TARGET_J2EE only:
GetStreamName returns file path in right case, that make it works
on case-sensitive file system.
* ConfigurationLocationCollection.cs: for TARGET_JVM only:
location path is case-insensitive.
* PageMapper.cs: reverted r77353, 77321
make it case-insensitive
svn path=/trunk/mcs/; revision=77415
* 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
* UrlMappingCollection.cs: implemented the Item (string) indexer.
* UrlMapping.cs: implemented the URL validation callback body
(doesn't work at the moment).
2007-05-14 Marek Habersack <[email protected]>
* HttpUtility.cs: when parsing query strings, skip the leading ?
for the first parameter name.
* HttpRequest.cs: added support for mapping urls, as defined in
the system.web/urlMappings section.
svn path=/trunk/mcs/; revision=77381
* WebConfigurationManager.cs:
make configurations synchronized.
added new internal method RemoveConfigurationFromCache.
* HttpApplication.cs:
prevent DOS attack: remove configuration from the cache in case
of invalid resource not exists
svn path=/trunk/mcs/; revision=77336
* HttpResponseStream.cs: use BufferOutput
* HttpResponse.cs: support Buffer, but use BufferOutput
2007-05-07 Marek Habersack <[email protected]>
* PagesSection.cs: buffering is on by default.
svn path=/trunk/mcs/; revision=76828
* HttpRequest.cs: MS.NET throws HttpException for invalid paths,
not ArgumentNullException.
* HttpException.cs: wrap GetHtmlErrorMessage internals in
try/catch to capture possible exceptions in HttpContext.
* HttpContext.cs: IsCustomErrorEnabled is used from within
HttpException, make sure it gets the section in a safe way and
resorts to the default settings.
* HttpResponse.cs: HeaderEncoding is used in the same context as
above. Take the same precautions.
2007-04-24 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: wrap MapPath calls in try/catch,
because bad URLs can cause it to throw exceptions. If such
exception is caught, throw a HttpException for Bad Request (400).
* WebConfigurationManager.cs: added two internal methods for safe
retrieval of config sections.
svn path=/trunk/mcs/; revision=76162
* PagesSection.cs: provide appropriate default value for the
asyncTimeout setting.
2007-04-06 Marek Habersack <[email protected]>
* Page.cs: defaults for ViewStateEncrptionMode and AsyncTimeout
are read from the pages section, if found.
* TemplateControlParser.cs: added support for loading
pages/controls defaults from web.config even if the page/control
does not have its corresponding directive.
Added support for reading the CompilationMode attribute.
* PageParser.cs: added support for loading pages/controls defaults
as above. Fixes bug #80915.
Added support for reading the maxPageStateFieldLength setting.
Added support for reading the pageParserFilter setting.
svn path=/trunk/mcs/; revision=75475
* WebConfigurationManagerTest.cs: the tests don't work because of
the way the test suite is set up. In a normal application, the
three test would work just fine.
2007-03-24 Marek Habersack <[email protected]>
* HttpRuntime.cs: use ICalls.GetMachineConfigPath instead of
opening the machine.config file and getting its path.
* CapabilitiesLoader.cs: use HttpRuntime.MachineConfigurationDirectory
instead of opening the machine config file and getting its path.
2007-03-24 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: allow MachineToApplication definition
for config paths that equal the domain virtual app directory.
svn path=/trunk/mcs/; revision=74927
* BrowserCapabilities.cs: Added implementation for all capabilities.
changed implementation to throw when capability is not defined in browscaps.ini.
* CapabilitiesLoader.cs: fixed parent resultion bug. added internal support for
browser and browsers capabilities.
2007-03-22 Adar Wesley <[email protected]>
* HttpCapabilitiesBase.cs: implemented all capabilities. Capabilities
still throw if there is no value in browscaps.ini and the property is called.
2007-03-22 Adar Wesley <[email protected]>
* HttpCapabilitiesBase.cs: support for implementation of new
capabilities.
svn path=/trunk/mcs/; revision=74819
* ProvidersHelper.cs: support loading custom providers from
App_Code assemblies. Fixes bug #81071.
Also set eol-style to native.
svn path=/trunk/mcs/; revision=74112
* NullableStringValidator.cs : new internal class that is almost
identical to StringValidator but allows null value.
* PropertyHelper.cs : use new NullableStringValidator.
* NamespaceCollection.cs : in NamespaceInfo "" is not allowed.
* NullableStringValidatorTest.cs : new aggregated tests for
properties that use PropertyHelper.EmptyStringValidator.
* System.Web.dll.sources : added NullableStringValidator.cs.
* System.Web_test.dll.sources : NullableStringValidatorTest.cs.
svn path=/trunk/mcs/; revision=62052
* WebConfigurationHost.cs (InitForConfiguration): i know this is
going to bite me in the ass, but guard against configPath being ==
to "/", since this will result in an infinite loop.
(MapPath): fix a NRE.
svn path=/trunk/mcs/; revision=61574
* WebConfigurationManager.cs: recent sys.config.dll changes on
ConfigurationManager.GetSection() which should call
GetRuntimeObject() should also apply here. Fixed monodoc web.
svn path=/trunk/mcs/; revision=60816