Commit Graph
115 Commits
Author SHA1 Message Date
Vladimir Krasnov 596f7c8471 * ProfileGroupSettingsCollection.cs: added ResetInternal internal method
* RootProfilePropertySettingsCollection.cs: added Reset method override to reset GroupSettings collection

svn path=/trunk/mcs/; revision=82020
2007-07-16 09:23:00 +00:00
Vladimir Krasnov 3e92b9ff04 * HttpHandlerAction.cs: fixed SplitPaths property to be thread safe
svn path=/trunk/mcs/; revision=80613
2007-06-24 08:09:40 +00:00
Vladimir Krasnov d60585f42d * CompilationSection.cs: TARGET_JVM on not supported features
* HttpModulesSection.cs: ctor should be static

svn path=/trunk/mcs/; revision=79262
2007-06-12 13:48:18 +00:00
Adar Wesley f950fd5f7f 2007-06-03 Adar Wesley <[email protected]>
* ProfilePropertySettingsCollection.cs: added missing method
        OnDeserializeUnrecognizedElement.


svn path=/trunk/mcs/; revision=78485
2007-06-03 08:40:38 +00:00
Marek Habersack fbd041c942 2007-05-30 Marek Habersack <[email protected]>
* 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
2007-05-30 13:50:14 +00:00
Igor Zelmanovich 318f6b2099 2007-05-17 Igor Zelmanovich <[email protected]>
* WebConfigurationHost.cs: for TARGET_J2EE only:
	prevent NullRefference Exception.


svn path=/trunk/mcs/; revision=77541
2007-05-17 12:04:52 +00:00
Igor Zelmanovich ae1457b6dd 2007-05-15 Igor Zelmanovich <[email protected]>
* 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
2007-05-15 14:58:27 +00:00
Marek Habersack c7d897bbf4 2007-05-15 Marek Habersack <[email protected]>
* 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
2007-05-15 09:35:00 +00:00
Marek Habersack fe24c83c72 2007-05-14 Marek Habersack <[email protected]>
* 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
2007-05-14 20:58:30 +00:00
Igor Zelmanovich 490aa86ced 2007-05-14 Igor Zelmanovich <[email protected]>
* 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
2007-05-14 09:47:41 +00:00
Marek Habersack c0dd53c288 2007-05-07 Marek Habersack <[email protected]>
* 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
2007-05-07 14:22:18 +00:00
Marek Habersack ae40e973db 2007-04-24 Marek Habersack <[email protected]>
* WebConfigurationHost.cs: Look for types in the top-level assemblies (App_Code and
	friends).

svn path=/trunk/mcs/; revision=76165
2007-04-24 07:36:19 +00:00
Marek Habersack aef2ee73d1 2007-04-24 Marek Habersack <[email protected]>
* 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
2007-04-24 06:54:27 +00:00
Marek Habersack 688bd0afca 2007-04-19 Marek Habersack <[email protected]>
* HttpHandlerAction.cs: look up types in all the toplevel
	assemblies. Fixes bug #80897.

svn path=/trunk/mcs/; revision=75959
2007-04-19 15:45:49 +00:00
Atsushi Eno dc8dd3e2c2 2007-04-17 Atsushi Enomoto <[email protected]>
* ProcessModelSection.cs : cpuMask default value should be int,
	  not uint.


svn path=/trunk/mcs/; revision=75800
2007-04-17 01:49:12 +00:00
Marek Habersack 2c734bb3f1 2007-04-06 Marek Habersack <[email protected]>
* CustomErrorsSection.cs: make the customErrors section work.


svn path=/trunk/mcs/; revision=75484
2007-04-06 14:33:48 +00:00
Marek Habersack b723df471e 2007-04-06 Marek Habersack <[email protected]>
* 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
2007-04-06 10:29:38 +00:00
Marek Habersack c7bbc99b2a 2007-03-24 Marek Habersack <[email protected]>
* 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
2007-03-24 01:01:57 +00:00
Adar Wesley fbb0619f01 2007-03-22 Adar Wesley <[email protected]>
* 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
2007-03-22 16:49:15 +00:00
Vladimir Krasnov aff7910664 * WebConfigurationManager.cs: fixed OpenWebConfiguration, should not lock when checking if configuration is already open
svn path=/trunk/mcs/; revision=74721
2007-03-21 10:32:32 +00:00
Vladimir Krasnov b837ec06d8 * WebConfigurationManager.cs: fixed OpenWebConfiguration, removed GetBasePath call and locations search, since this not affects configuration initialization, but improves performance
svn path=/trunk/mcs/; revision=74342
2007-03-15 10:20:42 +00:00
Marek Habersack fc289fb3a7 2007-03-12 Marek Habersack <[email protected]>
* 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
2007-03-12 11:28:02 +00:00
Gert Driesen 7257f2a30c * PagesSection.cs: Revert part of Adar's patch that regresses
bug #80913.

svn path=/trunk/mcs/; revision=73962
2007-03-08 19:34:12 +00:00
Adar Wesley 2e72955753 2007-03-06 Adar Wesley <[email protected]>
* PagesSection.cs: improve Enum parsing and strongly typed default values.


svn path=/trunk/mcs/; revision=73814
2007-03-06 14:39:32 +00:00
Marek Habersack 0f6913f8a5 Make the enableSesionState <pages> attribute values case-sensitive. Fixes bug 80913
svn path=/trunk/mcs/; revision=73770
2007-03-06 00:40:11 +00:00
Marek Habersack 7e8cda0259 Be case-insensitive when looking up compilers
svn path=/trunk/mcs/; revision=73327
2007-02-22 16:54:03 +00:00
Konstantin Triger 2b41229fdd Fix element key creation
svn path=/trunk/mcs/; revision=72285
2007-02-05 07:27:28 +00:00
Konstantin Triger fec8f1d5b0 fix the default value
svn path=/trunk/mcs/; revision=72272
2007-02-04 17:23:07 +00:00
Marek Habersack 61df9ff1d2 Fix for bug 80532
svn path=/trunk/mcs/; revision=72245
2007-02-03 21:55:00 +00:00
Konstantin Triger bca54a1ea3 Ensure enabled = true by default; cleanup
svn path=/trunk/mcs/; revision=70463
2007-01-04 12:10:20 +00:00
Vladimir Krasnov e7f50d1cf8 * CustomErrorCollection.cs: fixed ThrowOnDuplicate to false as in .net
svn path=/trunk/mcs/; revision=70133
2006-12-27 16:32:50 +00:00
Gonzalo Paniagua Javier 3518d41e7f 2006-12-21 Gonzalo Paniagua Javier <[email protected]>
* GlobalizationSection.cs: make encodings actually work for the 2.0
	profile.


svn path=/trunk/mcs/; revision=69917
2006-12-22 00:49:52 +00:00
Marek Habersack 5dd4bebf9e Implement tag mapping for asp.net 2.0
svn path=/trunk/mcs/; revision=69906
2006-12-21 22:00:50 +00:00
Vladimir Krasnov bd1a37474c * RoleManagerSection.cs: refactored using attributes
svn path=/trunk/mcs/; revision=69871
2006-12-21 16:26:50 +00:00
Marek Habersack 7ecd1fdc01 Forgotten changelogs
svn path=/trunk/mcs/; revision=69830
2006-12-20 18:43:48 +00:00
Vladimir Krasnov 5625ac6222 * WebConfigurationManager.cs: fixed GetSection to execute GetRuntimeObject, refactored GetSection and GetWebApplicationSection
svn path=/trunk/mcs/; revision=69664
2006-12-18 15:59:16 +00:00
Vladimir Krasnov 0cd237bfa0 * HttpHandlerAction.cs: fixed 'verb' config property
svn path=/trunk/mcs/; revision=69589
2006-12-17 09:20:02 +00:00
Igor Zelmanovich aa38d2278b 2006-12-07 Igor Zelmanovich <[email protected]>
* ProvidersHelper.cs: fixed: load assembles from /bin


svn path=/trunk/mcs/; revision=69193
2006-12-07 17:25:54 +00:00
Miguel de Icaza 7209a6e26f 2006-11-22 Miguel de Icaza <[email protected]>
* SessionStateSection.cs: Do not call Enum.Parse with a null
	argument, prevents an exception from being thrown.

svn path=/trunk/mcs/; revision=68375
2006-11-22 23:44:28 +00:00
Marek Habersack 41d72a967c Changelogs
svn path=/trunk/mcs/; revision=68217
2006-11-20 21:04:02 +00:00
Konstantin Triger f32b219d7a use Type.GetType for loading full qualified types since Assembly.GetType() fails to load them
svn path=/trunk/mcs/; revision=67749
2006-11-13 10:35:51 +00:00
Vladimir Krasnov 992db9da42 * ProfileGroupSettings.cs, ProfileGroupSettingsCollection.cs, ProfilePropertySettingsCollection.cs, ProfileSection.cs, RootProfilePropertySettingsCollection.cs: refactoring and fix of <group> element
svn path=/trunk/mcs/; revision=67377
2006-11-05 14:15:01 +00:00
Marek Habersack 58fca48c17 Add support for App_GlobalResources and App_LocalResources
svn path=/trunk/mcs/; revision=66799
2006-10-18 20:30:10 +00:00
Gonzalo Paniagua Javier 0eb1ae7aa2 2006-09-06 Gonzalo Paniagua Javier <[email protected]>
* WebConfigurationManager.cs: add null checks. Patch by Marek Habersack
	that fixes bug #79283.


svn path=/trunk/mcs/; revision=65033
2006-09-07 03:16:18 +00:00
Konstantin Triger cbf7754273 do not recourse as this will be done by Configuration object
svn path=/trunk/mcs/; revision=65022
2006-09-06 17:56:41 +00:00
Vladimir Krasnov 9a0b452068 * WebConfigurationManager.cs: added configSystem property under TARGET_JVM part
* WebConfigurationHost.cs: fixed GetStreamName and OpenStreamForRead for TARGET_JVM
* CompilationSection.cs: BuildProviders property removed from TARGET_JVM
* SystemWebSectionGroup.cs: Compilation property removed from TARGET_JVM

svn path=/trunk/mcs/; revision=63495
2006-08-08 16:48:57 +00:00
Atsushi Eno b49b89fafe 2006-06-26 Atsushi Enomoto <[email protected]>
* 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
2006-06-26 04:22:29 +00:00
Chris Toshok 9887d4c832 2006-06-08 Chris Toshok <[email protected]>
* 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
2006-06-08 14:50:38 +00:00
Atsushi Eno feef8c7598 2006-05-18 Atsushi Enomoto <[email protected]>
* 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
2006-05-18 12:53:17 +00:00
Andrew Skiba ab693f5a92 keep the internal exception
svn path=/trunk/mcs/; revision=60490
2006-05-10 06:04:54 +00:00