Commit Graph
150 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
Marek Habersack a6c33c3bbc Disable the exception throw in this method - Adar Wesley of Mainsoft is investigating the issue.
svn path=/trunk/mcs/; revision=79992
2007-06-18 11:43:35 +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
Konstantin Triger 898724f159 refactoring: fix documentation attributes
svn path=/trunk/mcs/; revision=78129
2007-05-29 14:57:08 +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
Konstantin Triger a578e6444f TARGET_JVM: make handler resolution case insensitive to comply with r77418
svn path=/trunk/mcs/; revision=77461
2007-05-16 08:45:04 +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
Konstantin Triger 697b12d28a Do not intercept the original exception
svn path=/trunk/mcs/; revision=76557
2007-05-02 09:42:51 +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
Konstantin Triger 916e6fa9fd logically move the *.config files under META-INF folder
svn path=/trunk/mcs/; revision=75768
2007-04-16 15:17:31 +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
Konstantin Triger c1360afb03 use Invariant culture for string manipulations
svn path=/trunk/mcs/; revision=75429
2007-04-05 11:43:27 +00:00
Konstantin Triger ce042c2c67 use ToLowerInvariant instead of ToLower
svn path=/trunk/mcs/; revision=75423
2007-04-05 11:08:54 +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
Konstantin Triger 4de36b8ec4 TARGET_J2EE: enable embedding web.config into a jar
svn path=/trunk/mcs/; revision=74552
2007-03-18 10:24:47 +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
Marek Habersack 1a759e0a72 Revert accidental commit - this change is not accepted yet
svn path=/trunk/mcs/; revision=73017
2007-02-16 14:27:17 +00:00
Marek Habersack 6ad6d72642 Fix culture problems of the control compiler System.Web.Compilation/ChangeLog System.Web.Compilation/TemplateControlCompiler.cs
svn path=/trunk/mcs/; revision=73015
2007-02-16 14:23:07 +00:00
Konstantin Triger 58a8f15765 correct default values
svn path=/trunk/mcs/; revision=72416
2007-02-07 14:25:09 +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
Miguel de Icaza 6b4c7232fd * SiteMapNode.cs (GetExplicitResourceString): implement.
* 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
2007-01-20 22:42:04 +00:00
Konstantin Triger 9f00e7cd30 * ClientTargetSection.cs: refactoring.
* ClientTargetCollection.cs: create ClientTarget with null parameters,
	refactoring.

svn path=/trunk/mcs/; revision=71127
2007-01-16 12:36:20 +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
Konstantin Triger 97c7afddd6 return null for global web.config for TARGET_JVM
svn path=/trunk/mcs/; revision=70079
2006-12-26 12:35:20 +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
Marek Habersack c56a42792c Implement support for ProfileCommon class generation
svn path=/trunk/mcs/; revision=69829
2006-12-20 18:41:52 +00:00